From 0780a5d3640b477c06e0eab3a055fd4d6daae6c9 Mon Sep 17 00:00:00 2001 From: Xanthian Date: Sun, 28 Jan 2024 13:44:28 +0000 Subject: [PATCH] 1.20.1 3.1 Fix creative tab title Add support for Vinery, DrinkBeer, MoreVillagers & BuildersAdditions recipes --- .../variantbarrels/util/ModCreativeTabs.java | 2 ++ .../buildersaddition/recipes/planter.json | 15 ++++++++++++ .../compat/drinkbeer/recipes/beer_barrel.json | 20 ++++++++++++++++ .../recipes/oceanography_table.json | 17 ++++++++++++++ .../vinery/recipes/fermentation_barrel.json | 19 +++++++++++++++ .../compat/vinery/recipes/wine_press.json | 23 +++++++++++++++++++ .../compat/vinery/recipes/wine_rack_3.json | 20 ++++++++++++++++ .../compat/vinery/recipes/wine_rack_5.json | 23 +++++++++++++++++++ 8 files changed, 139 insertions(+) create mode 100644 src/main/resources/data/compat/buildersaddition/recipes/planter.json create mode 100644 src/main/resources/data/compat/drinkbeer/recipes/beer_barrel.json create mode 100644 src/main/resources/data/compat/morevillagers/recipes/oceanography_table.json create mode 100644 src/main/resources/data/compat/vinery/recipes/fermentation_barrel.json create mode 100644 src/main/resources/data/compat/vinery/recipes/wine_press.json create mode 100644 src/main/resources/data/compat/vinery/recipes/wine_rack_3.json create mode 100644 src/main/resources/data/compat/vinery/recipes/wine_rack_5.json diff --git a/src/main/java/net/xanthian/variantbarrels/util/ModCreativeTabs.java b/src/main/java/net/xanthian/variantbarrels/util/ModCreativeTabs.java index 4e7ac33..438cf6b 100644 --- a/src/main/java/net/xanthian/variantbarrels/util/ModCreativeTabs.java +++ b/src/main/java/net/xanthian/variantbarrels/util/ModCreativeTabs.java @@ -1,6 +1,7 @@ package net.xanthian.variantbarrels.util; import net.minecraft.core.registries.Registries; +import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.ItemStack; @@ -20,6 +21,7 @@ public class ModCreativeTabs { public static final RegistryObject VCB_TAB = CREATIVE_MODE_TABS.register("variantbarrels", () -> CreativeModeTab.builder().icon(() -> new ItemStack(Vanilla.MANGROVE_BARREL.get())) + .title(Component.literal("Variant Barrels")) .hideTitle() .withBackgroundLocation(new ResourceLocation(Initialise.MOD_ID, "textures/gui/container/creative_inventory/tab_variantbarrels.png")) .displayItems((pParameters, pOutput) -> { diff --git a/src/main/resources/data/compat/buildersaddition/recipes/planter.json b/src/main/resources/data/compat/buildersaddition/recipes/planter.json new file mode 100644 index 0000000..ba0b5cb --- /dev/null +++ b/src/main/resources/data/compat/buildersaddition/recipes/planter.json @@ -0,0 +1,15 @@ +{ + "type": "minecraft:crafting_shapeless", + "ingredients": [ + { + "item": "minecraft:dirt" + }, + { + "tag": "variantbarrels:barrels" + } + ], + "result":{ + "item": "buildersaddition:planter", + "count": 1 + } +} \ No newline at end of file diff --git a/src/main/resources/data/compat/drinkbeer/recipes/beer_barrel.json b/src/main/resources/data/compat/drinkbeer/recipes/beer_barrel.json new file mode 100644 index 0000000..0658c11 --- /dev/null +++ b/src/main/resources/data/compat/drinkbeer/recipes/beer_barrel.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "XY ", + " ", + " " + ], + "key": { + "X": { + "tag": "variantbarrels:barrels" + }, + "Y": { + "item": "minecraft:iron_ingot" + } + }, + "result": { + "item": "drinkbeer:beer_barrel", + "count":1 + } +} \ No newline at end of file diff --git a/src/main/resources/data/compat/morevillagers/recipes/oceanography_table.json b/src/main/resources/data/compat/morevillagers/recipes/oceanography_table.json new file mode 100644 index 0000000..b9858ec --- /dev/null +++ b/src/main/resources/data/compat/morevillagers/recipes/oceanography_table.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shapeless", + "ingredients": [ + { + "item": "minecraft:paper" + }, + { + "item": "minecraft:string" + }, + { + "tag": "variantbarrels:barrels" + } + ], + "result": { + "item": "morevillagers:oceanography_table" + } +} \ No newline at end of file diff --git a/src/main/resources/data/compat/vinery/recipes/fermentation_barrel.json b/src/main/resources/data/compat/vinery/recipes/fermentation_barrel.json new file mode 100644 index 0000000..fa6ecb1 --- /dev/null +++ b/src/main/resources/data/compat/vinery/recipes/fermentation_barrel.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:crafting_shaped", + "group": "fermentation_barrel", + "pattern": [ + " B ", + "S S" + ], + "key": { + "B": { + "tag": "variantbarrels:barrels" + }, + "S": { + "item": "minecraft:stick" + } + }, + "result": { + "item": "vinery:fermentation_barrel" + } +} \ No newline at end of file diff --git a/src/main/resources/data/compat/vinery/recipes/wine_press.json b/src/main/resources/data/compat/vinery/recipes/wine_press.json new file mode 100644 index 0000000..3e05d55 --- /dev/null +++ b/src/main/resources/data/compat/vinery/recipes/wine_press.json @@ -0,0 +1,23 @@ +{ + "type": "minecraft:crafting_shaped", + "group": "wine_press", + "pattern": [ + " # ", + "/B/", + "/ /" + ], + "key": { + "#": { + "item": "minecraft:iron_trapdoor" + }, + "/": { + "item": "minecraft:stick" + }, + "B": { + "tag": "variantbarrels:barrels" + } + }, + "result": { + "item": "vinery:wine_press" + } +} \ No newline at end of file diff --git a/src/main/resources/data/compat/vinery/recipes/wine_rack_3.json b/src/main/resources/data/compat/vinery/recipes/wine_rack_3.json new file mode 100644 index 0000000..8d240c1 --- /dev/null +++ b/src/main/resources/data/compat/vinery/recipes/wine_rack_3.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:crafting_shaped", + "group": "wine_rack", + "pattern": [ + "# #", + "#B#", + "# #" + ], + "key": { + "#": { + "item": "vinery:cherry_planks" + }, + "B": { + "tag": "variantbarrels:barrels" + } + }, + "result": { + "item": "vinery:wine_rack_3" + } +} \ No newline at end of file diff --git a/src/main/resources/data/compat/vinery/recipes/wine_rack_5.json b/src/main/resources/data/compat/vinery/recipes/wine_rack_5.json new file mode 100644 index 0000000..378b74e --- /dev/null +++ b/src/main/resources/data/compat/vinery/recipes/wine_rack_5.json @@ -0,0 +1,23 @@ +{ + "type": "minecraft:crafting_shaped", + "group": "wine_rack", + "pattern": [ + "###", + "_B_", + "#B#" + ], + "key": { + "#": { + "item": "vinery:cherry_planks" + }, + "_": { + "item": "vinery:cherry_slab" + }, + "B": { + "tag": "variantbarrels:barrels" + } + }, + "result": { + "item": "vinery:wine_rack_5" + } +} \ No newline at end of file