- Close the currently open screen without sending a packet to the server.
- Ie, using this to close a screen will make the server think you still have it opened.
- Close the currently open screen on the server side.
- Ie, using this to close a screen, will make the server think you closed it, but its still open on your client side.
- Save a screen, to restore later with
restore_screen
- Restore a static screen on the client, using a saved screen from
save_screen
- Do a right click on a block on the server side
x, y, z: all integersdirection: up/down or NESW as string (example: "north") (OPTIONAL, DEFAULTS TO "up")hand: "main" for main hand, "off" for off hand (OPTIONAL, DEFAULTS TO "main")
- Mine a block on the server side (not instant!)
x, y, z: all integersdirection: up/down or NESW as string (example: "north") (OPTIONAL, DEFAULTS TO "up")hand: "main" for main hand, "off" for off hand (OPTIONAL, DEFAULTS TO "main")
- Performs a graceful crash (saves game before crashing)
- Kills the JVM instantly
- Doesnt save anything
- Here be dragons! Can corrupt worlds
- Gracefully disconnects you
- Same as if you were to exit using the pause menu
- Works in single player
- Severs the TCP connection to the server
- Only leaves on the server (will be timed out)
- Client never gets kicked
- Hide the chat
- Excludes the input bar
- Show chat
- Excludes the input bar
- Buffer up a lot of function calls
func: a callableargs: all arguments as a tuple (or other iterable)
- Execute all function calls buffered up
Leave: if true, disconnect after flush
- Execute all function calls buffered up
- Runs in pyjinn, usually finishes on the same frame
Leave: if true, disconnect after flushimports: An iterable, of imports ("import minescript"). Needed if the functions in the buffer are not declared in pyjinn already
- Deletes all buffered function calls
- Returns a really good estimate on the servers tick time (the time between two ticks)
- Returns a really good estimate of the servers TPS (ticks per second)
- The estimated time since the last server update
- Normal times are ~1 second, at 20 tps
- Delays a function call
func: a callableargs: all arguments as a tuple (or other iterable)by: the delay in server ticksthreaded: If True, the delay will happen on a new threadserver: If true, delay ticks will be in line with the servers ticks
- Reimplements the functionality of
player_inventory_slot_to_hotbar() inv_slot: 9-35hotbar_slot: 0-8
- Executes a command, and leaves in the same tick
command: the executed command
- Removes forced server rescource packs
- Steal all items from the currently open container
- Can be filtered for namespaced:id-s (None for no filter)
- Dump all items from your inventory, to the currently open container
- Can be filtered for namespaced:id-s (None for no filter)
- Unlock the mouse, allowing it to be moved freely
- If blocking is True, this will attempt to block inputs
- Lock the mouse, allowing the camera to be rotated (Other guis may still unlock the mouse)
- Returns the version index of minescript
- Set a global variable
- Global variables can be accessed by any process (even pyjinn), and persist until a restart of the game
- Get a global variable
- Global variables can be accessed by any process (even pyjinn), and persist until a restart of the game
- Automatically exits the current server, and joins another
- Note: a positive delay will result in the game freezing for that long. Do not worry, it will not crash
- Returns a list of players and their latency from the tablist
[TablistDisplayName, Latency]
- Executes some pyjinn code
- Non blocking and very fast, but you cannot have returns
- Code cannot contain >'< (single quote)
- Freezes the game for a set amount of time
- Same as R-clicikng the window border
- Note: Will pause any and all pyjinn processes for the duration of the freeze
- Block an outgoing packet by name
- Stop blocking an outgoing packet by name
- Returns the fps of the game
- Display a toast!
import mc_tools as mtNote: You can run a function, without having to make a burner script, by appending the function name, and argument when starting the script
Example:
\mc_tools packet_use(0,0,0)\ndump()
# Executes:
packet_use(0,0,0)
dump()
# mc_tools is auto imported (*)
To use quotes (" and ') use /$ and \$ (respectively)
last updated on 08/06/2026