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.6.tar.gz (6.4 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.6-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minescript-1.0.6.tar.gz
  • Upload date:
  • Size: 6.4 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.6.tar.gz
Algorithm Hash digest
SHA256 f270d1aad1202e4b7c54b507e05b7ce9fbdc9c7b7f58afc1e1d4ff82162e3d1f
MD5 066eb212d2bce7aad13f85f69276ae09
BLAKE2b-256 796f60baf5d8a0452422c1447e54274f59364743cd121e8c85e4ce3677832a22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minescript-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2724c94f6f86ef1444ab8ef1e891c57e199f23ba87ae48dbbbe317379bfd8bff
MD5 0d6cfd2b8c849cc73469517504daf0c3
BLAKE2b-256 eaf1725af17d4859fea8b407a37ac823e6e8662041150d746b58593b4ce83573

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