Add stairs/walls/slabs to item tags

This commit is contained in:
Mrbysco 2024-10-31 20:14:18 +01:00
parent 43312e2eb4
commit e3dd3290c8
5 changed files with 68 additions and 1 deletions

View file

@ -1,4 +1,4 @@
// 1.21.1 2024-10-19T11:22:45.676221 Tags for minecraft:item mod id actuallyadditions // 1.21.1 2024-10-31T20:14:02.6354984 Tags for minecraft:item mod id actuallyadditions
87327118c2f16da245b76de4fdcaab149456d9b8 data/actuallyadditions/tags/item/coffee_beans.json 87327118c2f16da245b76de4fdcaab149456d9b8 data/actuallyadditions/tags/item/coffee_beans.json
f3ee78cd8c9563bd1828de2b4b336735f289f9f2 data/actuallyadditions/tags/item/crystals.json f3ee78cd8c9563bd1828de2b4b336735f289f9f2 data/actuallyadditions/tags/item/crystals.json
441008b49b4bab00125100fc969cb6582eff7271 data/actuallyadditions/tags/item/crystal_blocks.json 441008b49b4bab00125100fc969cb6582eff7271 data/actuallyadditions/tags/item/crystal_blocks.json
@ -38,3 +38,6 @@ fb95ac8041521e1d2879f6fcb652266dcd9e0fb1 data/c/tags/item/storage_blocks/empower
148cd937543fd58b196403c18839b2698bf87fdf data/c/tags/item/storage_blocks/palis_crystal.json 148cd937543fd58b196403c18839b2698bf87fdf data/c/tags/item/storage_blocks/palis_crystal.json
b9aa28a54d47054ba5653bec2f20e0a675ab5120 data/c/tags/item/storage_blocks/restonia_crystal.json b9aa28a54d47054ba5653bec2f20e0a675ab5120 data/c/tags/item/storage_blocks/restonia_crystal.json
fb4f349bc6fd89f26ef2ba72a9236f05eefd8ea2 data/c/tags/item/storage_blocks/void_crystal.json fb4f349bc6fd89f26ef2ba72a9236f05eefd8ea2 data/c/tags/item/storage_blocks/void_crystal.json
51d50547b5f031f4fa6e62189af06059a407c009 data/minecraft/tags/item/slabs.json
a60870f29ca48ea0d55ac32620ff5b4bb2f2f62e data/minecraft/tags/item/stairs.json
f74407e86c92d0d9435d62ff0f95999f3a84c674 data/minecraft/tags/item/walls.json

View file

@ -0,0 +1,11 @@
{
"values": [
"actuallyadditions:ethetic_white_slab",
"actuallyadditions:ethetic_green_slab",
"actuallyadditions:black_quartz_slab",
"actuallyadditions:smooth_black_quartz_slab",
"actuallyadditions:black_quartz_pillar_slab",
"actuallyadditions:chiseled_black_quartz_slab",
"actuallyadditions:black_quartz_brick_slab"
]
}

View file

@ -0,0 +1,11 @@
{
"values": [
"actuallyadditions:ethetic_white_stairs",
"actuallyadditions:ethetic_green_stairs",
"actuallyadditions:black_quartz_stair",
"actuallyadditions:smooth_black_quartz_stair",
"actuallyadditions:black_quartz_pillar_stair",
"actuallyadditions:chiseled_black_quartz_stair",
"actuallyadditions:black_quartz_brick_stair"
]
}

View file

@ -0,0 +1,11 @@
{
"values": [
"actuallyadditions:ethetic_white_wall",
"actuallyadditions:ethetic_green_wall",
"actuallyadditions:black_quartz_wall",
"actuallyadditions:smooth_black_quartz_wall",
"actuallyadditions:black_quartz_pillar_wall",
"actuallyadditions:chiseled_black_quartz_wall",
"actuallyadditions:black_quartz_brick_wall"
]
}

View file

@ -9,6 +9,7 @@ import net.minecraft.core.HolderLookup;
import net.minecraft.data.PackOutput; import net.minecraft.data.PackOutput;
import net.minecraft.data.tags.ItemTagsProvider; import net.minecraft.data.tags.ItemTagsProvider;
import net.minecraft.data.tags.TagsProvider; import net.minecraft.data.tags.TagsProvider;
import net.minecraft.tags.ItemTags;
import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Block;
import net.neoforged.neoforge.common.Tags; import net.neoforged.neoforge.common.Tags;
import net.neoforged.neoforge.common.data.ExistingFileHelper; import net.neoforged.neoforge.common.data.ExistingFileHelper;
@ -24,6 +25,36 @@ public class ItemTagsGenerator extends ItemTagsProvider {
@Override @Override
protected void addTags(@Nonnull HolderLookup.Provider provider) { protected void addTags(@Nonnull HolderLookup.Provider provider) {
tag(ItemTags.WALLS).add(
ActuallyBlocks.ETHETIC_WHITE_WALL.getItem(),
ActuallyBlocks.ETHETIC_GREEN_WALL.getItem(),
ActuallyBlocks.BLACK_QUARTZ_WALL.getItem(),
ActuallyBlocks.SMOOTH_BLACK_QUARTZ_WALL.getItem(),
ActuallyBlocks.BLACK_QUARTZ_PILLAR_WALL.getItem(),
ActuallyBlocks.CHISELED_BLACK_QUARTZ_WALL.getItem(),
ActuallyBlocks.BLACK_QUARTZ_BRICK_WALL.getItem()
);
tag(ItemTags.STAIRS).add(
ActuallyBlocks.ETHETIC_WHITE_STAIRS.getItem(),
ActuallyBlocks.ETHETIC_GREEN_STAIRS.getItem(),
ActuallyBlocks.BLACK_QUARTZ_STAIR.getItem(),
ActuallyBlocks.SMOOTH_BLACK_QUARTZ_STAIR.getItem(),
ActuallyBlocks.BLACK_QUARTZ_PILLAR_STAIR.getItem(),
ActuallyBlocks.CHISELED_BLACK_QUARTZ_STAIR.getItem(),
ActuallyBlocks.BLACK_QUARTZ_BRICK_STAIR.getItem()
);
tag(ItemTags.SLABS).add(
ActuallyBlocks.ETHETIC_WHITE_SLAB.getItem(),
ActuallyBlocks.ETHETIC_GREEN_SLAB.getItem(),
ActuallyBlocks.BLACK_QUARTZ_SLAB.getItem(),
ActuallyBlocks.SMOOTH_BLACK_QUARTZ_SLAB.getItem(),
ActuallyBlocks.BLACK_QUARTZ_PILLAR_SLAB.getItem(),
ActuallyBlocks.CHISELED_BLACK_QUARTZ_SLAB.getItem(),
ActuallyBlocks.BLACK_QUARTZ_BRICK_SLAB.getItem()
);
tag(ActuallyTags.Items.COFFEE_BEANS) tag(ActuallyTags.Items.COFFEE_BEANS)
.add(ActuallyItems.COFFEE_BEANS.get()); .add(ActuallyItems.COFFEE_BEANS.get());
tag(ActuallyTags.Items.TINY_COALS) tag(ActuallyTags.Items.TINY_COALS)