Skip to content

Trampling farmland calls BlockFadeEvent #11566

@NonSwag

Description

@NonSwag

Expected behavior

Trampling should not call the BlockFadeEvent

Observed/Actual behavior

It does call the BlockFadeEvent

Steps/models to reproduce

  1. listen for and cancel the block fade event
  2. trample a farmland block by jumping on it
  3. doesnt work

Plugin and Datapack List

irrelevant

Paper version

[15:42:27 INFO]: Checking version, please wait...
[15:42:27 INFO]: This server is running Paper version 1.21.1-130-ver/1.21.1@4d2672e (2024-10-30T18:33:50Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are 1 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: 1.21.1-128-d348cb8 (MC: 1.21.1)

Other

The problem with this is that if you want to prevent natural block fading for farmland but allow trampling, you would have to implement a hacky solution which involves listening for the PlayerInteractEvent to track when a player tramples it
temporarily store that information for that specific block and let the BlockFadeEvent pass if the conditions are met

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: apistatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.21.1Game version 1.21.1version: 1.21.4Game version 1.21.4

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions