(Solved) /name command

Started by pylonuclear on

Topic category: Help with modding (Java Edition)

Last seen on 15:09, 2. Sep 2021
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
Last seen on 00:30, 24. Aug 2023
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.

Last seen on 15:09, 2. Sep 2021
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!

Last seen on 04:16, 16. May 2022
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