Mojira Archive
MC-177264

Entities die when you modify their health using /execute store

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

 

Cannot Reproduce

nottellingyou

2020-04-03, 01:47 PM

2023-09-02, 09:55 PM

2023-09-02, 09:55 PM

1

3

Confirmed

Commands, Entities

20w14a, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2

-