70 lines
1.6 KiB
Lua
70 lines
1.6 KiB
Lua
local modpath = core.get_modpath("pyutest_entities")
|
|
dofile(modpath .. "/api.lua")
|
|
|
|
PyuTest.make_mob("pyutest_entities:test_follower", {
|
|
visual = "upright_sprite",
|
|
visual_size = { x = 1, y = 2 },
|
|
makes_footstep_sound = true,
|
|
textures = {
|
|
"pyutest-monster.png", "pyutest-monster_back.png"
|
|
},
|
|
nametag = "Test Follower",
|
|
}, {
|
|
follow_player = true,
|
|
max_jump = 1,
|
|
max_drop = 50,
|
|
view_range = 5,
|
|
|
|
drops = {
|
|
"pyutest_tools:apple 5"
|
|
}
|
|
})
|
|
|
|
PyuTest.make_mob("pyutest_entities:dummy", {
|
|
visual = "upright_sprite",
|
|
visual_size = { x = 1, y = 2 },
|
|
makes_footstep_sound = true,
|
|
textures = {
|
|
"player.png", "player_back.png"
|
|
},
|
|
nametag = "Dummy",
|
|
}, {
|
|
drops = {
|
|
"pyutest_tools:apple 3",
|
|
"pyutest_ores:diamond_shard 3",
|
|
"pyutest_ores:emerald_shard 3",
|
|
"pyutest_magic:windball 3"
|
|
}
|
|
})
|
|
|
|
PyuTest.make_mob("pyutest_entities:item_follower", {
|
|
visual = "upright_sprite",
|
|
visual_size = { x = 1, y = 2 },
|
|
makes_footstep_sound = true,
|
|
textures = {
|
|
"player.png", "player_back.png"
|
|
},
|
|
nametag = "Item Follower",
|
|
}, {
|
|
drops = {},
|
|
follow_items = {
|
|
"pyutest_tools:coin"
|
|
}
|
|
})
|
|
|
|
PyuTest.make_mob("pyutest_entities:pig", {
|
|
hp_max = 10,
|
|
visual = "mesh",
|
|
mesh = "pyutest-pig.glb",
|
|
visual_size = {x = 6, y = 8, z = 8},
|
|
textures = {"pyutest-pig.png"},
|
|
nametag = "Pig",
|
|
collisionbox = PyuTest.BLOCK_SIZED_ANIMAL_CBOX,
|
|
selectionbox = PyuTest.NODEBOX_DEFAULT.fixed,
|
|
}, {
|
|
drops = {},
|
|
follow_items = {
|
|
"pyutest_tools:carrot"
|
|
}
|
|
})
|