#check for item in offhand and set item lore in offhand item

1 messages · Page 1 of 1 (latest)

glossy moon
#

How can I do that?

rich knoll
#

You can’t do that currently in 1.19.70 you have to wait for 1.19.80

glossy moon
rich knoll
#
const equipment = Player.getComponent("equipment_inventory");
const itemInOffhand = equipment.getEquipment("offhand");
glossy moon
#

Ah, thx

rich knoll
#

No problem!

glossy moon
rich knoll
glossy moon
#

It should be false when it's not the item I want

rich knoll
glossy moon
#

Oh

#

Is undefined also acting like false?

rich knoll
#

Kinda

#

You can do if (itemInOffhand)

glossy moon
#

Ohh

#

Alr

#

Thx