HomeJavaModsPickLoot
PickLoot
[​IMG]

PickLoot is a Loot plugin designed for PickLockedItems to create lockpickable loot chests.

Use loot chests to reward players loot for lockpicking into chests. You could also use loot chests in quests, such as a thief quest.

Warning: At the moment, the plugin is experimental and so may contain bugs

[​IMG]
PickLoot is designed around LootTables. LootTables contain items, alongside their chances for spawning and minimum and maximum amounts. LootTables also have a reset time, which is the time it takes for loot to regenerate inside the chest.
Once you have created a loot table, you can assign it to a chest and it will become a loot chest

[​IMG]
1) Use the command "/pickloot createLootTable <name> <resetTime_Days> <resetTime_Hours> <resetTime_Minutes> <resetTime_Seconds>" to create a new loot table.
2) Create item ids (a number used as a reference to an item) using the command "/pickloot getitemid" whilst holding your item. You can use items with custom names/lores/enchantments/effects/etc
3) Add items to the loot table using the command "/pickloot addItem <lootTable> <chance> <min> <max> [itemID]"
4) Assign the loot tables to chests/locked chests by targeting them and using the command "/pickloot assign <lootTable>"

[​IMG]
Spoiler: Commands
Code (Text):
/pickloot assign <lootTable>:
    Assign the chest you are looking at to <lootTable>

/pickloot unassign:
    Unassigns the chest you are looking at from its loot table

/pickloot getitemid:
    Creates a number that can be used as a reference to the item in your hand

/pickloot createLootTable <name> <resetTime_Days> <resetTime_Hours> <resetTime_Minutes> <resetTime_Seconds>:
    Creates a loot table in the lootTables.yml

/pickloot deleteLootTable <lootTable>:
    Deletes <lootTable>

/pickloot addItem <lootTable> <chance> <min> <max> [itemID]:
    Adds the item [itemID] to <lootTable>. If [itemID] is not specified, the item in your hand is used.
    <chance> is the probability to spawn from 0 to 1, 0 being impossible and 1 being definite
    If the item spawns, <min> and <max> define the amount

/pickloot removeItem <lootTable> <itemID>:
    Removes <itemID> from <lootTable>

/pickloot changeResetTime <lootTable> <resetTime_Days> <resetTime_Hours> <resetTime_Minutes> <resetTime_Seconds>:
    Changes the resetTime of <lootTable>
 

[​IMG]
- pickloot.admin (default OP): grants access to all commands

[​IMG]
In plugins/PickLoot/config.yml you will find:
Code (Text):
wipeLockSlot: true
wipeTrapSlot: true
exitCommand: " "
wipeLockSlot will delete the lock slot from locked loot chests so the player cannot create lockpicks.
wipeTrapSlot will delete the trap slot from locked loot chests so the player cannot access the trap. Note that if this is set to true, you will not be able to place traps in the chest.

If you are using vanilla chests, set both of these options (wipeLockSlot and wipeTrapSlot) to true

exitCommand will be run when a player closes the loot chest
%PLAYER% will be replaced with the player's name. %LOCX%, %LOCY% and %LOCZ% are replaced with the loot chest's coordinates
e.g. exitCommand: "tp %PLAYER% %LOCX% %LOCY% %LOCZ%" would teleport the player inside of the loot chest :p

exitCommand can be set per lootTable in lootTables.yml or for all lootTables in config.yml


[​IMG]

[​IMG]
Let me know of any bugs you find using the discuss. Do not post bugs in the review section!

[​IMG]
If you really like the plugin, consider leaving a donation :)
Donate

Top donators:
@FoxyMinecraft - Terra Realms - 10 USD


[​IMG]
By downloading this plugin, you agree to:

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PickLoot is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 1,542 times (via Spigot). Download it and open it directly in the game.

Explore more