-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Trampling farmland calls BlockFadeEvent #11566
Copy link
Copy link
Labels
scope: apistatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.version: 1.21.1Game version 1.21.1Game version 1.21.1version: 1.21.4Game version 1.21.4Game version 1.21.4
Metadata
Metadata
Assignees
Labels
scope: apistatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.version: 1.21.1Game version 1.21.1Game version 1.21.1version: 1.21.4Game version 1.21.4Game version 1.21.4
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Done
Expected behavior
Trampling should not call the BlockFadeEvent
Observed/Actual behavior
It does call the BlockFadeEvent
Steps/models to reproduce
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
PlayerInteractEventto track when a player tramples ittemporarily store that information for that specific block and let the
BlockFadeEventpass if the conditions are met