This shouldn't be difficult to code, the tp command can already use relative coordinates meaning that there is code to track the player's position and figure out coordinates based on it. Support.
Rollback Post to RevisionRollBack
The problem with the truth, is that it never lies.
This shouldn't be difficult to code, the tp command can already use relative coordinates meaning that there is code to track the player's position and figure out coordinates based on it. Support.
I thought that to be the case, thanks for confirming this.
Forenote: This suggestion, as simply as I can possibly say it: To add the ability for mob spawners to spawn their entities relative to a player; basically treating the player as the mob spawner. I am not suggesting this to be available in creative mode; this would only be attainable via 3rd party editors.
For those of you whom do not know, a central problem in map-making is giving custom items to players. This 'can' be accomplished through chests and dispensers, but each have the same drawback: this is limited only to these specific locations. What if a map-maker wants to give an item at a moments notice to players when they request it? Currently the only solution to this is to teleport them several blocks away, outside of the map, to mob spawners which take place of the floor of the entire map, which spawn the item that the player picks up, then finally teleport them back. Even with MCedit, this is extremely time-consuming to create, quite unreliable and in some cases impossible.
So this is what I propose: giving monster spawners the capability to spawn mobs, entities, and items relative to players. This would join the already available options of mob spawners to spawn relative to it and to coordinates, and would basically treat the player as a mob spawner, allowing all the currently available spawn modification tags to be used here. Additional tags could be added to chose the closest player in range, farthest, random or all, similar to command blocks.
This opens up a vast amount of possibilities, from being able to give players a sword with sharpness 100 to deal a final death blow to a boss, spawning tnt where they stand to launch them into the air, to summoning and using a ghast fireball. One could even spawn blaze fireballs a few blocks away from the caster to form what amounts to a wall of fire. This is another small change which brings a whole new wave of possibilities, the kind of which I do believe Minecraft has become known for.
1.8 may introduce a new command for editing player data directly. No news on relative /summoning or /setblocking, but there is a limited work-around to this if player data can be modified.
When you /summon one mob riding another, they are stuck together. However, if you put a special entity in between the two, they will be separated. Special entities being those that will despawn the instant they are summoned; currently, FallingSand with a Time of 0 is the best option. Motion tags applied to the mobs will launch the mob appropriately, so you can force the player to 'ride' the FallingSand, riding another mob, and shoot the mob out where they will reach their destination.
Keep in mind they will be barred by walls. They may damage the player upon summoning before they're launched. This method of riding does support as many mobs as the command block character limit (16,369) allows, but will need a FallingSand entity in between each mob you want to be separated.
And if we obtain the ability to edit entity data along with the player data (a command is already confirmed for editing pre-existing blocks), we can set the "attackDamage" attribute of the mobs to 0 so ensure they don't damage the player, and then set their "attackDamage" back to normal once we're sure they're out of range.
Well, at least that is an answer.
I thought that to be the case, thanks for confirming this.
Just add the nbt like so
You can even spawn giants!
I have concluded this session.
1.8 may introduce a new command for editing player data directly. No news on relative /summoning or /setblocking, but there is a limited work-around to this if player data can be modified.
When you /summon one mob riding another, they are stuck together. However, if you put a special entity in between the two, they will be separated. Special entities being those that will despawn the instant they are summoned; currently, FallingSand with a Time of 0 is the best option. Motion tags applied to the mobs will launch the mob appropriately, so you can force the player to 'ride' the FallingSand, riding another mob, and shoot the mob out where they will reach their destination.
Keep in mind they will be barred by walls. They may damage the player upon summoning before they're launched. This method of riding does support as many mobs as the command block character limit (16,369) allows, but will need a FallingSand entity in between each mob you want to be separated.
And if we obtain the ability to edit entity data along with the player data (a command is already confirmed for editing pre-existing blocks), we can set the "attackDamage" attribute of the mobs to 0 so ensure they don't damage the player, and then set their "attackDamage" back to normal once we're sure they're out of range.
This is all speculation on how the command could work, should it be implemented. Dinnerbone has stated we will have commands similar to ones that was asked of him, so there's no way of knowing until the snapshots or he reveals more information. You can find the source for these commands here: http://www.reddit.com/r/Minecraft/comments/1t6qn7/i_am_dinnerbone_a_minecraft_developer_ask_me/ce51s1r?context=3
Note that all of the above would be useless for summoning relative to the player in the event the /summon command supports it instead.
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/