Any Custom Component makes blocks interactable
Using any custom component will make a block interact-able even if the custom component is not using the "onPlayerInteract" component. Something to not that having the component itself does not trigger this behaviour but once the component has a value then the behaviour occurs.
Reproduce:
- Download the add-on attached
- Create a new world in Preview 1.20.80.23 with the Beta APIs experimental toggle enabled
- Using commands, give yourself "mojira:custom_block_2" and "mojira:custom_block"
- Place the blocks next to each by right clicking on any side of the block
Expected Behaviour:
Both blocks should be able to be placed when right clicking on any face of the block
Actual Behaviour:
Per the video, "mojira:custom_block", which has a custom component, prevents this behaviour from happening. Whereas "mojira:custom_block_2" works like any other block that isn't interactable.
2024-03-21, 08:48 PM
2024-09-17, 08:01 PM
2024-06-13, 04:05 PM
6
2
1224107