With this plugin you can allow your players to purchase and spawn in custom geometry entities using the Decorations shop UI! Everything is configurable in the decorations.json
config file including price, spawn limits, entity scale, and more!
Please see the current TODO list for some things that are currently being fixed or added before requesting something be added so there aren't any duplicate or invalid issues being created.
Use /deco
to access the main interface. From there you can enter the shop or view your archived decorations
. By selecting an item in your archive
, you have the option to sell or spawn the decoration. In the shop, you can select what category you'd like to browse. Once you pick a category, choose an item to purchase and proceed to the pre-purchase form. The pre-purchase form is where you can choose how many to buy, but also choose where you'd like the item to be exported to once you purchase it (inventory or decoration archive
). Once bought, you can spawn it by tapping the item on the block of where you want it to be. You have the ability, as the decoration owner, to view the decoration options by hitting it. This screen allows you to sell, archive
, and pick up the decoration for easier transport or movement adjustments.
This plugin allows users like YOU to add your very own custom models and texures simply by dragging your files into the directory found at /plugin_data/Decorations/decorations
and adding an entry into a category in the decorations.json
file! The two files required to create an entity are the geometry JSON file, and the texture PNG file. Once you have acquired both of those and copied them to the correct directory, you can add them into the Decoration configuration file with the instructions below!
Please see the default JSON file here for a more detailed example of how categories and entries should be entered. Here is the JSON file broken down into separate parts.
Category name
"dishes": {
Category format
"format": "§dDishes",
Entity list
"entities": [
Entry ID
"id": "mug",
Geometry file name
"geometry": "mug.geo.json",
Geometry identifier
"identifier": "geometry.mug",
Entity texture
"texture": "mug.png"
Entity size
"scale": 0.4,
Entry format
"format": "§6Coffee mug",
Entity buy price
"price": 20,
Entity spawn limit
"limit": 3,
Entity name tag
"nametag": "§aDrink me!"
The following table is used to determine a key's optionality.
Key | Optionality | Default |
---|---|---|
Category name | required | - |
Category name | required | - |
Entity list | required | - |
Entry ID | required | - |
File name | required | - |
Identifier | required | - |
Texture | requried | - |
Size | optional | 1 |
Format | optional | Entry ID |
Price | optional | Free (0) |
Limit | optional | Unlimited |
Nametag | optional | None |
In the end your JSON entry will look something like this:
{
"dishes": {
"format": "§dDishes",
"entities": [
{
"id": "mug",
"model": {
"geometry": "mug.geo.json",
"identifier": "geometry.mug",
"texture": "mug.png"
},
"scale": 0.4,
"format": "§6Coffee mug",
"price": 20,
"limit": 3,
"nametag": "§aDrink me!"
}
]
}
}
These are things that are planned or in-progress
- Fine tuning
- Add yaw/pitch control using the Deco UI
- Add default rotation to configuration
- Allow for live yaw and pitch control using player attachment
- Enable vector tuning using the Deco UI (XYZ)
- Add a scale range in the configuration to allow players to customize entity size
- Glitches
- Fix issues with owner spawning in models
- Allow commands to be executed when interacting with foreign decorations
- UXP
- Catch erros thrown by removed deocorations (from the decorations.json file)
- Allow deocrations to be mass despawned for moderation (by type, ID, owner, etc.)
- [ ]
- FiberglassCivic (Helped with example custom geometry)
- Xenophilicy