#Item Rename
1 messages · Page 1 of 1 (latest)
//equipable component allows you set set equipment
const equ = player.getComponent('equipable')
//defines the item
let myEpicSword = new ItemStack('minecraft:diamond_sword')
//changes the item name
myEpicSword.nameTag = '§gMy Epic Sword'
//sets the item
equ.setEquipment(EquipmentSlot.Mainhand, myEpicSword)
Thanks!