Add back netherrack to nylium conversion with bonemeal that was removed with a4f1ccd0ee but using the new bonemeal API

This commit is contained in:
teknomunk 2025-02-14 18:13:56 -06:00
parent cfd214df76
commit 0eaf9941c4
2 changed files with 10 additions and 1 deletions
mods/ITEMS/mcl_crimson

View file

@ -778,6 +778,15 @@ minetest.register_craft({
mcl_stairs.register_stair("crimson_hyphae_wood", "mcl_crimson:crimson_hyphae_wood", wood_stair_groups, false, S("Crimson Stairs"))
mcl_stairs.register_slab("crimson_hyphae_wood", "mcl_crimson:crimson_hyphae_wood", wood_slab_groups, false, S("Crimson Slab"))
core.override_item("mcl_nether:netherrack", {
_on_bone_meal = function(itemstack, placer, pointed_thing)
local n = has_nylium_neighbor(pointed_thing.under)
if n then
core.set_node(pointed_thing.under, n)
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"},

View file

@ -1,3 +1,3 @@
name = mcl_crimson
author = debiankaios, Exhale
depends = mcl_core, mcl_fences, mcl_stairs, mobs_mc, mcl_util, mcl_dye, mcl_flowerpots, mcl_doors
depends = mcl_core, mcl_fences, mcl_stairs, mobs_mc, mcl_util, mcl_dye, mcl_flowerpots, mcl_doors, mcl_nether