So, i know how do some parts of my command but the rest of it I'm completely lost. First I want be able to give a player a specific item. (I know how to do that) Then when that item is held, it disappears and a command block will be placed underneath the holder. ( know how to do that to) Now comes the part that I'm stuck on. The command block should have a pre-set command in it. (/test for @p[r=3,name=Blank]) Except for instead of blank it would have the players name in it instead. So to be clear, I'm not sure how to set a command block with a command already in it and i don't know how to give it specific syntax based on the variable that is a players name. I know this is a difficult one so to any command wizard that is willing to help me out, Thank You so much!
I realize how to do all of that. The reason why I want a specific player name is because I am selling the previously mentioned held item to players in survival. I want that player to just be able to set that command block anywhere they want and have it test for them and only them. Would there be a way to do this with a score? I know you mentioned it, but it doesn't really do anything for multiple people using different command blocks. Remember there is also the problem with setting the command block with command already in it. Would I need to use the /clone command for that? Ive heard people say that there is a way to anything using command blocks you just have to think creatively. Sadly I'm not very creative
Not necessarily, if the target player has a score of 1 on the "player" objective then the command block under the player can just test for a nearby player in a specific radius with the min score of 1.Therefor avoiding the need for a name.This system can be used in multiplayer as well with a few tweaks(more player objectives, so there are no conflicts).