#Acess player inventory

1 messages · Page 1 of 1 (latest)

barren thunder
#

How can I acess player mainhand, offhand, armor and etc ? Im trying to setLore on the main hand item from a player but idk how to, I searched at script API documentation but didnt know how to do it properly :'v

runic sinew
#

It s possible

#
player.getComponent("equippable").getEquipment("Mainhand")
wooden perch
barren thunder
#

Thank you guys bao_panda_star

runic sinew
#

Uw

barren thunder
# runic sinew Uw

Hey, so to setItem I need to use Container class right ? Or can I use setItem with getComponent()

#

I just saw the setEquipment() at documentation, thank you sir