Skip to content

Commit

Permalink
1.20.1
Browse files Browse the repository at this point in the history
3.1
Fix creative tab title
Add support for Vinery, DrinkBeer, MoreVillagers & BuildersAdditions recipes
  • Loading branch information
xanthian committed Jan 28, 2024
1 parent ee1e912 commit 0780a5d
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -20,6 +21,7 @@ public class ModCreativeTabs {

public static final RegistryObject<CreativeModeTab> 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) -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:dirt"
},
{
"tag": "variantbarrels:barrels"
}
],
"result":{
"item": "buildersaddition:planter",
"count": 1
}
}
20 changes: 20 additions & 0 deletions src/main/resources/data/compat/drinkbeer/recipes/beer_barrel.json
Original file line number Diff line number Diff line change
@@ -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
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:paper"
},
{
"item": "minecraft:string"
},
{
"tag": "variantbarrels:barrels"
}
],
"result": {
"item": "morevillagers:oceanography_table"
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
23 changes: 23 additions & 0 deletions src/main/resources/data/compat/vinery/recipes/wine_press.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
20 changes: 20 additions & 0 deletions src/main/resources/data/compat/vinery/recipes/wine_rack_3.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
23 changes: 23 additions & 0 deletions src/main/resources/data/compat/vinery/recipes/wine_rack_5.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 0780a5d

Please sign in to comment.