Long time, no see! Happy new year to you all, and thanks for sticking by. This update brings a few requested updates.
ATTENTION!
You will need to update your config manually when updating to this version. The way item-rewards are stored has changed. You need to change your config to match this format:
Code (Text):
item-rewards:
diamond: #Can be any text, it doesn't count. It's a reward identifier.
item: DIAMOND #Material name
name: "&6&l&oREWARD #1" #THIS WON'T WORK WITH ITEMS ADDER DUE TO HOW THEY RECOGNISE ITEMS
lore: #THIS WON'T WORK WITH ITEMS ADDER DUE TO HOW THEY RECOGNISE ITEMS
- "&7&oHave fun with this reward!"
amount: 1-10 #Between 1 and 10 diamonds
chance: 40 #Percentage (60%)
emerald: #Can be any text, it doesn't count. It's a reward identifier.
item: EMERALD #Material name
name: "&6&l&oREWARD #1"
lore:
- "&7&oHave fun with this reward!"
amount: 1-10 #Between 1 and 10 diamonds
chance: 100 #Percentage (60%)
Okay, now for the update log:
- Treasure Keys. Now you can require players to have a custom item in their hand to be able to open the treasure. Every treasure has it's own key.
- Command to give key: /hunt key (Player) (World) [Amount], where the amount is optional
- Permission needed: mystictreasures.admin
- Can be used from console
- You can set custom name and lore to the key.
- Doesn't support ItemsAdder yet.
- ItemReward chances. Now you can set a chance to give the one who unlocks the treasure a certain reward. The chance is unique to every player.
- Reformatted the ItemRewards.
- You can now set custom display names to items
- You can now set custom lore to items
- Only works with items that are not ItemsAdder
- The plugin officially supports 1.21.4