Structs§
- Block
Interact Event - Right click a block. The behavior of this depends on the target block, and it’ll either place the block you’re holding in your hand or use the block you clicked (like toggling a lever).
- Current
Sequence Number - A component that contains the number of changes this client has made to blocks.
- HitResult
Component - A component that contains the block that the player is currently looking at.
- Interact
Plugin - A plugin that allows clients to interact with blocks in the world.
- Swing
ArmEvent - Swing your arm. This is purely a visual effect and won’t interact with anything in the world.
Functions§
- can_
use_ game_ master_ blocks - check_
block_ can_ be_ broken_ by_ item_ in_ adventure_ mode - Check if the item has the
CanDestroy
tag for the block. - check_
is_ interaction_ restricted - Whether we can’t interact with the block, based on your gamemode. If this is false, then we can interact with the block.
- handle_
block_ interact_ event - handle_
swing_ arm_ event - pick
- Get the block that a player would be looking at if their eyes were at the given direction and position.
- update_
hit_ result_ component