This will run the command as if the player input the command. So in the example above it will run:
/summon Creeper ~ ~3 ~
The Creeper will spawn 3 blocks above the player, not 3 blocks above the command block. This will remove the need to use 2 extra command blocks for player relative spawning and will make player relative commands a lot more feasible as the current minecart command blocks relative commands doesn't work very well.
This could also work with lets say: /RelativeCommand @e[type=Creeper,name=Boom,r=5] {command:effect @e[type=Creeper,name!=Boom] 14 1 10 }
Any creeper named Boom will make any creepers not named "Boom" invisible if thay are in a radius of 5 blocks, if you kill "Boom" this stops happening unless the command block finds another "Boom".
VVV EDIT - Though of more things. VVV
Another idea to add would be a RelativeDirection DataTag. This tag if added in a RelativeCommand would make entitys that are spawned with the command have the same direction as the selector, besides speed which would be determined with a number. This would also have motion values, which if set to Zero they will default to the players direction and the defult entitys motion values.
The format would be: {RelativeDirection:<x>,<y>,<z>,<Speed at which the entity moves>}
1 would be default for speed and higher values would be faster and so on and so forth.
/RelativeCommand @p {command:summon Arrow ~ ~ ~ {RelativeDirection:0.0,0.0,0.0,1}}
This command would summon an arrow at the nearest player going in the direction they are facing at a default speed. This command would also inherit the defult motion data values. (which would be a full drawn bow.)
/RelativeCommand @p {command:summon Arrow ~ ~ ~ {RelativeDirection:0.0,1.0,0.0,0.5}}
This command on the other hand HAS a motion value as well, so this arrow fires a slow arching arrow into the sky relative to the players direction becuase the Y value is set to 1. Since the X and Z motions tags are 0 they are not changed from what is set by the default RelativeDirection.
The last addition to this could be powerful and it would be another relative value.
Lets look at the command /RelativeCommand @p {command:summon Entity ~10 ~ ~
This will summon an entity 10 blocks away relative to the player in the Z direction. Not ideal as that's not where the player is looking. The last addition would be:
That Rs means relative to the players direction. So this means it will spawn that many numbers away from where the player is looking. If you use ~zxr is will spawn that many blocks away from the players direction. If you set a ~yr that many blocks from the players Vertical cross hair location.These would be optional values that only did anything if they were present. An example is below
This command will spawn a potion of harming 5 blocks away from where the player is looking and 1 block up from where the player is standing.
Please continue suggestions as well as writting your own example of what you would do with this and let Mr. Dinnerbone see this as it's my #1 most wanted feature, as I'm sure It's many others.
More Command Examples
/RelativeCommand @p {command:kill @e[type=Zombie,r=4]}
Kills any Zombies in a radius of 4 blocks to the player
This will pick up any cobblestone that is one block under the player, and one block infront of the player and throw it forward where it would then land.
1. Don't ask us for suggestions.
2. I've said it before and I'll say it again; Just because you want it doesn't mean they will implement it.
The concept is pretty good, though.
3/5 Support.
1. Thanks for bumping, suggestions were for those polite people who wish to say "Hey this is cool, what about this as well"
The command itself doesn't leave much wiggle room.
2. It isn't JUST me:
The problem with the current method is only certain things can be relative to the player and it's a lot more cumbersome than /RelativeCommand @<selector> {command:}
1. Don't ask us for suggestions.
2. I've said it before and I'll say it again; Just because you want it doesn't mean they will implement it.
The concept is pretty good, though.
3/5 Support.
You can ask for suggestions. It is allowed. If you do make a suggestion, but just ask "Hey, if you have any more ideas, you can share them!", that's ok. What they don't want is people making threads where the main point is asking for suggestions, and they don't want someone making a megathread.
Anyway, support.
1. Thanks for bumping, suggestions were for those polite people who wish to say "Hey this is cool, what about this as well"
The command itself doesn't leave much wiggle room.
2. It isn't JUST me:
The problem with the current method is only certain things can be relative to the player and it's a lot more cumbersome than /RelativeCommand @<selector> {command:}
1. Hmm, point taken.
2. Well, you should've worded it better, instead of just "my #1 wanted feature". But, I see that you've edited it.
Now that those are out of the way. You have my full Support.
You can ask for suggestions. It is allowed. If you do make a suggestion, but just ask "Hey, if you have any more ideas, you can share them!", that's ok. What they don't want is people making threads where the main point is asking for suggestions, and they don't want someone making a megathread.
Anyway, support.
I thought he was asking for more Suggestions. I didn't know that he was asking to share ideas.
Rollback Post to RevisionRollBack
I'm not a psychopath, I'm a sociopath. Do your research! Why can't people just think?
I suggested something similar to this ages ago, that would use selectors to do this. In saying that, why not use selectors to do this and mark that with a dot (.) after the entity? For example;
/summon Creeper @p.x @p.y @p.z
This format would allow use for more things and options.
Even so, I would love something like this, so support!
The people of Mojang should DEFINITELY implement this. It would make mapmaker's lives much easier and allow for some amazing creations.
I would definitely use this, I was working on a PvP map, and having this would make my life so much easier. I wouldn't have to use /tellraw to do this.
Sort of, just different format, and preferably, I would prefer the format I suggested. It would also allow a little more functionality (like, getting teams and such).
We now have the Tellraw trigger objectives which is indeed a step closer to this, however it's STILL needs interaction from the players mouse rather than just a redstone signal with a selector on the player.
Please look into adding this in a situation where we can use this with just redstone and a selector for which player.
Rollback Post to RevisionRollBack
Looking for a Build Team, check my profile for information!
All the chickens are lose, quick, before they escape... /execute @e[type=Chicken] ~ ~ ~ fill ~-1 ~-1 ~-1 ~1 ~1 ~1 minecraft:glass
The speculated syntax:
/execute <player|entity> X Y Z <command>
So you can specify relative coordinates from the player along with specifying the full command. Probably going to be one of the best commands of this update (in my opinion) if this is truly how it works!
/RelativeCommand @ {command:}
so
/RelativeCommand @p {command:summon Creeper ~ ~3 ~}
This will run the command as if the player input the command. So in the example above it will run:
/summon Creeper ~ ~3 ~
The Creeper will spawn 3 blocks above the player, not 3 blocks above the command block. This will remove the need to use 2 extra command blocks for player relative spawning and will make player relative commands a lot more feasible as the current minecart command blocks relative commands doesn't work very well.
This could also work with lets say:
/RelativeCommand @e[type=Creeper,name=Boom,r=5] {command:effect @e[type=Creeper,name!=Boom] 14 1 10 }
Any creeper named Boom will make any creepers not named "Boom" invisible if thay are in a radius of 5 blocks, if you kill "Boom" this stops happening unless the command block finds another "Boom".
VVV EDIT - Though of more things. VVV
Another idea to add would be a RelativeDirection DataTag. This tag if added in a RelativeCommand would make entitys that are spawned with the command have the same direction as the selector, besides speed which would be determined with a number. This would also have motion values, which if set to Zero they will default to the players direction and the defult entitys motion values.
The format would be:
{RelativeDirection:<x>,<y>,<z>,<Speed at which the entity moves>}
1 would be default for speed and higher values would be faster and so on and so forth.
/RelativeCommand @p {command:summon Arrow ~ ~ ~ {RelativeDirection:0.0,0.0,0.0,1}}
This command would summon an arrow at the nearest player going in the direction they are facing at a default speed. This command would also inherit the defult motion data values. (which would be a full drawn bow.)
/RelativeCommand @p {command:summon Arrow ~ ~ ~ {RelativeDirection:0.0,1.0,0.0,0.5}}
This command on the other hand HAS a motion value as well, so this arrow fires a slow arching arrow into the sky relative to the players direction becuase the Y value is set to 1. Since the X and Z motions tags are 0 they are not changed from what is set by the default RelativeDirection.
The last addition to this could be powerful and it would be another relative value.
Lets look at the command /RelativeCommand @p {command:summon Entity ~10 ~ ~
This will summon an entity 10 blocks away relative to the player in the Z direction. Not ideal as that's not where the player is looking. The last addition would be:
/RelativeCommand @p {command:summon Entity ~x ~y ~z ~xyr ~yr}
That Rs means relative to the players direction. So this means it will spawn that many numbers away from where the player is looking. If you use ~zxr is will spawn that many blocks away from the players direction. If you set a ~yr that many blocks from the players Vertical cross hair location.These would be optional values that only did anything if they were present. An example is below
/RelativeCommand @p {command:summon ThrownPotion ~ ~1 ~ ~5 ~ {Potion:{id:373,Damage:8204,Count:1}}
This command will spawn a potion of harming 5 blocks away from where the player is looking and 1 block up from where the player is standing.
Please continue suggestions as well as writting your own example of what you would do with this and let Mr. Dinnerbone see this as it's my #1 most wanted feature, as I'm sure It's many others.
More Command Examples
/RelativeCommand @p {command:kill @e[type=Zombie,r=4]}
Kills any Zombies in a radius of 4 blocks to the player
/RelativeCommand @p {command:summon /summon FallingSand ~ ~-1 ~ ~1 ~ {RelativeDirection:0.0,0.5,0.0,1,{TileID:4,Time:0,}}}
This will pick up any cobblestone that is one block under the player, and one block infront of the player and throw it forward where it would then land.
1. Don't ask us for suggestions.
2. I've said it before and I'll say it again; Just because you want it doesn't mean they will implement it.
The concept is pretty good, though.
3/5 Support.
You have my full Support. Reasons below.
1. Thanks for bumping, suggestions were for those polite people who wish to say "Hey this is cool, what about this as well"
The command itself doesn't leave much wiggle room.
2. It isn't JUST me:
The problem with the current method is only certain things can be relative to the player and it's a lot more cumbersome than /RelativeCommand @<selector> {command:}
You can ask for suggestions. It is allowed. If you do make a suggestion, but just ask "Hey, if you have any more ideas, you can share them!", that's ok. What they don't want is people making threads where the main point is asking for suggestions, and they don't want someone making a megathread.
Anyway, support.
Please read these two threads:
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2572194-please-read-this-before-making-a-suggestion-v2-0
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/44180-for-the-critics-ftc
1. Hmm, point taken.
2. Well, you should've worded it better, instead of just "my #1 wanted feature". But, I see that you've edited it.
Now that those are out of the way. You have my full Support.
I thought he was asking for more Suggestions. I didn't know that he was asking to share ideas.
My profile picture is from http://www.cachemonet.com, I'm an admin on the Minecraft Fanon Wiki
"The good you do today will be forgotten tomorrow; do good anyways" ~Abel Muzorewa
As far as I know, I think he was asking to see if anybody else had any ideas for this.
Please read these two threads:
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2572194-please-read-this-before-making-a-suggestion-v2-0
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/44180-for-the-critics-ftc
This format would allow use for more things and options.
Even so, I would love something like this, so support!
No problem, but what do you think of what I suggested in my post above?
They essentially do the same thing no?
Link Removed
Link Removed
Thanks for the support man
I would definitely use this, I was working on a PvP map, and having this would make my life so much easier. I wouldn't have to use /tellraw to do this.
Sort of, just different format, and preferably, I would prefer the format I suggested. It would also allow a little more functionality (like, getting teams and such).
Please look into adding this in a situation where we can use this with just redstone and a selector for which player.
Support!
It's not THAT confusing
It appears we will be given a new command that will allow us to use commands relative to any entity, including players: https://twitter.com/SeargeDP/status/432282134305181696
The speculated syntax:
So you can specify relative coordinates from the player along with specifying the full command. Probably going to be one of the best commands of this update (in my opinion) if this is truly how it works!
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/