mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-10 04:20:17 +01:00
88 lines
1.7 KiB
Lua
88 lines
1.7 KiB
Lua
|
-- Ent from https://github.com/Minetest-LOTT/Lord-of-the-Test
|
||
|
mobs:register_mob("mobs:ent", {
|
||
|
type = "npc",
|
||
|
hp_min = 50,
|
||
|
hp_max = 70,
|
||
|
collisionbox = {-0.5, 0, -0.5, 0.5, 5, 0.5},
|
||
|
textures = {
|
||
|
{"mobs_ent.png"},
|
||
|
},
|
||
|
visual_size = {x=3.5,y=3.5},
|
||
|
visual = "mesh",
|
||
|
mesh = "mobs_ent.x",
|
||
|
view_range = 20,
|
||
|
makes_footstep_sound = true,
|
||
|
walk_velocity = 1,
|
||
|
run_velocity = 1.5,
|
||
|
armor = 100,
|
||
|
damage = 5,
|
||
|
drops = {
|
||
|
{name = "default:sapling",
|
||
|
chance = 5,
|
||
|
min = 1,
|
||
|
max = 3,},
|
||
|
{name = "moretrees:apple_tree_sapling",
|
||
|
chance = 5,
|
||
|
min = 1,
|
||
|
max = 3,},
|
||
|
{name = "moretrees:birch_sapling",
|
||
|
chance = 5,
|
||
|
min = 1,
|
||
|
max = 3,},
|
||
|
{name = "moretrees:beech_sapling",
|
||
|
chance = 5,
|
||
|
min = 1,
|
||
|
max = 3,},
|
||
|
{name = "moretrees:acacia_sapling",
|
||
|
chance = 5,
|
||
|
min = 1,
|
||
|
max = 3,},
|
||
|
{name = "moretrees:pine_sapling",
|
||
|
chance = 5,
|
||
|
min = 1,
|
||
|
max = 3,},
|
||
|
{name = "moretrees:fir_sapling",
|
||
|
chance = 5,
|
||
|
min = 1,
|
||
|
max = 3,},
|
||
|
{name = "moretrees:rubber_tree_sapling",
|
||
|
chance = 5,
|
||
|
min = 1,
|
||
|
max = 3,},
|
||
|
{name = "lottplants:yavannamiresapling",
|
||
|
chance = 250,
|
||
|
min = 1,
|
||
|
max = 1,},
|
||
|
},
|
||
|
light_resistant = true,
|
||
|
drawtype = "front",
|
||
|
water_damage = 0,
|
||
|
lava_damage = 60,
|
||
|
light_damage = 0,
|
||
|
attack_type = "dogfight",
|
||
|
animation = {
|
||
|
speed_normal = 15,
|
||
|
speed_run = 15,
|
||
|
stand_start = 17,
|
||
|
stand_end = 17,
|
||
|
walk_start = 10,
|
||
|
walk_end = 80,
|
||
|
run_start = 10,
|
||
|
run_end = 80,
|
||
|
punch_start = 1,
|
||
|
punch_end = 1,
|
||
|
},
|
||
|
jump = true,
|
||
|
sounds = {
|
||
|
war_cry = "mobs_die_yell",
|
||
|
death = "mobs_yeti_death",
|
||
|
attack = "default_punch2",
|
||
|
},
|
||
|
attacks_monsters = true,
|
||
|
peaceful = true,
|
||
|
group_attack = true,
|
||
|
step = 1,
|
||
|
|
||
|
})
|
||
|
mobs:register_spawn("mobs:ent", {"default:junglegrass"}, 20, -1, 6000, 3, 31000)
|