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

Slimes and magma cubes split in method marking entity for removal (setDead)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.12.2, Minecraft 1.13-pre5, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Slimes and magma cubes split when the method net.minecraft.entity.monster.EntitySlime.setDead() (MCP name) is called. This is problematic since this method is used when an entity is marked for removal and therefore not only when the entity dies.

      This can cause slimes to split multiple times.

      If the splitted slimes / magma cubes are still supposed to spawn when the XP is spawned, the method net.minecraft.entity.EntityLivingBase.onDeathUpdate() could be overridden or a proper method could be added which is called by onDeathUpdate() when the 20 ticks are reached.

      Fix implications

      Fixing this might break the behavior described in MC-51732. It is however questionable how useful this behavior was, since it was likely rather annoying when trying to get rid of slimes.

      How to reproduce

      Relies on MC-116647, however there are likely other ways to reproduce this as well.

      1. /setblock ~ ~3 ~2 end_portal
        
      2. /summon slime ~ ~ ~2 {Health:0f,DeathTime:-40s,Size:5,PortalCooldown:0}
        

        Splitted slimes spawn

      3. Go to the end
        After about 3 seconds splitted slimes spawn, as expected

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: