Move additional tags to datagen

This commit is contained in:
Sollace 2024-03-20 19:39:33 +00:00
parent 599dfea711
commit 2dffb92e54
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
4 changed files with 16 additions and 42 deletions

View file

@ -26,6 +26,7 @@ public interface UTags {
TagKey<Item> IS_DELIVERED_AGGRESSIVELY = item("is_delivered_aggressively"); TagKey<Item> IS_DELIVERED_AGGRESSIVELY = item("is_delivered_aggressively");
TagKey<Item> FLOATS_ON_CLOUDS = item("floats_on_clouds"); TagKey<Item> FLOATS_ON_CLOUDS = item("floats_on_clouds");
TagKey<Item> COOLS_OFF_KIRINS = item("cools_off_kirins"); TagKey<Item> COOLS_OFF_KIRINS = item("cools_off_kirins");
TagKey<Item> LOOT_BUG_HIGH_VALUE_DROPS = item("loot_bug_high_value_drops");
TagKey<Item> SHELLS = item("food_types/shells"); TagKey<Item> SHELLS = item("food_types/shells");

View file

@ -90,6 +90,11 @@ public class UItemTagProvider extends FabricTagProvider.ItemTagProvider {
getOrCreateTagBuilder(UTags.FALLS_SLOWLY).add(Items.FEATHER, UItems.CLOUD_LUMP).forceAddTag(UTags.MAGIC_FEATHERS); getOrCreateTagBuilder(UTags.FALLS_SLOWLY).add(Items.FEATHER, UItems.CLOUD_LUMP).forceAddTag(UTags.MAGIC_FEATHERS);
getOrCreateTagBuilder(UTags.IS_DELIVERED_AGGRESSIVELY).forceAddTag(ItemTags.ANVIL); getOrCreateTagBuilder(UTags.IS_DELIVERED_AGGRESSIVELY).forceAddTag(ItemTags.ANVIL);
getOrCreateTagBuilder(UTags.SPOOKED_MOB_DROPS).add(Items.BRICK); getOrCreateTagBuilder(UTags.SPOOKED_MOB_DROPS).add(Items.BRICK);
getOrCreateTagBuilder(UTags.SHADES).add(
Items.CARVED_PUMPKIN, Items.SKELETON_SKULL, Items.WITHER_SKELETON_SKULL, Items.PLAYER_HEAD,
Items.ZOMBIE_HEAD, Items.CREEPER_HEAD, Items.DRAGON_HEAD, Items.PIGLIN_HEAD,
UItems.SUNGLASSES
);
getOrCreateTagBuilder(UTags.FLOATS_ON_CLOUDS) getOrCreateTagBuilder(UTags.FLOATS_ON_CLOUDS)
.forceAddTag(UTags.Items.CLOUD_BEDS) .forceAddTag(UTags.Items.CLOUD_BEDS)
.forceAddTag(UTags.Items.CLOUD_SLABS) .forceAddTag(UTags.Items.CLOUD_SLABS)
@ -103,6 +108,16 @@ public class UItemTagProvider extends FabricTagProvider.ItemTagProvider {
Items.DEBUG_STICK, Items.COMMAND_BLOCK_MINECART, Items.DEBUG_STICK, Items.COMMAND_BLOCK_MINECART,
UItems.PLUNDER_VINE UItems.PLUNDER_VINE
).forceAddTag(UTags.BADGES); ).forceAddTag(UTags.BADGES);
getOrCreateTagBuilder(UTags.LOOT_BUG_HIGH_VALUE_DROPS).add(
Items.DIAMOND, Items.GOLDEN_APPLE, Items.GOLDEN_CARROT,
Items.GOLDEN_HELMET, Items.GOLDEN_BOOTS, Items.GOLDEN_LEGGINGS, Items.GOLDEN_CHESTPLATE,
Items.GOLDEN_HORSE_ARMOR,
Items.GOLDEN_PICKAXE, Items.GOLDEN_SHOVEL, Items.GOLDEN_AXE, Items.GOLDEN_SWORD, Items.GOLDEN_HOE,
UItems.GOLDEN_HORSE_SHOE, UItems.GOLDEN_POLEARM, UItems.GOLDEN_FEATHER, UItems.GOLDEN_WING,
UItems.GOLDEN_OAK_SEEDS
).forceAddTag(ConventionalItemTags.NUGGETS)
.forceAddTag(ConventionalItemTags.GOLD_INGOTS).forceAddTag(ConventionalItemTags.RAW_GOLD_ORES).forceAddTag(ConventionalItemTags.RAW_GOLD_BLOCKS)
.addOptionalTag(new Identifier("farmersdelight:golden_knife"));
exportFarmersDelightItems(); exportFarmersDelightItems();
} }

View file

@ -1,29 +0,0 @@
{
"replace": false,
"values": [
"minecraft:diamond",
"minecraft:gold_nugget",
"minecraft:iron_nugget",
"#c:gold_ingots",
"#c:raw_gold_ores",
"#c:raw_gold_blocks",
"minecraft:golden_apple",
"minecraft:golden_carrot",
"minecraft:golden_boots",
"minecraft:golden_leggings",
"minecraft:golden_chestplate",
"minecraft:golden_helmet",
"minecraft:golden_horse_armor",
"unicopia:golden_horse_shoe",
"minecraft:golden_pickaxe",
"minecraft:golden_axe",
"minecraft:golden_shovel",
"minecraft:golden_sword",
"minecraft:golden_hoe",
"unicopia:golden_polearm",
"unicopia:golden_feather",
"unicopia:golden_wing",
"unicopia:golden_oak_seeds",
{ "id": "farmersdelight:golden_knife", "required": false }
]
}

View file

@ -1,13 +0,0 @@
{
"replace": false,
"values": [
"minecraft:carved_pumpkin",
"minecraft:skeleton_skull",
"minecraft:wither_skeleton_skull",
"minecraft:player_head",
"minecraft:zombie_head",
"minecraft:creeper_head",
"minecraft:dragon_head",
"unicopia:sunglasses"
]
}