Chest Form API for Endstone
Project description
ChestForm
Chest Form API for Endstone
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chest_form_api_endstone-2.0.0.tar.gz.
File metadata
- Download URL: chest_form_api_endstone-2.0.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6382abb415cfba3f49d7588a8aa82c02ad68d536ee7da7c04a93c92f0b6cce4e
|
|
| MD5 |
5e7371e849d36ea241d21704558ae9d7
|
|
| BLAKE2b-256 |
a0dcf6c72a169c568f99493782571e56c1faed404669ba723f406131a02ed87f
|
File details
Details for the file chest_form_api_endstone-2.0.0-py3-none-any.whl.
File metadata
- Download URL: chest_form_api_endstone-2.0.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae56e61eb39aa42ba7d42a43972af09647bd57634691bbcd6f35897d9e022ba5
|
|
| MD5 |
38fd5d660410405645cd3c1212315367
|
|
| BLAKE2b-256 |
7303e294f72e2f5b6f2ea5141b90dde99d4902ff3aae5f512fb3554b63e005ff
|