The following mod debugs the player interact event, meaning that it will print out useful information to help you fix any problems you might have in a mod.
-
itemInteracted = The item that the player interacted with
-
itemType = The type of block/item in the player's hand
-
button = The button and type of block the player clicked (left or right, block or air)
-
blockClicked = The block the player clicked on
-
blockType = The type of block the player clicked on (if it was in the air, null will be returned)
-
blockFace = The face of the block the player clicked on (if it was air, nothing will print)
NOTE: There is more information you can retrieve from this event, these are just the most commonly used.
If you want to test it in your mod, simply import "Mr_Sonny-playerInteractDebug" and add the call in main:
Check out the mod here.