(4.0.0 - 4.21.1) 3.0.3 (4.0.0 - 4.21.1) 3.0.2 (4.0.0 - 4.21.1) 3.0.1 (4.0.0 - 4.21.1) 3.0.0 (3.22.1 - 3.25.6) 2.1.0 (3.2.0 - 3.25.6) 2.0.9 (3.2.0 - 3.25.6) 2.0.8 (3.2.0 - 3.25.6) 2.0.7 (3.2.0 - 3.25.6) 2.0.6 (3.2.0 - 3.25.6) 2.0.5 (3.2.0 - 3.25.6) 2.0.4 (3.2.0 - 3.25.6) 2.0.3 (3.2.0 - 3.25.6) 2.0.2 (3.2.0 - 3.25.6) 2.0.1 (3.2.0 - 3.25.6) 2.0.0 (3.2.0 - 3.25.6) 1.5.1 (3.2.0 - 3.25.6) 1.5.0 (3.2.0 - 3.25.6) 1.4.0 (3.0.0 - 3.25.6) 1.3.0 (3.0.0 - 3.25.6) 1.2.0 (4.0.0 - 4.21.1) 3.0.4
PiggyCrates is a simple and customizable crates plugin, supporting an unlimited amount of crate types. It also supports vanilla and custom enchants, such as PiggyCustomEnchants.
Install the plugin from Poggit.
Start your server.
(Optional) The config.yml
file has a few options that allow you to customize your key items & crate modes (default is roulette).
Open the crates.yml
.
PiggyCrates supports an unlimited number of crates. To define a crate, add a key crates.yourcratename
.
Configure your crate types. Crate types have several different properties:
floating-text
: Floating text that will appear above the crate type. Leave empty for no floating text.commands
: Commands to be run by CONSOLE when crate type is opened. Use {PLAYER}
as a placeholder for player name.drops
: Possible drops of a crate type. Items are defined with the properties:
id
: Item IDmeta
: Item Metaamount
: Item Amountchance
: Item Weightnbt
: Item NBT as stringified JSONname
: Item Namelore
: Item Lore as string with line breaks represented as \n
enchantments
: Item enchantments defined like so:
enchantments:
- name: "Protection"
level: 1
- name: "Thorns"
level: 1
commands
: Commands to be run by CONSOLE if item is dropped by crate.amount
: Amount of drops a single crate type will give.Example:
crates:
# Crate type named "Example"
Example:
floating-text: "Example Crate"
amount: 1
# Will run the command "/say" when opened
commands:
- "say {PLAYER} has opened the example crate!"
drops:
# 75% chance for 1x Diamond Sword named Sharpened Diamond Sword w/ Sharpness 5 enchantment
# Will run the command "/tell" on drop
- id: 276
meta: 0
amount: 1
chance: 75
name: "Sharpened Diamond Sword"
enchantments:
- name: "Sharpness"
level: 5
commands:
- "tell {PLAYER} You got a Sharpened Diamond Sword! ;o"
# Identical to the above drop but with a 25% chance and an Iron Sword
- id: 267
meta: 0
amount: 1
chance: 25
name: "Sharpened Iron Sword"
enchantments:
- name: "Sharpness"
level: 5
commands:
- "tell {PLAYER} You got a Sharpened Iron Sword! ;o"
Restart your server.
Connect to your server.
Place a chest block where you intend on having a crate.
Run the command /crate <crate name>
Tap the target chest.
Repeat with other crate types.
You're done!
Command | Description | Permissions | Aliases |
---|---|---|---|
/crate <crate> |
Changes a chest to a crate by tapping | piggycrates.command.crate |
N/A |
/key |
Gives a player a specific crate key | piggycrates.command.key |
N/A |
/keyall |
Gives all online players a specific crate key | piggycrates.command.keyall |
N/A |
Permissions | Description | Default |
---|---|---|
piggycrates |
Allows usage of all PiggyCrates features | false |
piggycrates.command |
Allow usage of all PiggyCrates commands | op |
piggycrates.command.crate |
Allow usage of all /crate commands | op |
piggycrates.command.key |
Allow usage of the /key command | op |
piggycrates.command.keyall |
Allow usage of the /keyall command | op |
Copyright 2018-2020 DaPigGuy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.