Breakblock mechanic causing skills to run multiple times
Summary
The breakblock mechanic is not working correctly when using MythicEnchants and the latest build of MythicMobs (build 3757). Skills, that are using the breakblock mechanic, are triggered multiple times at once, even when adding cooldowns. It seems like, that the problem is depending on the version of MythicMobs used together with MythicEnchants, since it is working fine on MM v4.11.2 but not with v4.12. or above.
I am using following versions:
Paper 1.17.1
MM v5.0.0 (build aafc0278)
ME (build 206)
How to reproduce:
The problem can be reproduced with following example:
EXPLOSIVE_MINING:
Display: 'Explosive Mining'
MinLevel: 1
MaxLevel: 3
ItemType: TOOL
Options:
Cursed: FALSE
Treasure: FALSE
ShowInLore: FALSE
LevelAsPower: FALSE
EnchantableItems:
- NETHERITE_PICKAXE
Skills:
- skill{s=BUG_EP_Explosive-Mining_Get-Block;sync=true} @targetlocation ~onBlockBreak
BUG_EP_Explosive-Mining_Get-Block:
Skills:
- message{m="Test"} @self
- breakblock
Breaking a block with that enchantment, will have the chat spammed with the message mechanic. After removing the breakblock mechanic from the skill, it will only send one message into the chat.
BUG_EP_Explosive-Mining_Get-Block:
Skills:
- message{m="Test"} @self