]> git.lizzy.rs Git - skycraft.git/commitdiff
Fixed Netherrack
authorElias Fleckenstein <eliasfleckenstein@web.de>
Tue, 9 Jun 2020 16:02:44 +0000 (18:02 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Tue, 9 Jun 2020 16:02:44 +0000 (18:02 +0200)
modules.txt
src/main/netherrack_fix.lua [new file with mode: 0644]

index f224f72f7ca77144712f0a1b9ed3b34181cba3a4..ba5ee8408f2faebebf58ec609c5de9afb85c302d 100644 (file)
@@ -1 +1 @@
-return {common={"common","random","request","schems",},main={"commands","flower_spread","lobby","lucky_block","mapgen","money","plots","ranks","spawns","tpa","trade","wither_spawn",},onload={"lava_cooling","lobby_load","monster_egg_stone_block","nether_portal","sapling_mutation","shop","spawn","void",},}
\ No newline at end of file
+return {common={"common","random","request","schems",},main={"commands","flower_spread","lobby","lucky_block","mapgen","money","netherrack_fix","plots","ranks","spawns","tpa","trade","wither_spawn",},onload={"lava_cooling","lobby_load","monster_egg_stone_block","nether_portal","sapling_mutation","shop","spawn","void",},}
\ No newline at end of file
diff --git a/src/main/netherrack_fix.lua b/src/main/netherrack_fix.lua
new file mode 100644 (file)
index 0000000..0556d5b
--- /dev/null
@@ -0,0 +1,9 @@
+minetest.register_lbm({
+       name = "skycraft:netherrack_fix",
+       nodenames = {"mcl_core:stone"},
+       action = function(pos)
+               if pos.y < -28000 then
+                       minetest.set_node(pos, {name = "mcl_nether:netherrack"})
+               end
+       end
+})