(Solved) /name command

Started by pylonuclear on Mon, 04/20/2020 - 23:14

Topic category: Help with modding (Java Edition)

Last seen on 18:03, 18. May 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 22:43, 31. Jul 2021
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 18:03, 18. May 2021
Joined Feb 2020
Points:

User statistics:

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

Thank you for letting me know!

Last seen on 21:54, 7. Mar 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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