By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.
OK, Don't show this again
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 Amounttype
: Item Type
item
: Runs all crate item commands & gives the itemcommand
: Runs all crate item commandschance
: 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:
# 50% 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: 50
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"
# 25% chance for player to get money
- id: 266
meta: 0
amount: 1
chance: 25
name: "$2500"
type: command
commands:
- "givemoney {PLAYER} 2500"
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.
4.4.1
3.0.4
Full Changelog: 3.0.3...3.0.4
3.0.3
Full Changelog: 3.0.2...3.0.3
DaPigGuy/[email protected]
for improved auto-update checks.3.0.2
Full Changelog: 3.0.1...3.0.2
3.0.1
4.0.0
(#107)v3.0.0
Ds\Queue
not found error.command
to commands
because it is more logical. please update crates.yml accordingly.Reply to review by :
You can leave one review per plugin release, and delete or update your review at any time