Add spiders

master
oilboi 2019-06-24 21:48:17 -04:00
parent 2a55c73185
commit 22726b3955
10 changed files with 23 additions and 2 deletions

View File

@ -52,7 +52,8 @@ bow
https://freesound.org/people/Erdie/sounds/65734/
boing
https://freesound.org/people/kklab5050/sounds/120045/
spider
https://freesound.org/people/columbia23/sounds/395395/
-------------------------------------------------------------------------------
Code is licensed under GPL 2.1

View File

@ -421,11 +421,11 @@ mob.register_mob("pig",{
mesh = "pig.b3d",
automatic_face_movement_dir = -90.0,
hp_max = 5,
animation_speed = 30,
walk_start = 0,
walk_end = 40,
mob_sound = "mobs_pig",
angry_mob_sound = "mobs_pig_angry",
animation_speed = 30,
ridable = true,
drop_hurt = "items:bone",
drop_die = "items:porkchop",
@ -433,6 +433,26 @@ mob.register_mob("pig",{
inventory_image = "pig_inv.png",
})
mob.register_mob("spider",{
makes_footstep_sound = false,
visual = "mesh",
visual_size = {x=3, y=3},
collisionbox = {-0.7, -0.01, -0.7, 0.7, 0.89, 0.7},
mesh = "spider.b3d",
automatic_face_movement_dir = -90.0,
hp_max = 20,
animation_speed = 15,
walk_start = 0,
walk_end = 20,
mob_sound = "spider",
angry_mob_sound = "spider_angry",
ridable = true,
drop_hurt = "items:spider_eye",
drop_die = "items:string 3",
textures = {"spider.png","spider_eyes.png"},
inventory_image = "spider_inv.png",
})
minetest.register_on_generated(function(minp, maxp, blockseed)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B