Skip to main content

Python helper module for the local Minescript Fabric bridge

Project description

MinePyScript

Installable Python package for the Minescript client bridge.

Install

py -m pip install .

Build

py -m build

Notes

  • This package talks to a local Minescript Fabric bridge over HTTP.
  • It requires the Minecraft mod to be installed and running.
  • Set MINESCRIPT_PORT if the bridge is not using the default port 47641.

Example

import minescript

print(minescript.methods())
print(minescript.getplayerpos())
minescript.sendchat("Hello from Python")

Timed Use Helpers

Use the timed helpers when you want to hold left or right item use for a duration:

import minescript

minescript.useitemfor(2.0)
minescript.useitemrightfor(1.5)
minescript.useitemleftfor(0.75)

useitemfor() and useitemrightfor() hold the use-item input. useitemleftfor() holds the attack input for mining or attacking.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minescript-1.0.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minescript-1.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file minescript-1.0.2.tar.gz.

File metadata

  • Download URL: minescript-1.0.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for minescript-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bc8afd75fdca253ae15696c2adb95f3b178faa584ccd1b43c468bd5411399b9b
MD5 e76489285ebf26d3ba9b666b7e83e559
BLAKE2b-256 b38d418a97d25d446b10c3e1aa72f9841a92149c5bf6797d4ce8dd0653caf2e5

See more details on using hashes here.

File details

Details for the file minescript-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: minescript-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for minescript-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce05eb7f546f51dcb521a0abe0bb2a283180a2b09ff1f56bb6e7ed42ff1a5b0c
MD5 acf78d767d9447cb700ead0c3ec37e23
BLAKE2b-256 4e9788055ab6f18aed4cf3adf13c643f4dadc8e848a569ece246eda886f0709d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page