diff --git a/mod.conf b/mod.conf index 7bcae03..693b397 100644 --- a/mod.conf +++ b/mod.conf @@ -3,3 +3,4 @@ title = Sneeker description = An explosive nuisance. author = Rui depends = default, tnt +optional_depends = nether diff --git a/spawn.lua b/spawn.lua index 153106b..c1e6c07 100644 --- a/spawn.lua +++ b/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({ - nodenames = {"default:dirt_with_grass", "default:stone"}, + nodenames = spawn_nodes, neighbors = {"air"}, interval = 30, chance = 9000,