Started by
pylonuclear
on
Topic category: Help with Minecraft modding (Java Edition)
I want to create a command called /name [insert name here]. The idea is, when you type in this command, the item in your hand will be renamed to whatever you typed. The thing is, I don't know how to detect what the player typed. Is there a way to do this without custom code?
Edited by pylonuclear on Thu, 10/29/2020 - 00:20
Unfortunately, this won't be possible. You CAN detect what the player types in the command, but you CANNOT rename items in this way.
Thank you for letting me know!
yes you can, just get the first command index and name the item to that