Minescript

Python scripting for Minecraft

File Details

minescript-mc1.19.2-fabric-mod-2.1.jar

  • R
  • Sep 25, 2022
  • 98.22 KB
  • 179
  • 1.19.2
  • Fabric

File Name

minescript-mc1.19.2-fabric-mod-2.1.jar

Supported Versions

  • 1.19.2

Curse Maven Snippet

Fabric

modImplementation "curse.maven:minescript-657474:4007286"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Updates in Minescript v2.1

Major updates

  • Add script functions player_name(), players(), entities() (f99fe52)
  • Add script functions to trigger player actions (9ab645a)
    • player_press_forward(pressed: bool)
    • player_press_backward(pressed: bool)
    • player_press_left(pressed: bool)
    • player_press_right(pressed: bool)
    • player_press_jump(pressed: bool)
    • player_press_sprint(pressed: bool)
    • player_press_sneak(pressed: bool)
    • player_press_pick_item(pressed: bool)
    • player_press_use(pressed: bool)
    • player_press_attack(pressed: bool)
    • player_press_swap_hands(pressed: bool)
    • player_press_drop(pressed: bool)
  • Add script function player_set_orientation(yaw: float, pitch: float) (3053cbc)
  • Add script function register_chat_message_interceptor(interceptor) for intercepting messages sent to the chat screen (4799385)
  • Add script function screenshot(filename=None) for taking screenshots with custom filenames from scripts (26d5ab3)
  • Add script function flush() to allow synchronization between Python execution and Minecraft/Java execution (a1d068f)
  • Overhaul copy/paste commands with smarter, user-friendly limits that are aware of loaded/unloaded chunks; add script function getblocklist() which is much more efficient than getblock() when fetching several blocks (13e487a)
  • Script version checking now terminates the script when version checks fail, with an option to re-run with checking relaxed: --relax-version-check; also --version-check-only exits the script after version checks complete; these flags can be passed to any script that imports minescript or minescript_runtime (27f65eb)

Other updates

  • Specify required deps in paste and minescript_test (fdeb560)
  • Add integration test: minescript_test.py (e2ddd91)
  • Catch Java exceptions in Minescript code to avoid getting kicked to the title screen (8f05a4b)
  • Fix bug when user enters backslash without command (c3fd241)
  • Deprecate minescript.py's exec in favor of execute to avoid confusion/conflict with Python exec built-in (cc3aae7)
  • Fix quoting of strings in errors and JSON text (85d4cf4, 2d2141a)
  • Use Gson.toJson() for more correct and consistent quoting of strings (a2abb1d)