Skip to main content

A Minecraft pack generator

Project description

An API for Minecraft: Bedrock Edition and Minecraft: Java Edition written in Python

Installation

To install PyPacks it is recommended to create a virtual environment first

python -m venv .venv

Once the virtual environment is created then activate it

.venv\\Scripts\\activate.bat

Finally, you can install PyPacks

pip install pypacks

Usage

Here is an example of usage for PyPacks

import pypacks

# Create the PyPack
example = pypacks.PyPack("example", "Example Pack")

# Define a function in the PyPack that says "Hello World!"
hello = pypacks.Function("hello")
hello.add_command("say", "Hello")
hello.add_command("say", "World!")
hello.attach(example)

# Define another function in the PyPack
yello = pypacks.Function("yello")
yello.attach(example)

# Build the PyPack for Bedrock and Java
example.build(pypacks.PyPackType.JAVA, "Example")
example.build(pypacks.PyPackType.BEDROCK, "Example")

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

pypacks-1.1.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

pypacks-1.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file pypacks-1.1.0.tar.gz.

File metadata

  • Download URL: pypacks-1.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pypacks-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8bd03a70542f31e7eb451b867b7dedb15b1e2606f8eb42c4f414070380017241
MD5 248cc17bacde6e458c9fe5d897eeffda
BLAKE2b-256 0b760e91929b06227987fcf884252f3c0f2bc0f8922a6e3d49a70250a0e9572c

See more details on using hashes here.

File details

Details for the file pypacks-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pypacks-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pypacks-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9570eae5f3570ba5b773472386b121db48ccac355433a1eeb00aa909f033e63d
MD5 8949eea91ace8b31c97c8ee1ffa6d81e
BLAKE2b-256 9603ae487489be110bccb92a76369f4f4523195851dca886056de1691e7dd620

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