[SPIGOT-5291] No event is raised for protection plugins to detect when Ravagers break crops. Created: 27/Aug/19  Updated: 28/Aug/19  Resolved: 28/Aug/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: totemo Assignee: Unassigned
Resolution: Fixed Votes: 3
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.


Generated at Thu Apr 03 16:14:40 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.