#(ilikecompu) little question about ? itemtag ?
31 messages · Page 1 of 1 (latest)
(ilikecompu) little question about ? itemtag ?
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.
!paste
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
on zombie spawns: - equip <context.entity> hand:diamond_sword head:netherite_helmet[enchantments:protection] chest:netherite_chestplate legs:netherite_leggings boots:netherite_boots
this is all that matters
!paste
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
Please follow the instructions.
Content of Denizen Script Paste #116088: zombie equip... pasted 2023/10/06 07:11:47 UTC-07:00, Paste length: 2044 characters across 47 lines, Content: axe_item: type: item
but this zombie part is all that matters...
the paste site lets us view the code easily and gives us better context on what you are trying to do
ty for explaining
discord always messes with formatting so it just makes it easier :)
if you want to give the protection enchantment to the netherite helmet, you're on the right track. you're just missing the level of enchantment
!m itemtag.enchantments
Sets the item's enchantments as a map of EnchantmentTags or enchantment names to level.
For example: - inventory adjust slot:hand enchantments:sharpness=1
Does not remove existing enchantments, for that use !mechanism ItemTag.remove_enchantments
ItemTag
MapTag
<ItemTag.enchantment_map> Returns a map of enchantments on the item. Map keys are enchantment name...
there is an example on how it should look like on the embed
okay ill try that ty
this doesnt work... https://paste.denizenscript.com/View/116089
Content of Denizen Script Paste #116089: Edit of paste 116088: zombie equip... pasted 2023/10/06 07:16:36 UTC-07:00, Paste length: 2127 characters across 47 lines, Content: axe_item: type: item
invalid mechanism specified
Content of Server Log Paste #116091: server log... pasted 2023/10/06 07:17:34 UTC-07:00, Paste length: 2710 characters across 20 lines, Content: [16:15:21 INFO]: +- Queue AXE_ABILITY_1042_CcAlter Executing: (line 30) equip <context.entity>...
If you ever get problems like this in your console do not copy paste snippets.
Instead
!debug
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
@pale dirge could you provide a debug please. Otherwise,
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.)
@pale dirge