Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicEnchants MythicEnchants
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicEnchantsMythicEnchants
  • Issues
  • #8

Closed
Open
Created Aug 20, 2021 by Buguser@Buguser

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
Edited Aug 21, 2021 by Buguser
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking