Mojira Archive
MC-272397

Data driven enchants "scores" requirement not working.

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.

Awaiting Response

IPawnZzNubZ

2024-05-23, 09:51 PM

2024-06-21, 12:40 PM

2024-06-21, 12:40 PM

1

0

Unconfirmed

(Unassigned)

datapack, enchantments, predicate, scoreboards

24w21b

-