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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Tested on build 2454 but applies to prior Spigot 1.14.4 builds too.

      Various Linux x86_64, Java 8 and 12.

    • Version:
      git-Spigot-a596182-edd8fdf (MC: 1.14.4)
    • Plugin:
      WorldGuard
    • Guidelines Read:
      Yes

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: