Expand description
This client’s player doing what a player does — its own keys held, its clicks — for tours, cut scenes, bots: the host’s actions (nothing on a dedicated server, nor without a player).
Structs§
- Attack
- Attacks entity
entity(its uuid), or (None) what the crosshair is on; whether something was hit. - Chat
- Sends
textto the chat — a command when it starts with/. - Click
- Clicks
slotof the open container (buttonas the game’s). - Drive
- Holds the movement keys each tick till
release:forward-1 (back) to 1,strafe-1 (right) to 1 (left);use_itemraises a shield, draws a bow, eats. - Look
- Turns the player to
yaw,pitch(degrees). - Mine
- Keeps breaking the block at
posfromface(call each tick); whether it’s still there. - Place
- Places the held block against the block at
pos, onface; whether the game took it. - Release
- Gives the movement keys back to the player.
- Select
Slot - Selects hotbar slot
slot(0–8). - Stop
Mining - Stops breaking a block.
- UseItem
- Uses the held item, the main hand’s or the off hand’s.
Functions§
- attack
- Attacks entity
entity(its uuid), or (None) what the crosshair is on; whether something was hit. - chat
- Sends
textto the chat — a command when it starts with/. - click
- Clicks
slotof the open container (buttonas the game’s). - drive
- Holds the movement keys each tick till
release:forward-1 (back) to 1,strafe-1 (right) to 1 (left);use_itemraises a shield, draws a bow, eats. - look
- Turns the player to
yaw,pitch(degrees). - mine
- Keeps breaking the block at
posfromface(call each tick); whether it’s still there. - place
- Places the held block against the block at
pos, onface; whether the game took it. - release
- Gives the movement keys back to the player.
- select_
slot - Selects hotbar slot
slot(0–8). - stop_
mining - Stops breaking a block.
- use_
item - Uses the held item, the main hand’s or the off hand’s.