From 4d5559a27d14e6c2f516d9f49ddedb785113a83b Mon Sep 17 00:00:00 2001 From: xtex Date: Sun, 30 Jul 2023 12:23:04 +0800 Subject: [PATCH] feat: add recipes --- common/src/main/kotlin/quaedam/Quaedam.kt | 2 ++ .../kotlin/quaedam/misc/CraftingMaterials.kt | 16 ++++++++++++++ .../quaedam/recipes/iron_copper_metal.json | 17 ++++++++++++++ .../quaedam/recipes/music_projection.json | 19 ++++++++++++++++ .../quaedam/recipes/noise_projection.json | 19 ++++++++++++++++ .../quaedam/recipes/projection_metal.json | 9 ++++++++ .../quaedam/recipes/projection_shell.json | 22 +++++++++++++++++++ .../data/quaedam/recipes/projector.json | 22 +++++++++++++++++++ .../quaedam/recipes/skylight_projection.json | 19 ++++++++++++++++ .../quaedam/recipes/smart_instrument.json | 22 +++++++++++++++++++ .../quaedam/recipes/sound_projection.json | 19 ++++++++++++++++ .../quaedam/recipes/swarm_projection.json | 19 ++++++++++++++++ 12 files changed, 205 insertions(+) create mode 100644 common/src/main/kotlin/quaedam/misc/CraftingMaterials.kt create mode 100644 common/src/main/resources/data/quaedam/recipes/iron_copper_metal.json create mode 100644 common/src/main/resources/data/quaedam/recipes/music_projection.json create mode 100644 common/src/main/resources/data/quaedam/recipes/noise_projection.json create mode 100644 common/src/main/resources/data/quaedam/recipes/projection_metal.json create mode 100644 common/src/main/resources/data/quaedam/recipes/projection_shell.json create mode 100644 common/src/main/resources/data/quaedam/recipes/projector.json create mode 100644 common/src/main/resources/data/quaedam/recipes/skylight_projection.json create mode 100644 common/src/main/resources/data/quaedam/recipes/smart_instrument.json create mode 100644 common/src/main/resources/data/quaedam/recipes/sound_projection.json create mode 100644 common/src/main/resources/data/quaedam/recipes/swarm_projection.json diff --git a/common/src/main/kotlin/quaedam/Quaedam.kt b/common/src/main/kotlin/quaedam/Quaedam.kt index aa5e118..ee3ad81 100644 --- a/common/src/main/kotlin/quaedam/Quaedam.kt +++ b/common/src/main/kotlin/quaedam/Quaedam.kt @@ -10,6 +10,7 @@ import net.minecraft.world.item.CreativeModeTab import net.minecraft.world.item.ItemStack import org.slf4j.LoggerFactory import quaedam.config.QuaedamConfig +import quaedam.misc.CraftingMaterials import quaedam.misc.causality.CausalityAnchor import quaedam.misc.reality.RealityStabler import quaedam.projection.ProjectionCommand @@ -60,6 +61,7 @@ object Quaedam { ProjectionShell CausalityAnchor RealityStabler + CraftingMaterials creativeModeTabs.register() items.register() diff --git a/common/src/main/kotlin/quaedam/misc/CraftingMaterials.kt b/common/src/main/kotlin/quaedam/misc/CraftingMaterials.kt new file mode 100644 index 0000000..d049b25 --- /dev/null +++ b/common/src/main/kotlin/quaedam/misc/CraftingMaterials.kt @@ -0,0 +1,16 @@ +package quaedam.misc + +import net.minecraft.world.item.Item +import quaedam.Quaedam + +object CraftingMaterials { + + val ironCopperMetal = Quaedam.items.register("iron_copper_metal") { + Item(Item.Properties().`arch$tab`(Quaedam.creativeModeTab)) + }!! + + val projectionMetal = Quaedam.items.register("projection_metal") { + Item(Item.Properties().`arch$tab`(Quaedam.creativeModeTab)) + }!! + +} \ No newline at end of file diff --git a/common/src/main/resources/data/quaedam/recipes/iron_copper_metal.json b/common/src/main/resources/data/quaedam/recipes/iron_copper_metal.json new file mode 100644 index 0000000..96629a5 --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/iron_copper_metal.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shapeless", + "ingredients": [ + { + "item": "minecraft:iron_ingot" + }, + { + "item": "minecraft:iron_ingot" + }, + { + "item": "minecraft:copper_ingot" + } + ], + "result": { + "item": "quaedam:iron_copper_metal" + } +} diff --git a/common/src/main/resources/data/quaedam/recipes/music_projection.json b/common/src/main/resources/data/quaedam/recipes/music_projection.json new file mode 100644 index 0000000..626916a --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/music_projection.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "---", + "-.-", + "---" + ], + "key": { + "-": { + "item": "quaedam:projection_metal" + }, + ".": { + "item": "minecraft:note_block" + } + }, + "result": { + "item": "quaedam:music_projection" + } +} diff --git a/common/src/main/resources/data/quaedam/recipes/noise_projection.json b/common/src/main/resources/data/quaedam/recipes/noise_projection.json new file mode 100644 index 0000000..6ca669a --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/noise_projection.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "---", + "-.-", + "---" + ], + "key": { + "-": { + "item": "quaedam:projection_metal" + }, + ".": { + "item": "minecraft:sand" + } + }, + "result": { + "item": "quaedam:noise_projection" + } +} diff --git a/common/src/main/resources/data/quaedam/recipes/projection_metal.json b/common/src/main/resources/data/quaedam/recipes/projection_metal.json new file mode 100644 index 0000000..cb54d9d --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/projection_metal.json @@ -0,0 +1,9 @@ +{ + "type": "minecraft:smelting", + "ingredient": { + "item": "quaedam:iron_copper_metal" + }, + "result": "quaedam:projection_metal", + "experience": 0.2, + "cookingtime": 600 +} diff --git a/common/src/main/resources/data/quaedam/recipes/projection_shell.json b/common/src/main/resources/data/quaedam/recipes/projection_shell.json new file mode 100644 index 0000000..5e289f5 --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/projection_shell.json @@ -0,0 +1,22 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "...", + "!-!", + "!!!" + ], + "key": { + "-": { + "item": "minecraft:glass_pane" + }, + "!": { + "item": "minecraft:iron_ingot" + }, + ".": { + "item": "minecraft:copper_ingot" + } + }, + "result": { + "item": "quaedam:projection_shell" + } +} diff --git a/common/src/main/resources/data/quaedam/recipes/projector.json b/common/src/main/resources/data/quaedam/recipes/projector.json new file mode 100644 index 0000000..043ef9c --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/projector.json @@ -0,0 +1,22 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "I-I", + "-C-", + "I-I" + ], + "key": { + "-": { + "item": "minecraft:ice" + }, + "I": { + "item": "minecraft:iron_ingot" + }, + "C": { + "item": "minecraft:copper_ingot" + } + }, + "result": { + "item": "quaedam:projector" + } +} diff --git a/common/src/main/resources/data/quaedam/recipes/skylight_projection.json b/common/src/main/resources/data/quaedam/recipes/skylight_projection.json new file mode 100644 index 0000000..f2781b9 --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/skylight_projection.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "---", + "-.-", + "---" + ], + "key": { + "-": { + "item": "quaedam:projection_metal" + }, + ".": { + "item": "minecraft:glowstone" + } + }, + "result": { + "item": "quaedam:skylight_projection" + } +} diff --git a/common/src/main/resources/data/quaedam/recipes/smart_instrument.json b/common/src/main/resources/data/quaedam/recipes/smart_instrument.json new file mode 100644 index 0000000..468b9a3 --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/smart_instrument.json @@ -0,0 +1,22 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + " ! ", + ".-.", + "..." + ], + "key": { + "-": { + "item": "minecraft:note_block" + }, + "!": { + "item": "minecraft:redstone" + }, + ".": { + "item": "minecraft:copper_ingot" + } + }, + "result": { + "item": "quaedam:smart_instrument" + } +} diff --git a/common/src/main/resources/data/quaedam/recipes/sound_projection.json b/common/src/main/resources/data/quaedam/recipes/sound_projection.json new file mode 100644 index 0000000..91a7983 --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/sound_projection.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "---", + "-.-", + "---" + ], + "key": { + "-": { + "item": "quaedam:projection_metal" + }, + ".": { + "item": "minecraft:stick" + } + }, + "result": { + "item": "quaedam:swarm_projection" + } +} diff --git a/common/src/main/resources/data/quaedam/recipes/swarm_projection.json b/common/src/main/resources/data/quaedam/recipes/swarm_projection.json new file mode 100644 index 0000000..0de0a9b --- /dev/null +++ b/common/src/main/resources/data/quaedam/recipes/swarm_projection.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "---", + "-.-", + "---" + ], + "key": { + "-": { + "item": "quaedam:projection_metal" + }, + ".": { + "item": "minecraft:ender_pearl" + } + }, + "result": { + "item": "quaedam:swarm_projection" + } +}