From 4039143974ac5908fbe151a110b577edd88c0ede Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 7 Mar 2023 22:34:30 +0700 Subject: [PATCH] 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" --- src/main/kotlin/ru/dbotthepony/mc/otm/registry/MItems.kt | 4 ++-- src/main/kotlin/ru/dbotthepony/mc/otm/registry/Tags.kt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MItems.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MItems.kt index 60ea8a299..0b6858f21 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MItems.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MItems.kt @@ -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() diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/Tags.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/Tags.kt index 42fc27a72..433e40e59 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/Tags.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/Tags.kt @@ -82,6 +82,8 @@ object MBlockTags { val CRAFTING_TABLES: TagKey = BlockTags.create(ResourceLocation("forge", "crafting_tables")) + val REQUIRES_TRITANIUM_TOOL: TagKey = BlockTags.create(ResourceLocation("minecraft", "requires_tritanium_tool")) + val HARDENED_GLASS_PANES: TagKey = BlockTags.create(ResourceLocation("forge", "hardened_glass_panes")) val HARDENED_GLASS_PANES_BLACK: TagKey = BlockTags.create(ResourceLocation("forge", "hardened_glass_panes/black")) val HARDENED_GLASS_PANES_BLUE: TagKey = BlockTags.create(ResourceLocation("forge", "hardened_glass_panes/blue"))