Skip to content

Commit

Permalink
Correctly datagen the milk containers tag and remove two non-genned ones
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Nov 1, 2022
1 parent 5495262 commit f67aaac
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 45 deletions.
1 change: 1 addition & 0 deletions src/generated/resources/.cache/cache
Expand Up @@ -565,6 +565,7 @@ a0b3fd5ce7eaf9e816a1a2752a10f2179cc22170 data/inspirations/tags/items/bookshelve
85c18a3259a3290405d1f9b53f263fa73d5016f3 data/inspirations/tags/items/carpeted_trapdoors.json
13952d80b58aeec6e0eedccd3ddf31a863df7945 data/inspirations/tags/items/carpets.json
0192fa2d894825841d880ef4815ae28280435b7c data/inspirations/tags/items/enlightened_bushes.json
e3438a67527372b0f84aa67d4e161158b3838cca data/inspirations/tags/items/milk_containers.json
150684de449bf92f1ee6c2b1edfcfbc9b73e31fe data/inspirations/tags/items/mulch.json
9a9d02d5e16350805e1cf2738adad58822b695a3 data/inspirations/tags/items/shulker_boxes.json
6a070b00a6a93fa6077bad494c8ddc4ab303c4b8 data/inspirations/tags/items/terracotta.json
Expand Down
@@ -0,0 +1,16 @@
{
"replace": false,
"values": [
"minecraft:bucket",
"minecraft:glass_bottle",
"minecraft:bowl",
{
"id": "ceramics:clay_bucket",
"required": false
},
{
"id": "simplytea:teapot",
"required": false
}
]
}
Expand Up @@ -11,6 +11,7 @@
import net.minecraft.data.DataGenerator;
import net.minecraft.data.tags.BlockTagsProvider;
import net.minecraft.data.tags.ItemTagsProvider;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.BlockTags;
import net.minecraft.tags.ItemTags;
import net.minecraft.world.item.Item;
Expand Down Expand Up @@ -66,7 +67,9 @@ private void registerInspTags() {
terracottaBuilder.add(Items.TERRACOTTA);
VanillaEnum.TERRACOTTA.forEach(block -> terracottaBuilder.add(block.asItem()));

this.tag(InspirationsTags.Items.MILK_CONTAINERS).add(Items.BUCKET, Items.GLASS_BOTTLE);
this.tag(InspirationsTags.Items.MILK_CONTAINERS).add(Items.BUCKET, Items.GLASS_BOTTLE, Items.BOWL)
.addOptional(new ResourceLocation("ceramics:clay_bucket"))
.addOptional(new ResourceLocation("simplytea:teapot"));
}

private void registerForgeTags() {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit f67aaac

Please sign in to comment.