#How to rename items with scripting
1 messages · Page 1 of 1 (latest)
ok thanks
I'm trying this but it doesn't seem to work
world.afterEvents.itemUse.subscribe(ev => {
ev.itemStack.nameTag = "test"
});```
(ev)
?
nevermind it does work it just doesn't display the text on the actual item
ypu need to set the item in the onventory using inventory.container.setItem()
ye