#(ilikecompu) little question about ? itemtag ?

31 messages · Page 1 of 1 (latest)

pale dirge
#

Hello I want to equip enchanted armor:
- equip <context.entity> hand:diamond_sword head:netherite_helmet chest:netherite_chestplate legs:netherite_leggings boots:netherite_boots
How would I do that? Maybe with this netherite_boots[enchantments]??????????

hidden grailBOT
#

(ilikecompu) little question about ? itemtag ?

hidden grailBOT
#

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.

tight wave
#

!paste

solid ingotBOT
pale dirge
#

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

tight wave
#

!paste

solid ingotBOT
covert shard
pale dirge
#

but this zombie part is all that matters...

ornate turtle
#

the paste site lets us view the code easily and gives us better context on what you are trying to do

pale dirge
#

ty for explaining

ornate turtle
#

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

solid ingotBOT
# ornate turtle !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

Object

ItemTag

Input

MapTag

Tags

<ItemTag.enchantment_map> Returns a map of enchantments on the item. Map keys are enchantment name...

ornate turtle
#

there is an example on how it should look like on the embed

pale dirge
#

okay ill try that ty

#

invalid mechanism specified

covert shard
#

Instead

#

!debug

solid ingotBOT
# covert shard !debug
Info: 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!

sudden zealot
#

@pale dirge could you provide a debug please. Otherwise,

dapper hazelBOT
#
Thread Closing Reminder

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