(Solved) /name command

Started by pylonuclear on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Solved) /name command
Thu, 10/29/2020 - 00:20 (edited)

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
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unfortunately, this won't be…
Mon, 04/20/2020 - 23:57

Unfortunately, this won't be possible. You CAN detect what the player types in the command, but you CANNOT rename items in this way.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for letting me…
Tue, 04/21/2020 - 14:26

Thank you for letting me know!

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes you can, just get the…
Fri, 10/02/2020 - 20:29

yes you can, just get the first command index and name the item to that