From 67232550591f6c9784e0401b277451af5a72eb53 Mon Sep 17 00:00:00 2001 From: squid233 <60126026+squid233@users.noreply.github.com> Date: Sat, 16 Mar 2024 20:13:06 +0800 Subject: [PATCH] Added cooked_shredded_squid_block --- .../github/xenfork/squidcraft/SquidCraft.java | 4 +- .../xenfork/squidcraft/block/ModBlocks.java | 66 ++++++++++++++++++ .../squidcraft/item/ModItemGroups.java | 3 +- .../xenfork/squidcraft/item/ModItems.java | 14 ++-- .../cooked_shredded_squid_block.json | 7 ++ .../assets/squidcraft/lang/en_us.json | 2 + .../assets/squidcraft/lang/zh_cn.json | 2 + .../block/cooked_shredded_squid_block.json | 6 ++ .../item/cooked_shredded_squid_block.json | 3 + .../block/cooked_shredded_squid_block.png | Bin 0 -> 179 bytes .../cooked_shredded_squid_block.json | 29 ++++++++ .../advancements/magma_shredded_squid.json | 2 +- .../recipes/cooked_shredded_squid.json | 13 ++++ .../recipes/cooked_shredded_squid_block.json | 47 +++++++++++++ .../cooked_shredded_squid_decompress.json | 47 +++++++++++++ ..._shredded_squid_from_campfire_cooking.json | 15 +++- .../cooked_shredded_squid_from_smoking.json | 15 +++- .../recipes/magma_shredded_squid.json | 13 ++++ .../blocks/cooked_shredded_squid_block.json | 19 +++++ .../recipes/cooked_shredded_squid_block.json | 17 +++++ .../cooked_shredded_squid_decompress.json | 15 ++++ 21 files changed, 326 insertions(+), 13 deletions(-) create mode 100644 common/src/main/java/io/github/xenfork/squidcraft/block/ModBlocks.java create mode 100644 common/src/main/resources/assets/squidcraft/blockstates/cooked_shredded_squid_block.json create mode 100644 common/src/main/resources/assets/squidcraft/models/block/cooked_shredded_squid_block.json create mode 100644 common/src/main/resources/assets/squidcraft/models/item/cooked_shredded_squid_block.json create mode 100644 common/src/main/resources/assets/squidcraft/textures/block/cooked_shredded_squid_block.png create mode 100644 common/src/main/resources/data/squidcraft/advancements/cooked_shredded_squid_block.json create mode 100644 common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_block.json create mode 100644 common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_decompress.json create mode 100644 common/src/main/resources/data/squidcraft/loot_tables/blocks/cooked_shredded_squid_block.json create mode 100644 common/src/main/resources/data/squidcraft/recipes/cooked_shredded_squid_block.json create mode 100644 common/src/main/resources/data/squidcraft/recipes/cooked_shredded_squid_decompress.json diff --git a/common/src/main/java/io/github/xenfork/squidcraft/SquidCraft.java b/common/src/main/java/io/github/xenfork/squidcraft/SquidCraft.java index a032389..8f20ab9 100644 --- a/common/src/main/java/io/github/xenfork/squidcraft/SquidCraft.java +++ b/common/src/main/java/io/github/xenfork/squidcraft/SquidCraft.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023 XenFork Union + * Copyright (c) 2023-2024 XenFork Union * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -17,6 +17,7 @@ package io.github.xenfork.squidcraft; import dev.architectury.event.events.common.LootEvent; +import io.github.xenfork.squidcraft.block.ModBlocks; import io.github.xenfork.squidcraft.item.ModItemGroups; import io.github.xenfork.squidcraft.item.ModItems; import net.minecraft.advancements.critereon.EntityFlagsPredicate; @@ -41,6 +42,7 @@ public class SquidCraft { public static final String MOD_ID = "squidcraft"; public static void init() { + ModBlocks.init(); ModItems.init(); ModItemGroups.init(); LootEvent.MODIFY_LOOT_TABLE.register((lootDataManager, id, context, builtin) -> { diff --git a/common/src/main/java/io/github/xenfork/squidcraft/block/ModBlocks.java b/common/src/main/java/io/github/xenfork/squidcraft/block/ModBlocks.java new file mode 100644 index 0000000..868ea97 --- /dev/null +++ b/common/src/main/java/io/github/xenfork/squidcraft/block/ModBlocks.java @@ -0,0 +1,66 @@ +/* + * MIT License + * + * Copyright (c) 2024 XenFork Union + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +package io.github.xenfork.squidcraft.block; + +import dev.architectury.registry.registries.DeferredRegister; +import dev.architectury.registry.registries.RegistrySupplier; +import io.github.xenfork.squidcraft.SquidCraft; +import net.minecraft.core.registries.Registries; +import net.minecraft.world.level.block.Block; +import net.minecraft.world.level.block.SoundType; +import net.minecraft.world.level.block.state.BlockBehaviour; +import net.minecraft.world.level.material.MapColor; + +import java.util.Locale; +import java.util.function.Supplier; + +/** + * @author squid233 + * @since 0.14.0 + */ +public enum ModBlocks { + COOKED_SHREDDED_SQUID_BLOCK(() -> new Block(BlockBehaviour.Properties.of().mapColor(MapColor.TERRACOTTA_WHITE).instabreak().sound(SoundType.SLIME_BLOCK))); + + private static final DeferredRegister REGISTER = DeferredRegister.create(SquidCraft.MOD_ID, Registries.BLOCK); + private final String path; + private final Supplier supplier; + private RegistrySupplier registrySupplier; + + ModBlocks(Supplier supplier) { + this.path = name().toLowerCase(Locale.ROOT); + this.supplier = supplier; + } + + public static void init() { + for (var value : values()) { + value.registrySupplier = REGISTER.register(value.path(), value.supplier); + } + REGISTER.register(); + } + + public String path() { + return path; + } + + public RegistrySupplier registrySupplier() { + return registrySupplier; + } + + public Block get() { + return registrySupplier().get(); + } +} diff --git a/common/src/main/java/io/github/xenfork/squidcraft/item/ModItemGroups.java b/common/src/main/java/io/github/xenfork/squidcraft/item/ModItemGroups.java index da5fe1e..97bc97b 100644 --- a/common/src/main/java/io/github/xenfork/squidcraft/item/ModItemGroups.java +++ b/common/src/main/java/io/github/xenfork/squidcraft/item/ModItemGroups.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023 XenFork Union + * Copyright (c) 2023-2024 XenFork Union * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -43,6 +43,7 @@ public final class ModItemGroups { output.accept(ModItems.COOKED_SHREDDED_SQUID.get()); output.accept(ModItems.GLOWING_SHREDDED_SQUID.get()); output.accept(ModItems.MAGMA_SHREDDED_SQUID.get()); + output.accept(ModItems.COOKED_SHREDDED_SQUID_BLOCK.get()); }) )); diff --git a/common/src/main/java/io/github/xenfork/squidcraft/item/ModItems.java b/common/src/main/java/io/github/xenfork/squidcraft/item/ModItems.java index 02a06e7..d1b398f 100644 --- a/common/src/main/java/io/github/xenfork/squidcraft/item/ModItems.java +++ b/common/src/main/java/io/github/xenfork/squidcraft/item/ModItems.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023 XenFork Union + * Copyright (c) 2023-2024 XenFork Union * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -19,10 +19,12 @@ import dev.architectury.registry.registries.DeferredRegister; import dev.architectury.registry.registries.RegistrySupplier; import io.github.xenfork.squidcraft.SquidCraft; +import io.github.xenfork.squidcraft.block.ModBlocks; import net.minecraft.core.registries.Registries; import net.minecraft.world.effect.MobEffectInstance; import net.minecraft.world.effect.MobEffects; import net.minecraft.world.food.FoodProperties; +import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.Item; import java.util.Locale; @@ -37,25 +39,21 @@ public enum ModItems { SHREDDED_SQUID(() -> ofSnack(1, 1f)), COOKED_SHREDDED_SQUID(() -> ofSnack(2, 1f)), GLOWING_SHREDDED_SQUID(() -> ofMeat(1, 1f, builder -> builder.effect(new MobEffectInstance(MobEffects.GLOWING, 200, 0), 1f))), - MAGMA_SHREDDED_SQUID(() -> ofMeat(2, 0.5f, builder -> builder.effect(new MobEffectInstance(MobEffects.FIRE_RESISTANCE, 200, 0), 0.3f))); + MAGMA_SHREDDED_SQUID(() -> ofMeat(2, 0.5f, builder -> builder.effect(new MobEffectInstance(MobEffects.FIRE_RESISTANCE, 200, 0), 0.3f))), + COOKED_SHREDDED_SQUID_BLOCK(() -> new BlockItem(ModBlocks.COOKED_SHREDDED_SQUID_BLOCK.get(), new Item.Properties())); private static final DeferredRegister REGISTER = DeferredRegister.create(SquidCraft.MOD_ID, Registries.ITEM); private final String path; private final Supplier supplier; private RegistrySupplier registrySupplier; - ModItems(Supplier supplier, String path) { - this.path = path; - this.supplier = supplier; - } - ModItems(Supplier supplier) { this.path = name().toLowerCase(Locale.ROOT); this.supplier = supplier; } public static void init() { - for (ModItems value : values()) { + for (var value : values()) { value.registrySupplier = REGISTER.register(value.path(), value.supplier); } REGISTER.register(); diff --git a/common/src/main/resources/assets/squidcraft/blockstates/cooked_shredded_squid_block.json b/common/src/main/resources/assets/squidcraft/blockstates/cooked_shredded_squid_block.json new file mode 100644 index 0000000..6b7f895 --- /dev/null +++ b/common/src/main/resources/assets/squidcraft/blockstates/cooked_shredded_squid_block.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "squidcraft:block/cooked_shredded_squid_block" + } + } +} diff --git a/common/src/main/resources/assets/squidcraft/lang/en_us.json b/common/src/main/resources/assets/squidcraft/lang/en_us.json index c2d860e..44b89be 100644 --- a/common/src/main/resources/assets/squidcraft/lang/en_us.json +++ b/common/src/main/resources/assets/squidcraft/lang/en_us.json @@ -7,9 +7,11 @@ "advancements.squidcraft.glowing_shredded_squid.description": "Get glowing shredded squid", "advancements.squidcraft.magma_shredded_squid.title": "Magma Shredded Squid", "advancements.squidcraft.magma_shredded_squid.description": "Get magma shredded squid", + "block.squidcraft.cooked_shredded_squid_block": "Block of Cooked Shredded Squid", "item.squidcraft.shredded_squid": "Shredded Squid", "item.squidcraft.cooked_shredded_squid": "Cooked Shredded Squid", "item.squidcraft.glowing_shredded_squid": "Glowing Shredded Squid", "item.squidcraft.magma_shredded_squid": "Magma Shredded Squid", + "item.squidcraft.cooked_shredded_squid_block": "Block of Cooked Shredded Squid", "itemGroup.squidcraft.main": "SquidCraft" } diff --git a/common/src/main/resources/assets/squidcraft/lang/zh_cn.json b/common/src/main/resources/assets/squidcraft/lang/zh_cn.json index 513204a..579d849 100644 --- a/common/src/main/resources/assets/squidcraft/lang/zh_cn.json +++ b/common/src/main/resources/assets/squidcraft/lang/zh_cn.json @@ -7,9 +7,11 @@ "advancements.squidcraft.glowing_shredded_squid.description": "获得荧光鱿鱼丝", "advancements.squidcraft.magma_shredded_squid.title": "岩浆鱿鱼丝", "advancements.squidcraft.magma_shredded_squid.description": "获得岩浆鱿鱼丝", + "block.squidcraft.cooked_shredded_squid_block": "熟鱿鱼丝块", "item.squidcraft.shredded_squid": "鱿鱼丝", "item.squidcraft.cooked_shredded_squid": "熟鱿鱼丝", "item.squidcraft.glowing_shredded_squid": "荧光鱿鱼丝", "item.squidcraft.magma_shredded_squid": "岩浆鱿鱼丝", + "item.squidcraft.cooked_shredded_squid_block": "熟鱿鱼丝块", "itemGroup.squidcraft.main": "鱿鱼工艺" } diff --git a/common/src/main/resources/assets/squidcraft/models/block/cooked_shredded_squid_block.json b/common/src/main/resources/assets/squidcraft/models/block/cooked_shredded_squid_block.json new file mode 100644 index 0000000..12f3639 --- /dev/null +++ b/common/src/main/resources/assets/squidcraft/models/block/cooked_shredded_squid_block.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "squidcraft:block/cooked_shredded_squid_block" + } +} diff --git a/common/src/main/resources/assets/squidcraft/models/item/cooked_shredded_squid_block.json b/common/src/main/resources/assets/squidcraft/models/item/cooked_shredded_squid_block.json new file mode 100644 index 0000000..cfaf4b5 --- /dev/null +++ b/common/src/main/resources/assets/squidcraft/models/item/cooked_shredded_squid_block.json @@ -0,0 +1,3 @@ +{ + "parent": "squidcraft:block/cooked_shredded_squid_block" +} diff --git a/common/src/main/resources/assets/squidcraft/textures/block/cooked_shredded_squid_block.png b/common/src/main/resources/assets/squidcraft/textures/block/cooked_shredded_squid_block.png new file mode 100644 index 0000000000000000000000000000000000000000..d2a8861740233552b532e2d1abb123c5f726d5ea GIT binary patch literal 179 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFE7JxXZx0jeK`07D8*Ue5n0T@z;_sg8IR|$NC67! zdb&7S S``ZW9$l&Sf=d#Wzp$Py=$uf)p literal 0 HcmV?d00001 diff --git a/common/src/main/resources/data/squidcraft/advancements/cooked_shredded_squid_block.json b/common/src/main/resources/data/squidcraft/advancements/cooked_shredded_squid_block.json new file mode 100644 index 0000000..66acb1b --- /dev/null +++ b/common/src/main/resources/data/squidcraft/advancements/cooked_shredded_squid_block.json @@ -0,0 +1,29 @@ +{ + "parent": "squidcraft:cooked_shredded_squid", + "criteria": { + "cooked_shredded_squid_block": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid_block" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "frame": "goal", + "description": { + "translate": "advancements.squidcraft.cooked_shredded_squid_block.description" + }, + "title": { + "translate": "advancements.squidcraft.cooked_shredded_squid_block.title" + }, + "icon": { + "item": "squidcraft:cooked_shredded_squid_block" + } + } +} diff --git a/common/src/main/resources/data/squidcraft/advancements/magma_shredded_squid.json b/common/src/main/resources/data/squidcraft/advancements/magma_shredded_squid.json index b60c414..d311940 100644 --- a/common/src/main/resources/data/squidcraft/advancements/magma_shredded_squid.json +++ b/common/src/main/resources/data/squidcraft/advancements/magma_shredded_squid.json @@ -1,5 +1,5 @@ { - "parent": "squidcraft:root", + "parent": "squidcraft:cooked_shredded_squid", "criteria": { "magma_shredded_squid": { "conditions": { diff --git a/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid.json b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid.json index 2ad6d1d..9b2fe64 100644 --- a/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid.json +++ b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid.json @@ -25,6 +25,18 @@ }, "trigger": "minecraft:inventory_changed" }, + "has_cooked_shredded_squid": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, "has_the_recipe": { "conditions": { "recipe": "squidcraft:cooked_shredded_squid" @@ -36,6 +48,7 @@ [ "has_shredded_squid", "has_glowing_shredded_squid", + "has_cooked_shredded_squid", "has_the_recipe" ] ], diff --git a/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_block.json b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_block.json new file mode 100644 index 0000000..17f32d0 --- /dev/null +++ b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_block.json @@ -0,0 +1,47 @@ +{ + "parent": "squidcraft:recipes/root", + "criteria": { + "has_cooked_shredded_squid": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_cooked_shredded_squid_block": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid_block" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_the_recipe": { + "conditions": { + "recipe": "squidcraft:cooked_shredded_squid_block" + }, + "trigger": "minecraft:recipe_unlocked" + } + }, + "requirements": [ + [ + "has_cooked_shredded_squid", + "has_cooked_shredded_squid_block", + "has_the_recipe" + ] + ], + "rewards": { + "recipes": [ + "squidcraft:cooked_shredded_squid_block" + ] + } +} diff --git a/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_decompress.json b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_decompress.json new file mode 100644 index 0000000..1701c0a --- /dev/null +++ b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_decompress.json @@ -0,0 +1,47 @@ +{ + "parent": "squidcraft:recipes/root", + "criteria": { + "has_cooked_shredded_squid": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_cooked_shredded_squid_block": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid_block" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_the_recipe": { + "conditions": { + "recipe": "squidcraft:cooked_shredded_squid_decompress" + }, + "trigger": "minecraft:recipe_unlocked" + } + }, + "requirements": [ + [ + "has_cooked_shredded_squid", + "has_cooked_shredded_squid_block", + "has_the_recipe" + ] + ], + "rewards": { + "recipes": [ + "squidcraft:cooked_shredded_squid_decompress" + ] + } +} diff --git a/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_from_campfire_cooking.json b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_from_campfire_cooking.json index 98dfec9..057a0b8 100644 --- a/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_from_campfire_cooking.json +++ b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_from_campfire_cooking.json @@ -25,9 +25,21 @@ }, "trigger": "minecraft:inventory_changed" }, + "has_cooked_shredded_squid": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, "has_the_recipe": { "conditions": { - "recipe": "squidcraft:cooked_shredded_squid" + "recipe": "squidcraft:cooked_shredded_squid_from_campfire_cooking" }, "trigger": "minecraft:recipe_unlocked" } @@ -36,6 +48,7 @@ [ "has_shredded_squid", "has_glowing_shredded_squid", + "has_cooked_shredded_squid", "has_the_recipe" ] ], diff --git a/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_from_smoking.json b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_from_smoking.json index 8b04dda..9c1ef23 100644 --- a/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_from_smoking.json +++ b/common/src/main/resources/data/squidcraft/advancements/recipes/cooked_shredded_squid_from_smoking.json @@ -25,9 +25,21 @@ }, "trigger": "minecraft:inventory_changed" }, + "has_cooked_shredded_squid": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, "has_the_recipe": { "conditions": { - "recipe": "squidcraft:cooked_shredded_squid" + "recipe": "squidcraft:cooked_shredded_squid_from_smoking" }, "trigger": "minecraft:recipe_unlocked" } @@ -36,6 +48,7 @@ [ "has_shredded_squid", "has_glowing_shredded_squid", + "has_cooked_shredded_squid", "has_the_recipe" ] ], diff --git a/common/src/main/resources/data/squidcraft/advancements/recipes/magma_shredded_squid.json b/common/src/main/resources/data/squidcraft/advancements/recipes/magma_shredded_squid.json index afa531f..0efe2ed 100644 --- a/common/src/main/resources/data/squidcraft/advancements/recipes/magma_shredded_squid.json +++ b/common/src/main/resources/data/squidcraft/advancements/recipes/magma_shredded_squid.json @@ -1,6 +1,18 @@ { "parent": "squidcraft:recipes/root", "criteria": { + "has_cooked_shredded_squid": { + "conditions": { + "items": [ + { + "items": [ + "squidcraft:cooked_shredded_squid" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, "has_magma_shredded_squid": { "conditions": { "items": [ @@ -22,6 +34,7 @@ }, "requirements": [ [ + "has_cooked_shredded_squid", "has_magma_shredded_squid", "has_the_recipe" ] diff --git a/common/src/main/resources/data/squidcraft/loot_tables/blocks/cooked_shredded_squid_block.json b/common/src/main/resources/data/squidcraft/loot_tables/blocks/cooked_shredded_squid_block.json new file mode 100644 index 0000000..5dc44dc --- /dev/null +++ b/common/src/main/resources/data/squidcraft/loot_tables/blocks/cooked_shredded_squid_block.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:item", + "name": "squidcraft:cooked_shredded_squid_block" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} diff --git a/common/src/main/resources/data/squidcraft/recipes/cooked_shredded_squid_block.json b/common/src/main/resources/data/squidcraft/recipes/cooked_shredded_squid_block.json new file mode 100644 index 0000000..daa9325 --- /dev/null +++ b/common/src/main/resources/data/squidcraft/recipes/cooked_shredded_squid_block.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "###", + "###", + "###" + ], + "key": { + "#": { + "item": "squidcraft:cooked_shredded_squid" + } + }, + "result": { + "count": 1, + "item": "squidcraft:cooked_shredded_squid_block" + } +} diff --git a/common/src/main/resources/data/squidcraft/recipes/cooked_shredded_squid_decompress.json b/common/src/main/resources/data/squidcraft/recipes/cooked_shredded_squid_decompress.json new file mode 100644 index 0000000..918495a --- /dev/null +++ b/common/src/main/resources/data/squidcraft/recipes/cooked_shredded_squid_decompress.json @@ -0,0 +1,15 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "#" + ], + "key": { + "#": { + "item": "squidcraft:cooked_shredded_squid_block" + } + }, + "result": { + "count": 9, + "item": "squidcraft:cooked_shredded_squid" + } +}