Spawn on node nether:rack of nether mod available

This commit is contained in:
Jordan Irwin 2021-05-08 11:53:32 -07:00
parent b64b6a67db
commit 7ca26b4105
2 changed files with 12 additions and 1 deletions

@ -3,3 +3,4 @@ title = Sneeker
description = An explosive nuisance.
author = Rui
depends = default, tnt
optional_depends = nether

@ -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({
nodenames = {"default:dirt_with_grass", "default:stone"},
nodenames = spawn_nodes,
neighbors = {"air"},
interval = 30,
chance = 9000,