#(kitkatod) Equip command argument syntax

9 messages · Page 1 of 1 (latest)

native prairie
#

I'm working on something to randomly equip armor to entities during spawning and was trying to simplify a script a bit. Using the below returns an error "'legs:netherite_leggings' is an unknown argument!", while just passing "legs" explicitly instead of by variable will function as expected.

I'm wondering whether this syntax is supported. The alternative approach was to do this with a - choose <[slot]>.

Script: https://paste.denizenscript.com/View/121192
Debug: https://paste.denizenscript.com/View/121191

graceful kiteBOT
#

(kitkatod) Equip command argument syntax

graceful kiteBOT
#

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.

weary cedar
#

Not 100% sure why that doesnt work, but you probably want to use this instead

#

!m entity.equipment

pastel chasmBOT
# weary cedar !m entity.equipment

Sets the entity's worn equipment.
Input keys are boots, leggings, chestplate, and helmet.

Object

EntityTag

Input

MapTag

Tags

<EntityTag.equipment> Returns a ListTag containing the entity's equipment. Output list is boots|leggings|chestplate|helmet
<EntityTag.equipment_map> Returns a MapTag containing the entity's equipment. Output keys are boot...

weary cedar
#

Make a map of the equipment you want to put in and then set it via ^

native prairie
#

Ahh good call, this did the trick thanks!