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

Summoning slimes with custom maxHealth attributes does not work

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • Minecraft 13w39b, Minecraft 1.7.4, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.6-pre1, Minecraft 1.7.6-pre2, Minecraft 1.7.10, Minecraft 1.8-pre1, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre4, Minecraft 1.8.5, Minecraft 1.8.8, Minecraft 15w44b, Minecraft 15w49b, Minecraft 1.8.9, Minecraft 16w04a, Minecraft 1.9, Minecraft 1.9.2, Minecraft 1.9.4, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w42a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w50a, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.14, 1.14.4, 19w45a, 19w45b
    • 1.15 Pre-Release 2
    • Confirmed
    • Commands

    Description

      Description:
      Summoning slimes (Normal & Lava) with custom maxHealth attributes don't works:

      summon magma_cube ~ ~1 ~ {Health:1000.0f,Attributes:[{Name:"generic.maxHealth",Base:1000.0d}]}

      But this (with Zombie) works:

      summon zombie ~ ~1 ~ {Health:1000.0f,Attributes:[{Name:"generic.maxHealth",Base:1000.0d}]}

      Actual: Summoned slimes use default value of maxHealth instead of the one given.
      Expected: Should use maxHealth from summon command instead of default.


      Code analysis by marcono1234 can be found in this comment.

      Attachments

        Issue Links

          Activity

            People

              cojomax99 [Mojang] Cory Scheviak
              ypetremann Yoann Petremann
              Votes:
              37 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: