Skip to content

Commit

Permalink
Add bacon to meat tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Aug 31, 2024
1 parent 00ff1df commit baf1d98
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21.1 2024-08-25T23:46:34.845110648 Tags for minecraft:item mod id forcecraft
// 1.21.1 2024-08-31T20:26:51.604925 Tags for minecraft:item mod id forcecraft
d964b17dbbb1870466808060f50c0991f7cfaf65 data/c/tags/item/ores.json
f002772c304bb8350635523d7d3bb1c4fdb5796a data/c/tags/item/ores/power.json
b73848b6920747aedc21ffb8aed7e3aa8d325f04 data/c/tags/item/ores_in_ground/deepslate.json
Expand All @@ -10,3 +10,4 @@ ca0dfb4cd17d1a8bebda73a2ba9587fde8c1486d data/forcecraft/tags/item/ender.json
ba8baa1de0654d18f27068517c95b5fb869c254a data/forcecraft/tags/item/force_furnace.json
eff2e9b711edce9a5ae1875f820c2b5272b0779f data/forcecraft/tags/item/force_logs.json
f6578c63f571b1fa389775ac66b9218c094d5150 data/forcecraft/tags/item/fortune.json
d1415442d2f9003a49daa7a187adfa9f33413cf4 data/minecraft/tags/item/meat.json
6 changes: 6 additions & 0 deletions src/generated/resources/data/minecraft/tags/item/meat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values": [
"forcecraft:raw_bacon",
"forcecraft:cooked_bacon"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ public ForceItemTagProvider(PackOutput output, CompletableFuture<HolderLookup.Pr
public static final TagKey<Item> ORES_IN_GROUND_STONE = commonTag("ores_in_ground/stone");
public static final TagKey<Item> ORES = commonTag("ores");
public static final TagKey<Item> ORES_POWER = commonTag("ores/power");
public static final TagKey<Item> MEAT = mcTag("meat");

private static TagKey<Item> commonTag(String name) {
return ItemTags.create(ResourceLocation.fromNamespaceAndPath("c", name));
}

private static TagKey<Item> mcTag(String name) {
return ItemTags.create(ResourceLocation.withDefaultNamespace(name));
}

@Override
protected void addTags(HolderLookup.Provider provider) {
this.tag(ORES_IN_GROUND_DEEPSLATE).add(DEEPSLATE_POWER_ORE_ITEM.get());
Expand Down Expand Up @@ -76,5 +81,7 @@ protected void addTags(HolderLookup.Provider provider) {
ForceRegistry.MAGENTA_FORCE_FURNACE.asItem(), ForceRegistry.ORANGE_FORCE_FURNACE.asItem(),
ForceRegistry.PINK_FORCE_FURNACE.asItem(), ForceRegistry.PURPLE_FORCE_FURNACE.asItem(),
ForceRegistry.RED_FORCE_FURNACE.asItem(), ForceRegistry.WHITE_FORCE_FURNACE.asItem());

this.tag(MEAT).add(ForceRegistry.RAW_BACON.get(), ForceRegistry.COOKED_BACON.get());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ public class ForceFoods {
public static final FoodProperties SOUL_WAFER = (new FoodProperties.Builder()).nutrition(2).saturationModifier(1.0F).build();
public static final FoodProperties BACON = (new FoodProperties.Builder()).nutrition(2).saturationModifier(0.4F).build();
public static final FoodProperties COOKED_BACON = (new FoodProperties.Builder()).nutrition(4).saturationModifier(0.8F).build();
//TODO: Add bacon and cooked bacon to minecraft:meat
}

0 comments on commit baf1d98

Please sign in to comment.