Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5291

No event is raised for protection plugins to detect when Ravagers break crops.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • Tested on build 2454 but applies to prior Spigot 1.14.4 builds too.

      Various Linux x86_64, Java 8 and 12.

    • git-Spigot-a596182-edd8fdf (MC: 1.14.4)
    • WorldGuard
    • Yes

      When Ravagers move near crops, they break the crop block but do not trample the soil back to dirt. According to the WorldGuard dev, BlockCrops.a() needs to raise an event for the code that deals with Ravagers there.

      I have been informed by the WorldGuard dev in this discussion (WorldGuard-4133) that WorldGuard would need either an EntityChangeBlockEvent, or EntityInteractEvent in order to detect the Ravager's actions. The former event seems more appropriate.

      Examination of the BlockCrops source code indicates that no event is raised when the Ravager gets involved.

      My test region has "mob-damage deny", "ravager-grief deny", "block-trampling deny" and "block-break deny" WorldGuard flags.

            Unassigned Unassigned
            totemoresearch@gmail.com totemo
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: