Basically wanted to display the player's held item in chat with a command or a message such as [item] or /item
After this I'm completely stuck
Code:
on chat:
cancel event
set {_message} to message
set {_item} to player's held item
if player's held item is not air:
if message contains "[item]":
set {_lore} to nbt of player's held item
if {_lore} contains "{}":
set {_lore} to ""
else:
set {_lore} to "&4Lore: &c%{_lore}%"
replace all "'" with "" in {_lore}
replace all """" with "" in {_lore}
set {_item} to capitalized "&c%{_item}%"
After this I'm completely stuck