Dev game crashes whenever it is required to check an enchantment on armor

Started by leydenjar on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 23:38, 18. Feb 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dev game crashes whenever it is required to check an enchantment on armor

Code is relatively simple, but whenever I deal a critical hit, the game crashes. Any work arounds??

 

Event trigger - Player Deals Critical Hit

If: Has Get Item from armor slot 102 of source entity enchantment Blood Lust

Do: Set Health of Source Entity to (Current HP of source + (Get level of enchantment blood lust of get item from armor slot 102 of source entity) * 0.1)