Jump to content

Parcival

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Parcival

  1. This is the code for the custom item entity: This is the code for handling the spawning of the custom entity: The log only shows that the "subscriber" method spawned a new entity using the custom constructor. If I throw the item into fire or lava, none of the "logger infos" from any of the methods exept the constructor and the subscriber class appear. Also, the item disappears like it normally should. My conclusion is that my custom constructor is used, but any of the overridden methods are not used, but replaced with vanilla ones. My goal is to make the ItemEntity invulnerable to fire or lava.
  2. So I cannot change the burnability of a Single ItemStack? My usecase would be an "case"-item, which can be applied to any item to make it fire resistent (like netherite)
  3. I meant changing the property not in the Registry, but for an alreading existing Item. So something like that: ItemStack playerItem = player.getMainHand; playerItem.isFireResistant = true;
  4. Can you change the item property Item.isFireResistant() on an existing Item? If yes, how?
×
×
  • Create New...

Important Information

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