GC-spigot / AdvancedEnchantments

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

[Bug] Timber gives 1 too little logs #2972

Closed Folas1337 closed 1 year ago

Folas1337 commented 2 years ago

Describe the bug

When breaking a tree or any construction made of any kind of logs and timer triggers, it drops 1 too little log blocks. If I am breaking a tree consisting of 6 logs, I'll be left with 5 after chopping it down with timber.

How to reproduce

Screenshots / Videos

https://youtu.be/rrIOInVGjm0 (This video was taken on a production server but I was able to reproduce it with the latest version of AE on a test server as well with nothing but AE installed!)

"/ae plinfo" link

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

Server Log

https://mcpaste.io/e7210c9d449606f9

Awpmeister2170 commented 2 years ago

Hello can you please attach the Enchantment here.

Folas1337 commented 2 years ago

Like this?

timber:
  display: "%group-color%Timber"
  description: "Chance to break a tree in one hit"
  applies-to: "Axes"
  group: "ULTIMATE"
  type: "MINING"
  applies:
    - "ALL_AXE"
  levels:
    1:
      chance: 15
      cooldown: 5
      effects:
        - "BREAK_TREE"
      condition:
        - "%player is sneaking% = true : %stop%"
    2:
      chance: 35
      cooldown: 5
      effects:
        - "BREAK_TREE"
      condition:
        - "%player is sneaking% = true : %stop%"
    3:
      chance: 55
      cooldown: 6
      effects:
        - "BREAK_TREE"
      condition:
        - "%player is sneaking% = true : %stop%"
Awpmeister2170 commented 1 year ago

Fixed for next update