#Itemframe problem
1 messages · Page 1 of 1 (latest)
The code works perfectly, the problem is that it doesn't cancel the event when the player is sneaking (holding shift).
i tried :3 still rotate the item if sneaking
it cancel the event if the player is not sneaking
e.getAction() instanceof Action.blah
im not sure about getRightClicked()
you'll have to check if the player interacted, then check the clikc type
then do ur coce
code
instanceof for an enum?
You can just do
if(event.getAction() == Action.RIGHT_CLICK_AIR)```
or similar