When rabbits eat carrot crops, they don't fire an EntityChangeBlockEvent.

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None

      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).

            Assignee:
            Unassigned
            Reporter:
            Ryan Hamshire
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: