Jump to content

[1.18.1] How to make items of other mods compatible with our own mods?


Tigrex

Recommended Posts

Hi, I'm a modding newbie here.

Yesterday I had a problem, when I wanted to apply some stats to Tinker's Construct's item (like pickaxe, hammer, etc.), I don't know how to do.

import net.minecraft.world.item.AxeItem;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;

/* ... */
  
public Item[] getDefaultSupportedItems() {
        return new Item[]{Items.WOODEN_AXE, Items.STONE_AXE, Items.IRON_AXE, Items.GOLDEN_AXE, Items.DIAMOND_AXE};
}

If I want to put TC's handaxes into the list, what'll be their names?  The category I know is 'tconstruct:hand_axe' but how to import TC's package in order to call them in the code?

Thanks!

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.