PyvesB / advanced-achievements

:fireworks: Popular plugin that adds unique and challenging achievements to Minecraft servers.
https://www.spigotmc.org/resources/83466
GNU General Public License v3.0
200 stars 214 forks source link

Custom items? #1042

Closed Mystiia closed 3 years ago

Mystiia commented 3 years ago

Hi, I bought advanced achievements for my server today and upon configuration of the achievements, I couldn't figure out how to add custom items to the reward for an achievement being completed. The code generally requires a command block to execute, so I'm just wondering if it'd actually be possible or not? There are two types of items I was wanting to add, one is a custom item using NBT tags and Optifine to give it a custom texture (a currency) and the other is just a regular Minecraft item, but with a custom name and lore. The code looks something like this when used in a command block for the regular item:

/minecraft:give @p paper{display:{Name:'[{"text":"Relic Voucher","italic":false,"color":"aqua","bold":true}]',Lore:['[{"text":"","italic":false}]','[{"text":"This is a voucher for a custom Relic.","italic":false,"color":"white"}]','[{"text":"The Relic ","italic":false,"color":"white"},{"text":"will","bold":true},{"text":" count towards Kingdom","bold":false}]','[{"text":"Relic counts.To claim, give this to","italic":false,"color":"white"}]','[{"text":"an Admin/Owner and submit a modmail on","italic":false,"color":"white"}]','[{"text":"Discord for further instructions.","italic":false,"color":"white"},{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"{aachr101}","italic":false,"color":"gold"}]']},Enchantments:[{}]} 1

I'm a relatively new dev, so excuse my ignorance here! Please let me know if this is possible.

Thank you!

PyvesB commented 3 years ago

Hello @Mystiia ! πŸ‘‹πŸ»

Please use the suggested issue templates in the future. πŸ˜‰

Does this Wiki section help solve your issue?

PyvesB commented 3 years ago

Did the documentation help @Mystiia ? In particular did you try the PLAYER placeholder? Worth noting that I'll be away for the next 4 weeks, I'll not be able to provide any further support.