From 3e04d6f00cf35a9f656a501d03e9627ba37df4d9 Mon Sep 17 00:00:00 2001 From: "Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org" Date: Mon, 29 Apr 2024 16:00:18 +0200 Subject: [PATCH] Support for MineClonia (`mcl_trees`) (#26) * Wood IDs are different in MineClonia and Mineclone2 MineClonia rewrite woods mod and call it `mcl_trees` * rewriting comment to make it clear that mcl_trees is from mineclonia --- init.lua | 7 ++++++- mod.conf | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 757b884..d25bcba 100644 --- a/init.lua +++ b/init.lua @@ -71,12 +71,17 @@ if minetest.get_modpath("mcl_core") then register_material({name="cobble", desc=S("Cobble"), craft_material="group:cobble", composition_material="mcl_core:cobble"}, true) register_material({name="stonebrick", desc=S("Stonebrick"), craft_material="mcl_core:stonebrick"}, true) register_material({name="stone", desc=S("Stone"), craft_material="group:stone", composition_material="mcl_core:stone"}, true) - register_material({name="wood", desc=S("Wood"), craft_material="group:wood", composition_material="mcl_core:wood"}) register_material({name="ice", desc=S("Ice"), craft_material="mcl_core:ice"}) register_material({name="snow", desc=S("Snow"), craft_material="mcl_core:snowblock"}) register_material({name="sandstone", desc=S("Sandstone"), craft_material="mcl_core:sandstone"}, true) register_material({name="redsandstone", desc=S("Red Sandstone"), craft_material="mcl_core:redsandstone"}, true) end +-- wood ids are different in MineClonia and Mineclone2, mcl_trees is part of MineClonia +if minetest.get_modpath("mcl_trees") then + register_material({name="wood", desc=S("Wood"), craft_material="group:wood", composition_material="mcl_trees:wood_oak"}) +elseif minetest.get_modpath("mcl_core") then + register_material({name="wood", desc=S("Wood"), craft_material="group:wood", composition_material="mcl_core:wood"}) +end if minetest.get_modpath("mcl_nether") then register_material({name="quartz", desc=S("Quartz"), craft_material="mcl_nether:quartz_block"}, true) end diff --git a/mod.conf b/mod.conf index 5d2618f..5e06f40 100644 --- a/mod.conf +++ b/mod.conf @@ -1,6 +1,6 @@ name = castle_masonry depends = -optional_depends = default, mcl_core, mcl_sounds, mcl_nether, mcl_deepslate, mcl_blackstone, mcl_stairs, moreblocks, stairs, building_blocks, asphalt, streets +optional_depends = default, mcl_core, mcl_sounds, mcl_nether, mcl_deepslate, mcl_blackstone, mcl_stairs, mcl_trees, moreblocks, stairs, building_blocks, asphalt, streets description = """ This is a mod all about creating castles and castle dungeons. Many of the nodes are used for the outer-walls or dungeons.