Jump to content

Adding a tool without a recipe


Recommended Posts

The tutorial I have been following uses the recipe in the code, could you give a replacement I could use? It would be much appreciated.

public static final Tier DAMAGED_WAR_AXE = TierSortingRegistry.registerTier(
            new ForgeTier(1, 175, 5f, 4.0F, 1.5F,
                    ModTags.Blocks.NEEDS_X_TOOL, () -> Ingredient.of(ModItems.X.get())),
            new ResourceLocation(DroidsAncientRelics.MOD_ID, "x"), List.of(Tiers.X), List.of());

X's show what is yet to be added.

I am unsure whether the ModTag is necessary or not as I want the War Axe to be used as if it were an Iron Axe for that purpose.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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