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

Started by leydenjar on

Topic category: Troubleshooting, bugs, and solutions

Active 1 year ago
Joined Oct 2023
Points:
209

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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)