Plugin Editor for TheoTown (Unofficial)
Project description
JSON Plugin Generation Project
This project allows generating custom JSON files for plugins using Python. It is ideal for creating plugin configurations with detailed metadata and customization options.
Requirements
- Python 3.x
- Standard modules:
uuid,json
Installation
Clone the repository or download the files directly:
git clone https://github.com/SrBolilloStudios/theotown_plugin_editor.git
cd your-repository
Usage
Generate a UUID
The project automatically generates a unique UUID:
import uuid
uuid = uuid.uuid4()
print(uuid)
Create a Manifest
The manifest function allows creating a JSON manifest with the following parameters:
manifest(id_: str, version: float, title: str, platforms, text: str, autor: str, thumbnail: str)
Example:
json_data = manifest("plugin-1", 1.0, "Sample Plugin", "Windows", "Plugin description", "Author", "url/thumbnail.png")
print(json_data)
Create a Plugin JSON
The json_plugin function allows creating a detailed JSON for a plugin with custom parameters:
json_plugin(id: str, type: str, autor: str, width: int, height: int, frame: int, smoke_add: bool, smoke_id: Optional[int] = None, smoke_positions: Optional[int] = None, level: int = 0)
Example with smoke:
plugin_data = json_plugin("plugin-2", "building", "Author", 10, 15, 1, True, 5, [3, 4])
print(plugin_data)
Contribution
Contributions are welcome. You can fork the project and submit a pull request.
License
This project is distributed under the 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 Distributions
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 theotown_plugin-0.0.7-py3-none-any.whl.
File metadata
- Download URL: theotown_plugin-0.0.7-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37d1ed452643f68d9ce02019b7bc7bd1cfa371daad46e5019e7d00fa3ab3436a
|
|
| MD5 |
5e3da6ff3c326e976ede4ad6fd52ef3d
|
|
| BLAKE2b-256 |
a7a47a5d8b58549ae2948a77f59074f9fe9d5b9182ab404258f3d6828f356a78
|