Is it possible to name an item using the give command such that it contains an arbitrary player's name?
The following doesn't seem to work like I would hope: /give @p minecraft:stone 1 0 {display: {Name: "@p's stone"}}
My hope would be for @p to me substituted for that player's name in the item name, but it doesn't do any such substitution in the text. Is there a way to accomplish said substitution?
Try "title @p 's stone" or "@p title". I know such things are possible because in some lucky block mods, it will say "found by" and then the player's name.
Bedrock edition? I guess now that I think about it this woud not work because they MC cant store strings rn or somethinf weird. Maybe I am wrong in Java it might be possible
I am kind of envious. I play on realms Bedrock because my friend had a world and I just started playing last November. I hate that I am limited with commands because I am really good with them. Block programming is really fun especially when you get in grind mode.
Back yo your question I do not think that is possible because you are unable to store strings.
However what do are you trying to do this for? Is it a player game? Because you might be able to tag people and then call those tags and name items based off those tags. (I am not a Java player so I can't be more specific but I bet if we brainstorm something either you or someone out there can get it if this might be an alternative option for you.
Just a simple multiplayer server. Not sure what exactly the functionality would be used for, but trying to do as much as I can via commands before exploring server mods / plugins, mostly as a way of getting better at command programming for the widest compatibility. I imagine something like this would be quite a bit simpler with something like Spigot or Sponge, but then your work is limited to those than have a particular framework, and more likely to become obsolete maybe?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is it possible to name an item using the give command such that it contains an arbitrary player's name?
The following doesn't seem to work like I would hope: /give @p minecraft:stone 1 0 {display: {Name: "@p's stone"}}
My hope would be for @p to me substituted for that player's name in the item name, but it doesn't do any such substitution in the text. Is there a way to accomplish said substitution?
Try "title @p 's stone" or "@p title". I know such things are possible because in some lucky block mods, it will say "found by" and then the player's name.
Wubbla Lubba Dub Dub!
Bedrock edition? I guess now that I think about it this woud not work because they MC cant store strings rn or somethinf weird. Maybe I am wrong in Java it might be possible
Nein, just good ol' Java edition. Finally decided to take the plunge and get into command programming.
I am kind of envious. I play on realms Bedrock because my friend had a world and I just started playing last November. I hate that I am limited with commands because I am really good with them. Block programming is really fun especially when you get in grind mode.
Back yo your question I do not think that is possible because you are unable to store strings.
However what do are you trying to do this for? Is it a player game? Because you might be able to tag people and then call those tags and name items based off those tags. (I am not a Java player so I can't be more specific but I bet if we brainstorm something either you or someone out there can get it if this might be an alternative option for you.
Just a simple multiplayer server. Not sure what exactly the functionality would be used for, but trying to do as much as I can via commands before exploring server mods / plugins, mostly as a way of getting better at command programming for the widest compatibility. I imagine something like this would be quite a bit simpler with something like Spigot or Sponge, but then your work is limited to those than have a particular framework, and more likely to become obsolete maybe?