Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-112914

Fire value is not correctly set in some situations resulting in entities standing in fire but not being on fire

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • Minecraft 1.11.2, 20w07a
    • Confirmed
    • (Unassigned)

      The bug

      The Fire tag works in a way that negative values mean an entity is not on fire and positive numbers mean an entity is on fire. 0 is kind of special because when the fire value increase from -1 to 0 the entity is "really" set
      on fire for 8 seconds.
      For players the default value is -20 acting as 19 ticks of buffer before actually catching fire, for all other entities it is -1 meaning there is no buffer.

      The problem is that in some situations the fire value is reset by setting it to 0 instead of the correct default value. This results in situations where a mob or player is standing in fire but not actually catching fire.

      How to reproduce

      1. Build a setup as shown in Setup.png
      2. Place a cow inside the free space and make sure it is in the water
      3. Set the log block, on the side the cow is at, on fire
      4. Remove the water before the cow is dead
        → You will see that the cow is not catching fire, but still takes damage and does not drop cooked beef

      Affected methods

      These are the methods which reset the fire value not correctly.
      Last updated for 20w07a, Mojang names

      • net.minecraft.world.entity.Entity.clearFire()
      • net.minecraft.world.entity.Entity.setSecondsOnFire(int): Fire protection could result in fire value of 0 (?)

        1. Setup.png
          230 kB
          Marcono1234

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: