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

Entities die when you modify their health using /execute store

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 20w14a, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2
    • None
    • Confirmed
    • Commands, Entities

      I think you need to know the circumstances in order to understand this report; I am currently working on a project, in which i use commands to set the Health of an entity to the "generic.max_health" attribute of the same entity using /execute store.

      This was working fine, until 20w14a, where it just kills the entity, instead of setting its health to the appropriate amount.

      The command i used is as follows:

      /execute as <target> store result entity @s Health double 1 run data get entity @s Attributes[\{Name:"generic.max_health"}].Base

       

            Unassigned Unassigned
            Rifcleous nottellingyou
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: