[SPIGOT-1405] When rabbits eat carrot crops, they don't fire an EntityChangeBlockEvent. Created: 07/Jan/16  Updated: 30/Jun/16  Resolved: 30/Jun/16

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

Type: Bug Priority: Minor
Reporter: Ryan Hamshire Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None


 Description   

Players complain that rabbits spawn anywhere there are carrots planted, then eat them. Plugins can't limit or disable this behavior unless a cancellable event is fired when it happens.

  1. Set up an event handler for EntityChangeBlock event which logs the entity type, original block type, and new block type.
  2. Place a single block of water where it will not flow anywhere.
  3. Surround it with soil, then plant carrots on that soil.
  4. Use bonemeal to force the carrots to maturity.
  5. Fence the soil in.
  6. Spawn lots of rabbits in the fenced area.
  7. Replace any carrots destroyed by the rabbit spawning step.
  8. Wait for carrots to start disappearing without any player interaction (due to rabbits eating them).
  9. Check logs.

Expected: Rabbits changing carrots to air appears in logs.

Actual: Nothing about rabbits in logs (possibly sheep, endermen and more situationally, but no rabbits).


Generated at Mon Mar 31 18:13:26 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.