mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
increase sheep spawn chance when ethereal active
This commit is contained in:
parent
b4fee7b6b8
commit
5060d31d59
@ -367,13 +367,15 @@ if not mobs.custom_spawn_animal then
|
|||||||
|
|
||||||
local max_ht = 400
|
local max_ht = 400
|
||||||
local spawn_on = {"default:dirt_with_grass", "ethereal:green_dirt"}
|
local spawn_on = {"default:dirt_with_grass", "ethereal:green_dirt"}
|
||||||
|
local mod_ethereal = minetest.get_modpath("ethereal")
|
||||||
|
local spawn_chance = mod_ethereal and 12000 or 8000
|
||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:sheep_white",
|
name = "mobs_animal:sheep_white",
|
||||||
nodes = spawn_on,
|
nodes = spawn_on,
|
||||||
min_light = 14,
|
min_light = 14,
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 8000,
|
chance = spawn_chance,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = max_ht,
|
max_height = max_ht,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user