PortableCrates
PortableCrates
A PocketMine-MP Crates Plugin that lets players open their crates in place without having them teleport to a warp
Commands:
Command Description Usage Alias
/portablecrate Main Command /portablecrate /pcrate
SubCommand Description
help View all subcommands
list View all existing crates
info
create
delete
add
remove
give
toggle Toggles GiveOnWorld function
reload Reloads config files
How to Set up a Crate
Create a crate
First we'll need an Item that is going to be our crate, in my case im going to give myself a chest with custom name and lore using the following command:
/give GrosserZak chest 1 {display:{Name:"§r§6§6lRare §fCrate",Lore:["§r", "§r§fContains §6Rare §fItems"]}}
Rare Crate
Then we hold our future crate item and use the command /pcrate create
In my case im going to use /pcrate crate rare.
Now we can get rid of this item and start adding our rewards to our crate.
Adding Rewards
To add rewards to our crate we're going to use the /pcrate add command.
For example:
Lets add 8 EnderPearls with 75% drop rate chance. We'll need to hold 8 EnderPearls and type the following command:
/pcrate add
And there we go!
We've added 8 EnderPearls with 75% drop rate chance
x8 EnderPearls added with 75% drop rate chance to Rare Crate
We can check its index with the command /pcrate info
Rare Crate infos
Now I'm going to add x1 Uncommon Crate with 20% drop rate chance.
So as before I'm going to hold the uncommon crate and use the command /pcrate add rare 20 x1 Uncommon Crate added with 20% drop rate chance to Rare Crate
Once we've finished setting up our crate we can give it to ourselves with the command:
/pcrate give
Now we can open our crates
Removing Rewards
To remove rewards from a crate we'll need to see the reward index that we want to remove from the crate.
We'll need to use the command /pcrate info
(Note: The indexes of the rewards are their listing numbers)
Once we've found the reward index we want to remove we'll need to use the command /pcrate remove
Delete a crate
Simply just use the command /pcrate delete
GiveOnWorld Function
This function ables to give crates on the world where the server administrator runs the /pcrate give command.
Note: This function is not available from console!
For example:
The function is enabled:
[Admin] GrossserZak is in world "FactionLands" with 47 players
[User] GrossTest is in world "Hub"
If GrosserZak runs /pcrate give
Otherwise if the function was disabled all players would receive the crate
Drop Protection
This function allows to lock the dropped rewards in case the player had his inventory full
The dropped rewards will be locked for 1 minute.
What does it mean?
The player who dropped those rewards will be the only one who can pick them up.
NOTE: After 1 minute anybody can pickup the rewards, so be fast!
TODO
- Add multi language support
Note: Any suggestion is appreciated
Contacts
Telegram: @zGross
Discord: Zak_#0998
For issues, open an issue on the GitHub page