From b1418837a9d898ad6820a6d63eae3c6c9237b153 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 9 Jun 2020 18:02:44 +0200 Subject: [PATCH] Fixed Netherrack --- modules.txt | 2 +- src/main/netherrack_fix.lua | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/main/netherrack_fix.lua diff --git a/modules.txt b/modules.txt index f224f72..ba5ee84 100644 --- a/modules.txt +++ b/modules.txt @@ -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 index 0000000..0556d5b --- /dev/null +++ b/src/main/netherrack_fix.lua @@ -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 +}) -- 2.44.0