-
Bug
-
Resolution: Awaiting Response
-
None
-
24w21b
-
Windows 10, Java edition
-
Unconfirmed
-
(Unassigned)
I'm currently working on creating my own custom enchants. In the previous snapshot I had an enchant become active when the player was below a certain health threshold, but in this snapshot it is no longer working. I found no mentions of any changes in the changelog, so I assume it is a bug.
Below I will show my current code. In the previous snapshot what would happen is that when the player got under a certain threshold, he would gain more armor. In the current snapshot it is no longer working.
I also have another example of an item that would deal more damage when the the victim would have less then 50% health remaining, in this case I have the same issue of the 'scores' requirement not working as the items always deals the bonus damage.
I also attached the complete datapack with it, the main issues are under the 'Execute' and 'Endure' enchantments.