I've extracted the spider mob of LordofTheTested subgame (viewtopic.php?f=15&t=5578), and i hope it will give you fun ! :)
This mod is for server administrators who aren't programmers, or don't want to do the work themselves done in this mod.
So, it's a mod with just the spider, i've also make smalls modifications :
- updated the spider api.lua (better IA)
- adjusted her HP for a better average (now 15 to 30)
- her jump step (now can jump over 1 block)
- her drops for a better average and add raw_meat sometimes, much culture eats spiders after all (now 50% 1 to 3 string and 25% 1 to 2 meat_raw)
- add blood when hit
- add knock back when hit
- modified spawn, mostly in jungle. Be careful, they spawns in part on "jungle leaves" and "jungle trees" so, sometimes they falls in your head !
Code: Select all
spidermob:register_mob("spidermob:spider", {
type = "monster",
hp_min = 15,
hp_max = 30,
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 = 2,
min = 1,
max = 3,},
{name = "spidermob:meat_raw",
chance = 4,
min = 1,
max = 2,},
},
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,
step = 1,
blood_texture = "spidermob_blood.png",
Dependencies : default
Recommends : throwing ? (because you can do something useful with strings)
Conflicts : no known conflicts yet
License : CC BY-SA 3.0 from the initial mod code of "lottmobs" and WTFPL for my modifications
Download : The latest version
(or the temporary link from SendSpace)
Brows the code : Github repository
Install : Unzip the distribution archive, rename the resultant "minetest-spidemob-v1" folder to just "spidermob", and move it into Minetest's mods directory. At last, Set to true the mod in the "world.mt".
Credits :
AspireMint (spider model & texture)
Pilzadam (Troll Model, farming, mobs, Bed code & texture, throwing)
BrandonReese(Sword wearing, chest contents, mobs behaviour)
Xanthin (the extract help)
And everybody from LordOfTheTest !