package info.u_team.u_team_test.init;

import java.util.List;

import info.u_team.u_team_core.api.item.ExtendedTier;
import info.u_team.u_team_core.item.tier.UExtendedTier;
import info.u_team.u_team_test.TestMod;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.item.Tiers;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraftforge.common.TierSortingRegistry;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

public class TestTiers {
	
	public static final ExtendedTier BASIC = new UExtendedTier(new float[] { 8, 0, 4, 2, 6 }, new float[] { -3.1F, -1, -2, -2, 0 }, BlockTags.createOptional(new ResourceLocation(TestMod.MODID, "needs_basic_tier")), 500, 10F, 8, 30, () -> Ingredient.of(TestItems.BASIC.get()));
	
	private static void setup(FMLCommonSetupEvent event) {
		TierSortingRegistry.registerTier(BASIC, new ResourceLocation(TestMod.MODID, "basic_tier"), List.of(Tiers.NETHERITE), List.of());
	}
	
	public static void registerMod(IEventBus bus) {
		bus.addListener(TestTiers::setup);
	}
}

@@ -158,32 +158,77 @@
 .UExtendedTier;%0A
+import info.u_team.u_team_core.util.TagUtil;%0A
 import info.u_te
@@ -304,45 +304,8 @@
 on;%0A
-import net.minecraft.tags.BlockTags;%0A
 impo
@@ -724,17 +724,15 @@
  %7D, 
-BlockTags
+TagUtil
 .cre
@@ -746,29 +746,16 @@
 onal
-(new ResourceLocation
+BlockTag
 (Tes
@@ -785,17 +785,16 @@
 c_tier%22)
-)
 , 500, 1

Use the new optional tag method