Structs§
- 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 or entity that the player is currently looking at.
- Interact
Plugin - A plugin that allows clients to interact with blocks in the world.
- Start
UseItem Event - An event that makes one of our clients simulate a right-click.
- Start
UseItem Queued - A component that makes our client simulate a right-click on the next
GameTick
. It’s removed after that tick. - 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_
start_ use_ item_ event - handle_
start_ use_ item_ queued - handle_
swing_ arm_ event - handle_
swing_ arm_ trigger - pick
- Get the block or entity that a player would be looking at if their eyes were at the given direction and position.
- pick_
block - Get the block that a player would be looking at if their eyes were at the given direction and position.
- update_
hit_ result_ component