Skip to main content

Chest Form API for Endstone

Project description

ChestForm

Chest Form API for Endstone

PyPI - Version Python
PyPI - Downloads

Install

pip install chest_form_api_endstone

Quick Start 🚀

Example

from endstone import Player
from chest_form_api_endstone import ChestForm

class MyPlugin(Plugin):
    # ... (other methods)

    def on_command(self, sender: CommandSender, command: Command, _):
        match command.name:
            case "chest":
                if isinstance(sender, Player):
                    form = ChestForm(self, "Test Form")
                    form.fill_slots(
                        "minecraft:bedrock",
                        display_name="Test Item",
                        lore=["1111", "22222"],
                        enchants={"lure": 12234, "flame": 11345},
                    )

                    def call_back(player: Player, index: int):
                        player.send_message("114514")
                        form.send_to(player)

                    form.set_slot(3, "minecraft:diamond_block", call_back)
                    form.send_to(player)
                            else:
                                sender.send_error_message(
                                    "This command can only be executed by player."
                                )
                return False
        return True

Used Libraries 📖

Library License Link
RapidNBT MPL-2.0 https://github.com/GlacieTeam/RapidNBT
bedrock-protocol-packets MPL-2.0 https://github.com/GlacieTeam/bedrock-protocol-packets

Copyright © 2025 GlacieTeam. All rights reserved.

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

endstone_chestform_api-2.0.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

endstone_chestform_api-2.0.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file endstone_chestform_api-2.0.0.tar.gz.

File metadata

  • Download URL: endstone_chestform_api-2.0.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for endstone_chestform_api-2.0.0.tar.gz
Algorithm Hash digest
SHA256 5957226e0833911ea5462de188cff78138162a021032b61f1204fafc6577ea97
MD5 a6946dad6e1a81796605908add23b20d
BLAKE2b-256 74fd1a884d787d9db5845bc8a116c675c0cf65d333ed58189045c981d592cbd1

See more details on using hashes here.

File details

Details for the file endstone_chestform_api-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for endstone_chestform_api-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a4b5604aecb3601ba32648ea7eac19f924de52dc3ff83b0480d355aec149522
MD5 70a6d05e3d0f19a33268e81a6a6753a3
BLAKE2b-256 4c0c4e566727a523af8d5dc2c605d023ad1da4c5b20534eb0139a6ed201630c9

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