2024-11-16 10:05:03 -06:00

39 lines
839 B
Lua

local modpath = minetest.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",
}, {
ai = "follownearest",
max_jump = 1,
max_drop = 50,
view_range = 3,
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"
}
})