Create init.lua

master
Xanthin 2014-08-28 12:27:53 +02:00
parent d602b9d59b
commit f0bf3a413d
1 changed files with 51 additions and 0 deletions

51
init.lua Normal file
View File

@ -0,0 +1,51 @@
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)