52 lines
1.1 KiB
Lua
52 lines
1.1 KiB
Lua
dofile(minetest.get_modpath("spidermob").."/api.lua")
|
|
|
|
spidermob:register_mob("spidermob:spider", {
|
|
type = "monster",
|
|
hp_min = 20,
|
|
hp_max = 40,
|
|
collisionbox = {-0.9, -0.01, -0.7, 0.7, 0.6, 0.7},
|
|
textures = {"spidermob_spider.png"},
|
|
visual_size = {x=7,y=7},
|
|
visual = "mesh",
|
|
mesh = "spider_model.x",
|
|
makes_footstep_sound = true,
|
|
view_range = 15,
|
|
walk_velocity = 1,
|
|
run_velocity = 3,
|
|
armor = 200,
|
|
damage = 3,
|
|
drops = {
|
|
{name = "farming:string",
|
|
chance = 10,
|
|
min = 3,
|
|
max = 6,},
|
|
},
|
|
light_resistant = true,
|
|
drawtype = "front",
|
|
water_damage = 5,
|
|
lava_damage = 5,
|
|
light_damage = 0,
|
|
on_rightclick = nil,
|
|
attack_type = "dogfight",
|
|
animation = {
|
|
speed_normal = 15,
|
|
speed_run = 15,
|
|
stand_start = 1,
|
|
stand_end = 1,
|
|
walk_start = 20,
|
|
walk_end = 40,
|
|
run_start = 20,
|
|
run_end = 40,
|
|
punch_start = 50,
|
|
punch_end = 90,
|
|
},
|
|
jump = true,
|
|
sounds = {
|
|
war_cry = "mobs_eerie",
|
|
death = "mobs_howl",
|
|
attack = "mobs_oerkki_attack",
|
|
},
|
|
step = 1,
|
|
})
|
|
spidermob:register_spawn("spidermob:spider", {"default:junglegrass"}, 20, -10, 6000, 3, 31000)
|