The first 1.8 snapshot has introduced the confirmed /blockdata command, a new selector for several commands labeled "@e" for "all entities", and updates to commands such as /kill and /clear.
First, a video of examples concerning the /blockdata command:
Currently two tile entities are not capable of being modified: "flower_pot" and "standing|wall_sign". This has been fixed for 14w02c.
The next addition is the new @e selector, which will select all of the specified entity. For example:
/tp @e ~ ~ ~
This will teleport all mobs to their own locations, including the player. You can use the new "type" parameter, exclusive to the @e selector, to specify exact mobs. For example:
/tp @e[type=!Player] ~ ~ ~
The above will teleport all mobs, excluding the player.
/tp @e[type=Creeper] ~ ~ ~
And this will teleport only creepers to their own locations. Other commands that can use this include the improved /kill command, /effect, and even /say.
The /kill command now includes a player/entity selector option. Note that mobs will still drop their loot unless the doMobLoot gamerule is set to false (thus /tping all mobs into the void is the best option). Syntax:
/kill <player>
This means that command blocks can now cleanly kill player targets (and the @e selector can also be used).
Currently (42w02b) the max item count does not function completely. With the "Max Item Count" set to 0, the player will not have their items removed, but will still be detected as having those items (thus a clean inventory check can be done without clearing player inventories). Setting this to -1 will set to unlimited items to be cleared, and above 0 should clear that specific number of items, but does not currently function.
After that is the dataTags, which can clear extremely specific items; a much-needed feature to match the /give dataTags!
A video depicting these changes:
Simply the addition of dataTags and the ability to keep player items upon /clearing is extremely useful. The /blockdata command will likely shine most in removing or updating chest contents, as using /setblock where a chest still has items within it will spill those items onto the ground.
Entity selectors are definitely a show of what's to come. Currently they're fairly limited, but having such a selector can open up so many doors if entities can be modified directly with a command.
But for now, here's a command to teleport all mobs to a random player:
Thanks so much for the info, as always skylinerw. It's such a darn shame signs can't be modified, we could have made scary signs that change text every half a second
No. Because command block shows that it was teleported, but it doesn't teleports.
but my friend has this:
the entity UUID provided is in invalid format
No. Because command block shows that it was teleported, but it doesn't teleports.
but my friend has this:
the entity UUID provided is in invalid format
And you're using the exact command provided? It works fine on my end. And that error you've listed indicates there are more than 1 entity capable of being teleported, in which case he would need to use the second command I've listed.
And you're using the exact command provided? It works fine on my end. And that error you've listed indicates there are more than 1 entity capable of being teleported, in which case he would need to use the second command I've listed.
Please, can give me your save with working command.
And you're using the exact command provided? It works fine on my end. And that error you've listed indicates there are more than 1 entity capable of being teleported, in which case he would need to use the second command I've listed.
I am getting the same problem too. There is only firework, by the way.
The Meaning of Life, the Universe, and Everything.
Join Date:
12/29/2013
Posts:
56
Minecraft:
Godlander
Member Details
Hey Skylinerw, I was toying around with the @e argument earlier, and I want to ask if there is a way to teleport, for example, an arrow, 2 blocks above a exp orb. If there is, Can you give me the correct command?
Hey Skylinerw, I was toying around with the @e argument earlier, and I want to ask if there is a way to teleport, for example, an arrow, 2 blocks above a exp orb. If there is, Can you give me the correct command?
You will need a repeater between each command block to ensure the order of initiation is correct. First command:
/summon Arrow ~ ~ ~
Second command:
/tp @e[type=Arrow,c=-1] @e[type=XPOrb,c=-1]
Third command:
/tp @e[type=Arrow,c=-1] ~ ~2 ~
The "c=-1" is used so the arrow that was created the most recently will be teleported, allowing you to use this setup multiple times. This may change the further we get into 1.8.
Thanks so much for the info, as always skylinerw. It's such a darn shame signs can't be modified, we could have made scary signs that change text every half a second
You will need a repeater between each command block to ensure the order of initiation is correct. First command:
/summon Arrow ~ ~ ~
Second command:
/tp @e[type=Arrow,c=-1] @e[type=XPOrb,c=-1]
Third command:
/tp @e[type=Arrow,c=-1] ~ ~2 ~
The "c=-1" is used so the arrow that was created the most recently will be teleported, allowing you to use this setup multiple times. This may change the further we get into 1.8.
Thanks but there's one more thing, I was trying to get the bottle of enchanting to be a summon arrow storm thingy, but the arrow couldn't land fast enough with the command chain, is there a way to improve that?
Thanks so much for the info, as always skylinerw. It's such a darn shame signs can't be modified, we could have made scary signs that change text every half a second
You can:
You change signs like this: /blockdata x y z {Text1:<text here>,Text2:<text here>} Text1 = line 1 text Text2 = line 2 text, etc.
First, a video of examples concerning the /blockdata command:
Currently two tile entities are not capable of being modified: "flower_pot" and "standing|wall_sign".This has been fixed for 14w02c.Commands in the video can be found here: http://pastebin.com/y1X22car
The next addition is the new @e selector, which will select all of the specified entity. For example:
This will teleport all mobs to their own locations, including the player. You can use the new "type" parameter, exclusive to the @e selector, to specify exact mobs. For example:
The above will teleport all mobs, excluding the player.
And this will teleport only creepers to their own locations. Other commands that can use this include the improved /kill command, /effect, and even /say.
The /kill command now includes a player/entity selector option. Note that mobs will still drop their loot unless the doMobLoot gamerule is set to false (thus /tping all mobs into the void is the best option). Syntax:
This means that command blocks can now cleanly kill player targets (and the @e selector can also be used).
The new /clear syntax:
Currently (42w02b) the max item count does not function completely. With the "Max Item Count" set to 0, the player will not have their items removed, but will still be detected as having those items (thus a clean inventory check can be done without clearing player inventories). Setting this to -1 will set to unlimited items to be cleared, and above 0 should clear that specific number of items, but does not currently function.
After that is the dataTags, which can clear extremely specific items; a much-needed feature to match the /give dataTags!
A video depicting these changes:
Simply the addition of dataTags and the ability to keep player items upon /clearing is extremely useful. The /blockdata command will likely shine most in removing or updating chest contents, as using /setblock where a chest still has items within it will spill those items onto the ground.
Entity selectors are definitely a show of what's to come. Currently they're fairly limited, but having such a selector can open up so many doors if entities can be modified directly with a command.
But for now, here's a command to teleport all mobs to a random player:
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/
You would use the following:
If there are multiple fireworks and the inability to teleport multiple entities is not resolved:
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/
Doesn`t work
Can you provide any error messages?
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/
No. Because command block shows that it was teleported, but it doesn't teleports.
but my friend has this:
the entity UUID provided is in invalid format
And you're using the exact command provided? It works fine on my end. And that error you've listed indicates there are more than 1 entity capable of being teleported, in which case he would need to use the second command I've listed.
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/
Please, can give me your save with working command.
I am getting the same problem too. There is only firework, by the way.
In fact, it can't teleport at all.
I run into this issue when the firework(s) in question are outside the rendering range of the player, even if the firework is in the spawn chunks. Here is a world download of it working: https://dl.dropboxusercontent.com/u/42957209/FireworksRocketEntity _tp.zip
You will have to go into further detail on how the firework is being created.
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/
You will need a repeater between each command block to ensure the order of initiation is correct. First command:
Second command:
Third command:
The "c=-1" is used so the arrow that was created the most recently will be teleported, allowing you to use this setup multiple times. This may change the further we get into 1.8.
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/
/blockdata x y z {Text1:<text here>,Text2:<text here>}
Text1 = line 1 text
Text2 = line 2 text, etc.
Thanks but there's one more thing, I was trying to get the bottle of enchanting to be a summon arrow storm thingy, but the arrow couldn't land fast enough with the command chain, is there a way to improve that?
You can:
You change signs like this:
/blockdata x y z {Text1:<text here>,Text2:<text here>}
Text1 = line 1 text
Text2 = line 2 text, etc.
I believe the bug doesn't exist anymore...
Ah yes, that would be correct! And a side-note: flower pots are fixed as well. Quickly fixed the OP to reflect this.
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/
When teleporting FireworksRocketEntity to another location, the command doesn't take effect until after 20 ticks.