minetest-mm/mods/mobs_water/mobs_turtles/spawn_example.lua
2024-12-19 12:55:40 +01:00

30 lines
569 B
Lua

-- Turtle spawn examples
-- land turtle
mobs:spawn({
name = "mobs_turtles:turtle",
nodes = {"group:crumbly"},
neighbors = {
"group:crumbly", "default:papyrus", "default:cactus",
"dryplants:juncus", "dryplants:reedmace"
},
min_light = 5,
interval = 30,
chance = 30000,
min_height = 1,
max_height = 10
})
-- sea turtle
mobs:spawn({
name = "mobs_turtles:seaturtle",
nodes = {"group:water"},
neighbors = {
"group:water", "group:seaplants", "seawrecks:woodship", "seawrecks:uboot"
},
min_light = 5,
interval = 30,
chance = 30000,
max_height = 0
})