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 Click Helpers

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

import minescript

minescript.useitemfor(2.0)
minescript.useitemrightfor(1.5)
minescript.useitemleftfor(0.75, interval=0.05)

useitemfor() uses the default useitem() action. useitemrightfor() repeats rightclick(). useitemleftfor() repeats leftclick().

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.1.tar.gz (5.9 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.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minescript-1.0.1.tar.gz
  • Upload date:
  • Size: 5.9 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.1.tar.gz
Algorithm Hash digest
SHA256 c8df194cc0c6461fd812f587df99106a7a1f3e14f0c22339b9a21b8d32ab2ca5
MD5 8c15df348edaeba31acc35cfc7550ee1
BLAKE2b-256 bcb3315db4772ab683c43396717f7c48ffeff59464b696d3424ea514b8bc9596

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minescript-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dcbbe9e88ead1da19ed175465899928856546a85ca3b167781021439636f9e9d
MD5 36446b94e46a05fcab4256b6d43db5dd
BLAKE2b-256 c5726d33cdafdc6afdcb82446815c5d869cf24fc767793af346bc8a0158fe7ac

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