Merge pull request #1 from taikedz/vivarium

Everything looks good to me.
master
Nathan Salapat 2016-10-09 09:00:28 -05:00 committed by GitHub
commit 90d71d0d19
3 changed files with 42 additions and 10 deletions

View File

@ -1,32 +1,33 @@
mobs:register_mob("banth:banth", {
type = "monster",
passive = false,
reach = 2,
reach = 3,
damage = 2,
sounds = {attack = "banth_snarl", war_cry = "banth_growl"},
attack_type = "dogfight",
hp_min = 12,
hp_max = 22,
hp_min = 20,
hp_max = 24,
armor = 130,
collisionbox = {-0.6, -0.4, -0.6, 0.6, 0.6, 0.6},
collisionbox = {-1.2, -0.8, -1.2, 1.2, 1.2, 1.2},
visual = "mesh",
mesh = "banth.b3d",
textures = {
{"banth_color.png"},
},
blood_texture = "mobs_blood.png",
visual_size = {x=8, y=8},
visual_size = {x=12, y=12},
makes_footstep_sound = true,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 3, max = 10},
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
{name = "mobs:meat_raw", chance = 2, min = 1, max = 2},
},
walk_velocity = 1,
run_velocity = 2,
jump = true,
stepheight = 1.1,
water_damage = 0,
lava_damage = 2,
light_damage = 0,
view_range = 14,
view_range = 6,
animation = {
speed_normal = 10,
speed_run = 20,
@ -40,10 +41,41 @@ mobs:register_mob("banth:banth", {
punch_end = 90,
},
on_rightclick = function(self,clicker)
mobs:capture_mob(self, clicker, 0, 0, 10, true, nil)
end
})
--mobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height, day_toggle)
mobs:register_spawn("banth:banth", {"default:dirt_with_grass","default:stone", "default:sand"}, 20, 10, 750, 2, 31000, false)
--mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,interval, chance, active_object_count, min_height, max_height, day_toggle)
mobs:spawn_specific(
"banth:banth",
{"default:sand"}, -- } -- spawn banths in ethereal's dry lands oases
{"ethereal:dry_dirt"}, -- }
0, -- }
20, -- } -- all light levels
30, -- interval
100, -- chance: conditions are very specific, so high chance
2,
-10,
31000,
nil
)
mobs:spawn_specific(
"banth:banth",
{"default:dirt_with_grass","default:sand"}, -- } -- spawn banths uneder trees like where cats would go
{"default:tree","default:acacia_tree"}, -- }
0, -- }
20, -- } -- all light levels
30, -- interval
100, -- chance: conditions are very specific, so high chance
2,
-10,
31000,
nil
)
mobs:register_egg("banth:banth", "Banth", "default_apple.png", 1)

BIN
sounds/banth_growl.ogg Normal file

Binary file not shown.

BIN
sounds/banth_snarl.ogg Normal file

Binary file not shown.