mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
parent
72232087a6
commit
14823101bf
87
mods/mobs/ent.lua
Normal file
87
mods/mobs/ent.lua
Normal file
@ -0,0 +1,87 @@
|
||||
-- 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)
|
@ -38,6 +38,7 @@ dofile(path.."/minotaur.lua") -- Kalabasa
|
||||
|
||||
-- The bosses
|
||||
dofile(path.."/pumpkins.lua")
|
||||
dofile(path.."/ent.lua")
|
||||
|
||||
-- begin slimes mobs compatibility changes
|
||||
-- cannot find mesecons?, craft glue instead
|
||||
|
72583
mods/mobs/models/mobs_ent.x
Normal file
72583
mods/mobs/models/mobs_ent.x
Normal file
File diff suppressed because it is too large
Load Diff
BIN
mods/mobs/textures/mobs_ent.png
Normal file
BIN
mods/mobs/textures/mobs_ent.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
Loading…
Reference in New Issue
Block a user