#How can I get the data from equipment.mainhand?

1 messages · Page 1 of 1 (latest)

eternal walrus
#

I know that SelectedItem exists, but I'm wondering how to get the data from equipment.mainhand, because the mannequin has equipment.mainhand, but for some reason the player still uses SelectedItem

brisk scroll
#

It seems like you answered your question

#

data get entity @s equipment.mainhand

eternal walrus
#

I wouldn't ask this question if everything were so easy😢

lone egret
#

its still SelectedItem for players, as you said.

#

it was always a special case extra thing (because it's duplicating whatever item is in the slot that's selected) and i'm sure it would've been a complex coding task to move it into the new equipment array

eternal walrus
#

Thank you for answering