Re-add some normal spawning

master^2
Tai Kedzierski 2016-10-09 14:48:35 +01:00 committed by GitHub
parent 4a80bb5305
commit daf924c69c
1 changed files with 16 additions and 6 deletions

View File

@ -52,11 +52,25 @@ mobs:register_mob("banth:banth", {
--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 dry lands oaises
{"default:sand"}, -- } -- spawn banths in ethereal's dry lands oases
{"ethereal:dry_dirt"}, -- }
0, -- }
20, -- } -- all light levels
30, -- interval (server ticks?)
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,
@ -64,9 +78,5 @@ mobs:spawn_specific(
nil
)
--[[ old
--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","ethereal:green_dirt","ethereal:dry_dirt","default:sand"}, 20, 10, 750, 2, 31000, false)
--]]
mobs:register_egg("banth:banth", "Banth", "default_apple.png", 1)