nylium can be turned into netherrack

This commit is contained in:
JoseDouglas26 2024-01-06 09:18:20 -03:00 committed by the-real-herowl
parent fc204c8717
commit 6694babbde
1 changed files with 17 additions and 1 deletions

View File

@ -663,6 +663,22 @@ mcl_dye.register_on_bone_meal_apply(function(pt,user)
end end
end) end)
minetest.register_abm({
label = "Turn Crimson Nylium and Warped Nylium below solid block into Netherrack",
nodenames = {"mcl_crimson:crimson_nylium","mcl_crimson:warped_nylium"},
neighbors = {"group:solid"},
interval = 8,
chance = 50,
action = function(pos, node)
local above = {x = pos.x, y = pos.y + 1, z = pos.z}
local name = minetest.get_node(above).name
local nodedef = minetest.registered_nodes[name]
if name ~= "ignore" and nodedef and (nodedef.groups and nodedef.groups.solid) then
minetest.set_node(pos, {name = "mcl_nether:netherrack"})
end
end
})
mcl_doors:register_door("mcl_crimson:crimson_door", { mcl_doors:register_door("mcl_crimson:crimson_door", {
description = S("Crimson Door"), description = S("Crimson Door"),
_doc_items_longdesc = S("Wooden doors are 2-block high barriers which can be opened or closed by hand and by a redstone signal."), _doc_items_longdesc = S("Wooden doors are 2-block high barriers which can be opened or closed by hand and by a redstone signal."),
@ -808,4 +824,4 @@ minetest.register_craft({
} }
}) })
dofile(modpath.."/alias.lua") dofile(modpath.."/alias.lua")