Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mahidhoni123

Members
  • Joined

  • Last visited

Everything posted by mahidhoni123

  1. ok - package com.anirudh.forgemod.tools; import net.minecraft.resources.ResourceLocation; mport net.minecraft.tags.BlockTags; import net.minecraft.world.item.Items; import net.minecraft.world.item.Tier; import net.minecraft.world.item.Tiers; import net.minecraft.world.item.crafting.Ingredient; import net.minecraft.world.level.block.Block; import net.minecraftforge.common.ForgeTier; import net.minecraftforge.common.TierSortingRegistry; import java.util.List; public enum ModItemTier implements { public static final Tag. net.minecraft.tags.Tag.Named<Block> MY_TIER_TAG = BlockTags.createOptional(new ResourceLocation("tag_based_tool_types:needs_my_tier_tool")); public static final Tier MY_TIER = TierSortingRegistry.registerTier( new ForgeTier(5, 5000, 10, 100, 0, MY_TIER_TAG, () -> Ingredient.of(Items.BEDROCK)), new ResourceLocation("tag_based_tool_types:my_tier"), List.of(Tiers.DIAMOND), List.of()); }
  2. package com.anirudh.forgemod.tools; import net.minecraft.resources.ResourceLocation; import net.minecraft.tags.BlockTags; import net.minecraft.world.item.Items; import net.minecraft.world.item.Tier; import net.minecraft.world.item.Tiers; import net.minecraft.world.item.crafting.Ingredient; import net.minecraft.world.level.block.Block; import net.minecraftforge.common.ForgeTier; import net.minecraftforge.common.TierSortingRegistry; import java.util.List; public enum ModItemTier implements { public static final Tag. net.minecraft.tags.Tag.Named<Block> MY_TIER_TAG = BlockTags.createOptional(new ResourceLocation("tag_based_tool_types:needs_my_tier_tool")); public static final Tier MY_TIER = TierSortingRegistry.registerTier( new ForgeTier(5, 5000, 10, 100, 0, MY_TIER_TAG, () -> Ingredient.of(Items.BEDROCK)), new ResourceLocation("tag_based_tool_types:my_tier"), List.of(Tiers.DIAMOND), List.of()); }
  3. I'm still a bit confused, can you please send me the code of the tools
  4. I tried it while making custom tools
  5. Hi, I tried - implements IItemTier() but I couldn't import IItemTier - https://docs.google.com/presentation/d/1mWjCn7v4PvfpyouPs--9fzpn73O02evo7iX1I15j7wY/edit#slide=id.p (link to the image)

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.