If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.

If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.
If your tier is equivalent to another tier, then Tier#getTag should return an empty tag reference defined by BlockTags#create and have the equivalent tier be placed in the after list when registering. If the tier is a vanilla tier, you should also specify the next tier above in the before list.

gigaherz — 22.06.2022 13:53
we decided that we wouldn't support equivalent grades , due to API complexity, instead we recommend having one explicitly "just above the other but with an empty tag"
This commit is contained in:
DBotThePony 2023-03-07 22:34:30 +07:00
parent 27c7ef7b50
commit 4039143974
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 4 additions and 2 deletions

View File

@ -140,13 +140,13 @@ object MItems {
Tiers.IRON.speed * 1.1f,
3.5f,
16,
BlockTags.NEEDS_IRON_TOOL
MBlockTags.REQUIRES_TRITANIUM_TOOL
) { Ingredient.of(TRITANIUM_INGOT) }
val TRITANIUM_COMPONENT_NAME = ResourceLocation(OverdriveThatMatters.MOD_ID, "tritanium")
init {
TierSortingRegistry.registerTier(TRITANIUM_COMPONENT, TRITANIUM_COMPONENT_NAME, listOf(Tiers.IRON), listOf(Tiers.DIAMOND))
TierSortingRegistry.registerTier(TRITANIUM_COMPONENT, TRITANIUM_COMPONENT_NAME, listOf(Tiers.IRON), listOf())
}
private val TOOLS_PROPRTIES = Item.Properties()

View File

@ -82,6 +82,8 @@ object MBlockTags {
val CRAFTING_TABLES: TagKey<Block> = BlockTags.create(ResourceLocation("forge", "crafting_tables"))
val REQUIRES_TRITANIUM_TOOL: TagKey<Block> = BlockTags.create(ResourceLocation("minecraft", "requires_tritanium_tool"))
val HARDENED_GLASS_PANES: TagKey<Block> = BlockTags.create(ResourceLocation("forge", "hardened_glass_panes"))
val HARDENED_GLASS_PANES_BLACK: TagKey<Block> = BlockTags.create(ResourceLocation("forge", "hardened_glass_panes/black"))
val HARDENED_GLASS_PANES_BLUE: TagKey<Block> = BlockTags.create(ResourceLocation("forge", "hardened_glass_panes/blue"))