Jump to content

How to change isImmuneToFire from custom item tool? 1.16.5


elllkere

Recommended Posts

I have a class 
 

public class KilnPickaxe extends PickaxeItem {
    public KilnPickaxe(IItemTier tier, int attackDamageIn, float attackSpeedIn, Properties builder) {
        super(tier, attackDamageIn, attackSpeedIn, builder);
    }
}

which is empty yet
And my register of it 

public static final RegistryObject<Item> KILN_PICKAXE = ITEMS.register("kiln_pickaxe",
            () -> new KilnPickaxe(ModItemTier.KILN, 0, -2, new Item.Properties().group(ModGroupTab.MAIN_GROUP)));

So where i can write isImmuneToFire = true ?

Link to comment
Share on other sites

2 hours ago, elllkere said:

So where i can write isImmuneToFire = true ?

What are you trying to make immune to fire? The axe? The player?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

3 minutes ago, Luis_ST said:

MCP mappings are the old one, the newer versions use the offical Mojang mappings (the offical Mappings contains the names of methods, fields and classes which mojnag use)

but my problem isn`t in the names, i cant set immuneFire to true because of private access

Link to comment
Share on other sites

then it's isImmuneToFire, but i don't know why since with this mappings in my project:

mappings channel: 'official', version: '1.16.5'
      public Item.Properties fireResistant() {
         this.isFireResistant = true;
         return this;
      }

 

Edited by Luis_ST
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.



×
×
  • Create New...

Important Information

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