#(Gentlestep) How do I allow for player heads to be enchanted?
26 messages · Page 1 of 1 (latest)
(Gentlestep) How do I allow for player heads to be enchanted?
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
As in, enchant them? all of them or a specific custom item?
basically treat a player_head like a diamond helmet
Do you have a script yet?
Hey there! Welcome to Denizen!
To get started learning Denizen, we recommend you follow the beginner's guide: https://guide.denizenscript.com/
Also, feel free to browse scripts or view discussions on the forum: https://forum.denizenscript.com/
And of course... don't be afraid to ask questions here on this Discord!
Do I have to make my own GUI for this to work?
Sorry about the late answer. You are asking a difficult question to answer completely correctly.
In theory, yes. Your own GUI could work but that's very difficult.
You can try use the player prepares item enchant event
!evt player prepares item enchant
Player
player prepares item enchant player prepares <item> enchant
when a player prepares to enchant an item.
Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<context.location> returns the LocationTag of the enchanting block.
<context.item> returns the ItemTag to be enchanted.
<context.bonus> returns an ElementTag(Number) of the enchanting bonus available (number of bookshelves).
<context.offers> returns a ListTag of the available enchanting offers, each as a MapTag with keys ...
"OFFERS:<ListTag>" of MapTags to set the offers available. Cannot be a different size list than the size of context.offers.
But it is recommended you follow the guide first.
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@sly dove