From b6c5283ab821c8ffdad01e7cbb560d05ce80fc23 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Sun, 21 Jan 2024 11:48:37 +0100 Subject: [PATCH] Add some recipes involving UU-Matter --- compatibility.lua | 4 +++ init.lua | 1 + uu_matter_crafts.lua | 71 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 uu_matter_crafts.lua diff --git a/compatibility.lua b/compatibility.lua index acedbd9..b5d8d97 100644 --- a/compatibility.lua +++ b/compatibility.lua @@ -499,6 +499,7 @@ if industrialtest.mclAvailable then industrialtest.elementKeys.snowball="mcl_throwing:snowball" industrialtest.elementKeys.string="mcl_mobitems:string" industrialtest.elementKeys.junglePlanks="mcl_core:junglewood" + industrialtest.elementKeys.wood="mcl_core:tree" industrialtest.elementKeys.ironIngot="mcl_core:iron_ingot" industrialtest.elementKeys.ironLump="mcl_raw_ores:raw_iron" industrialtest.elementKeys.goldIngot="mcl_core:gold_ingot" @@ -520,6 +521,7 @@ if industrialtest.mclAvailable then industrialtest.elementKeys.stone="mcl_core:stone" industrialtest.elementKeys.stoneSlab="mcl_stairs:slab_stone" industrialtest.elementKeys.cobble="mcl_core:cobble" + industrialtest.elementKeys.mossCobble="mcl_core:mossycobble" industrialtest.elementKeys.sand="mcl_core:sand" industrialtest.elementKeys.gravel="mcl_core:gravel" industrialtest.elementKeys.ice="mcl_core:ice" @@ -738,12 +740,14 @@ elseif industrialtest.mtgAvailable then industrialtest.elementKeys.bucketWithWater="bucket:bucket_water" industrialtest.elementKeys.string="farming:string" industrialtest.elementKeys.junglePlanks="default:junglewood" + industrialtest.elementKeys.wood="default:tree" industrialtest.elementKeys.glass="default:glass" industrialtest.elementKeys.powerCarrier="default:mese_crystal_fragment" industrialtest.elementKeys.furnace="default:furnace" industrialtest.elementKeys.stone="default:stone" industrialtest.elementKeys.stoneSlab="stairs:slab_stone" industrialtest.elementKeys.cobble="default:cobble" + industrialtest.elementKeys.mossCobble="default:mossycobble" industrialtest.elementKeys.sand="default:sand" industrialtest.elementKeys.gravel="default:gravel" industrialtest.elementKeys.ice="default:ice" diff --git a/init.lua b/init.lua index 6e7d6cd..7983fda 100644 --- a/init.lua +++ b/init.lua @@ -72,4 +72,5 @@ if industrialtest.developerMode then end dofile(modpath.."/cables.lua") dofile(modpath.."/mapgen.lua") +dofile(modpath.."/uu_matter_crafts.lua") dofile(modpath.."/crafts.lua") diff --git a/uu_matter_crafts.lua b/uu_matter_crafts.lua new file mode 100644 index 0000000..1367727 --- /dev/null +++ b/uu_matter_crafts.lua @@ -0,0 +1,71 @@ +-- IndustrialTest +-- Copyright (C) 2024 mrkubax10 + +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. + +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. + +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . + +minetest.register_craft({ + type="shapeless", + output=industrialtest.elementKeys.stone.." 16", + recipe={"industrialtest:uu_matter"} +}) + +minetest.register_craft({ + type="shaped", + output=industrialtest.elementKeys.grassBlock.." 16", + recipe={ + {"industrialtest:uu_matter"}, + {"industrialtest:uu_matter"} + } +}) + +minetest.register_craft({ + type="shaped", + output=industrialtest.elementKeys.wood.." 16", + recipe={ + {"","industrialtest:uu_matter",""}, + {"","",""}, + {"industrialtest:uu_matter","",""} + } +}) + +minetest.register_craft({ + type="shaped", + output=industrialtest.elementKeys.glass.." 32", + recipe={ + {"","industrialtest:uu_matter",""}, + {"industrialtest:uu_matter","","industrialtest:uu_matter"}, + {"","industrialtest:uu_matter",""} + } +}) + +minetest.register_craft({ + type="shaped", + output=industrialtest.elementKeys.mossCobble.." 16", + recipe={ + {"","industrialtest:uu_matter",""}, + {"industrialtest:uu_matter","","industrialtest:uu_matter"} + } +}) + +if industrialtest.mclAvailable then + minetest.register_craft({ + type="shaped", + output="mcl_core:stonebrickcarved 48", + recipe={ + {"industrialtest:uu_matter","industrialtest:uu_matter"}, + {"industrialtest:uu_matter","industrialtest:uu_matter"}, + {"industrialtest:uu_matter",""} + } + }) +end