forked from Mirrorlandia_minetest/mod-sneeker
Spawn on node nether:rack of nether mod available
This commit is contained in:
parent
b64b6a67db
commit
7ca26b4105
1
mod.conf
1
mod.conf
@ -3,3 +3,4 @@ title = Sneeker
|
|||||||
description = An explosive nuisance.
|
description = An explosive nuisance.
|
||||||
author = Rui
|
author = Rui
|
||||||
depends = default, tnt
|
depends = default, tnt
|
||||||
|
optional_depends = nether
|
||||||
|
12
spawn.lua
12
spawn.lua
@ -1,6 +1,16 @@
|
|||||||
|
|
||||||
|
local spawn_nodes = {
|
||||||
|
"default:dirt_with_grass",
|
||||||
|
"default:stone",
|
||||||
|
}
|
||||||
|
|
||||||
|
if core.global_exists("nether") then
|
||||||
|
table.insert(spawn_nodes, "nether:rack")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
core.register_abm({
|
core.register_abm({
|
||||||
nodenames = {"default:dirt_with_grass", "default:stone"},
|
nodenames = spawn_nodes,
|
||||||
neighbors = {"air"},
|
neighbors = {"air"},
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 9000,
|
chance = 9000,
|
||||||
|
Loading…
Reference in New Issue
Block a user