Minecraft Pirate Token

If a chest starts throwing gold sparks, you've found a Pirate Token. Trade it to another player or cash it in for a minute of Creative.
Naturally generated loot containers get one shot at bonus loot. The default chance of finding a token is 0.05%, or about 1 in 2,000. Blue sparks mean a jackpot. You might get enchanted golden apples or a pile of netherite, diamond, gold, or iron blocks.
Open or break a winning chest and give the reveal about 10 seconds. The prize goes straight to your inventory. If it won't fit, make some room and try the chest again. Smaller bonuses turn up among the regular loot if there's space.
Right-click with a token in Survival to spend it. The boss bar counts down from 60 seconds with the default settings. When time's up, you're back in Survival and get to keep what you picked up. PvP and commands are blocked during the session by default.
Only needs to be installed on your server NOT your game
Drop the Pirate Token and Fabric API JARs for your Minecraft version into mods/ and start the server. You'll need a dedicated server running Fabric Loader 0.20.1 or later. Players can join with vanilla clients.
| Minecraft versions | Java |
|---|---|
| 1.21.1, 1.21.4, 1.21.11 | 21 |
| 26.1, 26.1.1, 26.1.2, 26.2, 26.3 | 25 |
Change the loot, session rules, and effects in config/piratetoken/config.yml. The text players see lives in config/piratetoken/messages.yml. Run /piratetoken reload after editing either file.
For discovery stats and leaderboards, enable MySQL and restart the server. Other compatible mods can use those stats through Text Placeholder API.
Commands and permissions
Start each command with /piratetoken or /ptoken. Square brackets mark optional arguments.
| Command | What it does | Permission suffix |
|---|---|---|
help |
List commands | None |
activate |
Spend a token from your inventory | use |
stats [player] |
Show discovery totals for you or an online player | None |
leaderboard [treasures|tokens|jackpots] |
Show the top 10, ranked by treasures by default | None |
give <player> [amount] |
Give 1 to 36 tokens, default 1 | give |
givechest <player> |
Give a test chest to place and open or break for one loot roll | givechest |
reload |
Reload gameplay settings and messages | reload |
status <player> |
Check a player's remaining Creative time | status |
end <player> |
End an online player's session | restore |
restore <player|uuid> |
Restore an online player to Survival or queue recovery for an offline UUID | restore |
loot [category] |
Show loot odds | loot |
testloot [category] |
Simulate a loot roll | loot |
Use the piratetoken: prefix on 26.2 and 26.3 (for example, piratetoken:give) and piratetoken. on earlier builds (for example, piratetoken.give).
useandhear.activationare allowed for everyone by default. The first covers both right-click and command activation. The second controls who hears the activation sound.- Staff commands default to operator level 2. Grant the matching permission or grant
piratetoken:admin(piratetoken.adminon earlier builds) for all staff commands.