Closed emcrald closed 3 months ago
Will be possible in the next update. Done:
leather_backpack:
enabled: true
display_name: "Leather Backpack"
type: BODY_ITEM
model:
gui: potion:300001
normal: potion:300001
normal_2: potion:310001
self: potion:300002
self_2: potion:310002
dye:
enabled: true
default: "#542900"
lore:
- test %player_name%
NOTE: this will break any json (component) you are using in your lore. This will work only on legacy simple strings due to the fact that PlaceholderAPI doesn't support components replacement.
Terms
Discord tag (optional)
emcrald
Describe the solution you'd like
The ability to use any placeholder api placeholders inside the lore and even the name of the cosmetic.
The story: I have a shop I made using deluxe menus to buy cosmetics and I've been using the changeoutput placeholder api package to determine inside the cosmetics lore either if the user owns the item to display "Owned" or whether to display "Purchase + The Price". This would be very useful inside the cosmetics core gui to show if the item is owned or not in my case, but there would be countless other cases where people can be very creative with what they do with it.
Heres an example of my messy placeholder but there are other placeholders that offer more cleaner and easier to understand methods:
'%changeoutput_==_input:{luckperms_has_permission_cosmeticscore.user.cosmetics.wear.carrot_hat}_matcher:yes_ifmatch:&r&f셁_else:&r&f셂\n&r&f셃셋ꌄ₁₀₀%'
Output:
Is your feature request related to a problem?
No
Describe alternatives you've considered
None
Additional context
No response