Skip to main content

Python client library for hackCraft2

Project description

py2hackCraft2

Python client library for hackCraft2

概要

py2hackCraft2は、hackCraft2にPythonから接続して命令を送るためのライブラリです。

hackCraft2はMinecraft Java Editionのサーバープラグインで、このプラグインを導入することで、Minecraft上でプログラミングが可能になります。hackCraft2の詳細については、hackCraft2のダウンロードページをご参照ください。

Minecraftについての詳細は、インターネットで検索していただければと思います。

py2hackCraft2を使用することで、hackCraft2が導入されたMinecraftサーバーに対して、Pythonから直接命令を送ることができます。

ドキュメント

詳細なAPIリファレンスと使用例はドキュメントを参照してください。

インストール方法

pip install py2hackCraft2

使用方法

from py2hackCraft2.modules import Player, Volume, LocationFactory

# プレイヤーの接続
player = Player("your_name")
player.login("localhost", 25570)

# エンティティの取得と操作
entity = player.get_entity("entity_name")
entity.set_event_area(Volume.local(10, 10, 10, -10, -10, -10))

# その他の操作...

ライセンス

MIT License

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

py2hackcraft2-1.1.39.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

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

py2hackcraft2-1.1.39-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file py2hackcraft2-1.1.39.tar.gz.

File metadata

  • Download URL: py2hackcraft2-1.1.39.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for py2hackcraft2-1.1.39.tar.gz
Algorithm Hash digest
SHA256 fede74ec31154883726beb0bdc87bdd4fa3043b4f9b9cc4957803d7e21e87c7d
MD5 1ba28cc5f4cc15cef266bd28af220cd3
BLAKE2b-256 819a0daaf830e40fd6529c192f5cc8c4cd0459a52debc82a01dab6706e112a15

See more details on using hashes here.

File details

Details for the file py2hackcraft2-1.1.39-py3-none-any.whl.

File metadata

  • Download URL: py2hackcraft2-1.1.39-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for py2hackcraft2-1.1.39-py3-none-any.whl
Algorithm Hash digest
SHA256 5b2097d9348672423375058bc872ad665710e58b73e58391bc9bb6fa3db3d5b8
MD5 597c0354f9a59f89dbce6916e9d85620
BLAKE2b-256 e774840bc612143bee8c1115271feccd8ef936b684aa427046b3a29346423203

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