Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,33 @@
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class ItemTags {
public static final TagKey<Item>
SAPLINGS = of("saplings"),
LOGS = of("logs"),
PLANKS = of("planks"),
COALS = of("coals");
COALS = of("c:coals"), // Used for Fuel

SAPLINGS = of("c:saplings"),
PLANKS = of("c:planks"),
NORMAL_COBBLESTONE = of("c:cobblestones/normal"),
NORMAL_SAND = of("c:sands/normal"),
WOODEN_CHESTS = of("c:chests/wooden"),
WOOLS = of("c:wools"),
IRON_INGOT = of("c:ingots/iron"),
GOLD_INGOT = of("c:ingots/gold"),
GLOWSTONE_DUST = of("c:dusts/glowstone"),
REDSTONE_DUST = of("c:dusts/redstone"),
DIAMOND = of("c:gems/diamond"),
GOLD_BLOCKS = of("c:storage_blocks/gold"),
NORMAL_BRICKS = of("c:bricks/normal"),
STRINGS = of("c:strings"),
GUNPOWDERS = of("c:gunpowders"),
LEATHERS = of("c:leathers"),
FEATHERS = of("c:feathers"),
SLIMEBALLS = of("c:slime_balls"),
BONE = of("c:bones"),
EGGS = of("c:eggs"),
WHEAT = of("c:crops/wheat"),
BOWS = of("c:tools/bows"),
WOODEN_STICK = of("c:sticks/wooden"),
RED_MUSHROOMS = of("c:mushrooms/red"),
BROWN_MUSHROOMS = of("c:mushrooms/brown");

private static TagKey<Item> of(String id) {
return TagKey.of(ItemRegistry.KEY, Identifier.of(id));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ private static void registerBlocks(BlockRegistryEvent event) {
.accept("cobblestone_stairs", COBBLESTONE_STAIRS)
.accept("oak_wall_sign", WALL_SIGN)
.accept("lever", LEVER)
.accept("oak_pressure_plate", STONE_PRESSURE_PLATE)
.accept("stone_pressure_plate", STONE_PRESSURE_PLATE)
.accept("iron_door", IRON_DOOR)
.accept("stone_pressure_plate", WOODEN_PRESSURE_PLATE)
.accept("oak_pressure_plate", WOODEN_PRESSURE_PLATE)
.accept("redstone_ore", REDSTONE_ORE)
.accept("redstone_ore_lit", LIT_REDSTONE_ORE)
.accept("redstone_torch", REDSTONE_TORCH)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private static void registerFuel(RecipeRegisterEvent event) {
for (Block block : Block.BLOCKS)
if (block != null && block.material == Material.WOOD && Item.ITEMS[block.id] != null)
FuelRegistry.addFuelItem(Item.ITEMS[block.id], 300);
FuelRegistry.addFuelItem(Item.STICK, 100);
FuelRegistry.addFuelTag(ItemTags.WOODEN_STICK, 100);
FuelRegistry.addFuelTag(ItemTags.COALS, 1600);
FuelRegistry.addFuelItem(Item.LAVA_BUCKET, 20000);
FuelRegistry.addFuelTag(ItemTags.SAPLINGS, 100);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,29 @@ public class VanillaTagRecipeFixImpl {
private static final Supplier<ImmutableMap<Item, TagKey<Item>>> TAGIFICATION_MAP = Suppliers.memoize(() -> {
val builder = ImmutableMap.<Item, TagKey<Item>>builder();
builder.put(Block.PLANKS.asItem(), ItemTags.PLANKS);
builder.put(Block.COBBLESTONE.asItem(), ItemTags.NORMAL_COBBLESTONE);
builder.put(Block.SAND.asItem(), ItemTags.NORMAL_SAND);
builder.put(Block.CHEST.asItem(), ItemTags.WOODEN_CHESTS);
builder.put(Block.WOOL.asItem(), ItemTags.WOOLS);
builder.put(Item.IRON_INGOT, ItemTags.IRON_INGOT);
builder.put(Item.GOLD_INGOT, ItemTags.GOLD_INGOT);
builder.put(Item.GLOWSTONE_DUST, ItemTags.GLOWSTONE_DUST);
builder.put(Item.REDSTONE, ItemTags.REDSTONE_DUST);
builder.put(Item.DIAMOND, ItemTags.DIAMOND);
builder.put(Block.GOLD_BLOCK.asItem(), ItemTags.GOLD_BLOCKS);
builder.put(Item.BRICK, ItemTags.NORMAL_BRICKS);
builder.put(Item.STRING, ItemTags.STRINGS);
builder.put(Item.GUNPOWDER, ItemTags.GUNPOWDERS);
builder.put(Item.LEATHER, ItemTags.LEATHERS);
builder.put(Item.FEATHER, ItemTags.FEATHERS);
builder.put(Item.SLIMEBALL, ItemTags.SLIMEBALLS);
builder.put(Item.BONE, ItemTags.BONE);
builder.put(Item.EGG, ItemTags.EGGS);
builder.put(Item.WHEAT, ItemTags.WHEAT);
builder.put(Item.BOW, ItemTags.BOWS);
builder.put(Item.STICK, ItemTags.WOODEN_STICK);
builder.put(Block.RED_MUSHROOM.asItem(), ItemTags.RED_MUSHROOMS);
builder.put(Block.BROWN_MUSHROOM.asItem(), ItemTags.BROWN_MUSHROOMS);
return builder.build();
});

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:bookshelf"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:brick_blocks/normal",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:bricks"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:buttons/stone",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:stone_button"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:cactus"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:chests/wooden",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:chest"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:clay"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"values": [
{
"id": "#c:cobblestones/normal",
"required": false
},
{
"id": "#c:cobblestones/mossy",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:mossy_cobblestone"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:cobblestone"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:dirt"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"values": [
{
"id": "#c:doors/wooden",
"required": false
},
{
"id": "#c:doors/iron",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:iron_door"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:doors/wooden/oak",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:oak_door"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:fence_gates/wooden",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"values": [
"log"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:fences/wooden",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:fences/wooden/oak",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:oak_fence"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"values": [
{
"id": "#c:flowers/small",
"required": false
},
{
"id": "#c:flowers/tall",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values": [
"minecraft:dandelion",
"minecraft:rose"
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"values": [
"log"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:glass_blocks/colorless",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:glass"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:grass_block"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:gravel"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:ladders/wooden",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
{
"id": "#c:ladders/wooden/oak",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:ladder"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:leaves"
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"values": [
"leaves"
"minecraft:log"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"values": [
{
"id": "#c:mushrooms/brown",
"required": false
},
{
"id": "#c:mushrooms/red",
"required": false
}
]
}
Loading