GC-spigot / AdvancedEnchantments

Superior Custom Enchantments Creator for Minecraft And Spigot platform
152 stars 63 forks source link

ITEM_BREAK does not activate #4437

Closed Leomelonseeds closed 1 month ago

Leomelonseeds commented 1 month ago

Describe the bug

It seems like the ITEM_BREAK effect doesn't activate when an item breaks.

How to reproduce

Use this enchantment:

vulcan:
  display: '%group-color%Vulcan''s Blessing'
  description: |-
    When a gear item breaks, this enchantment
    will be decreased by one level, and the
    gear will be fully repaired.
  applies-to: Gear
  type: ITEM_BREAK
  group: LEGENDARY
  applies:
  - ALL_SWORD
  - ALL_HOE
  - ALL_AXE
  - ALL_SHOVEL
  - ALL_PICKAXE
  - ALL_ARMOR
  - BOW
  - CROSSBOW
  - TRIDENT
  levels:
    '1':
      effects:
      - ADD_DURABILITY_CURRENT_ITEM:5000
      - REMOVE_ENCHANT:vulcan
    '2':
      effects:
      - ADD_DURABILITY_CURRENT_ITEM:5000
      - REMOVE_ENCHANT:vulcan
      - ADD_ENCHANT:vulcan:1
    '3':
      effects:
      - MESSAGE:HELLO
      - ADD_DURABILITY_CURRENT_ITEM:5000
      - REMOVE_ENCHANT:vulcan
      - ADD_ENCHANT:vulcan:2

On a golden shovel. Break the golden shovel while /ae debug enable is enabled. No effects for ITEM_BREAK seem to be activating.

Screenshots / Videos

No response

"/ae plinfo" link

https://paste.md-5.net/ejajaciral

Server Log

No response

GC-spigot commented 1 month ago

This is a Spigot/Paper bug, we're looking into this.

ThomasWega commented 1 month ago

Not able to replicate on 1.20.4 though. Only on higher versions

ThomasWega commented 1 month ago

Should be now. Download latest paper jar