Custom blocks should only be able to be interacted with when a custom component with the “onPlayerInteract“ hook is applied. This means that if the component is applied to specific permutations (making use of the block JSON permutations array) the block should only become interactable when in those permutations.
Steps to reproduce:
Apply the attached add-on to a world
Place the custom crop block on Farmland using the “Custom Seeds“ item in the creative menu
Grow the crop fully by interacting with the block using Bone Meal
Observed results:
The crop can still be interacted with when fully grown, despite the custom component not being active.
Expected results:
The crop should only be able to be interacted with when not fully grow (when the custom component allowing for Bone Meal interaction is active).
Linked issues
Attachments
Comments 2
This issue has been reviewed by our team.
Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.
If a fix is implemented, it will be listed in our official changelogs.
For major outages or urgent assistance, visit the Minecraft Help Center.
Additional Information: The issue appears to be client-side only, as placing a block against the interactable block without sneaking when its an interactable permutation fails, but placing a block against the interactable block without sneaking when its a non-interactable permutation works fine.