is it possible to teleport an/all entity(s) within a radius to a given location?
I have a chess board that I want to move each piece to a given square without insane amounts of command blocks - so if I can just teleport whatever is on "X" tile to "Y" tile that would work perfect. Thanks for all/any info/help.
As DarklordFK said, you can use entity selectors. For example, let's say you have tile X at 18,63,18 and tile Y at 36,63,36, and each tile is ten blocks wide. Using the following command will teleport anything from tile X onto the centre of tile Y:
tp @e[18,60,18,4] 36 63 36
Unfortunately, there's a caveat to this. The radius selector selects entities in a spherical radius, not a cubic radius, so anything in the outer corners will not be teleported. The easiest way to fix this would be to create a chess board with circular cells and tell players to stay on the black/white as the example below. Alternatively, you could spam the teleport command with a comparator clock and teleport entities to Y=65 of the relevant cell. Use a testfor command looking for entities at Y=65 to turn off the teleport command, as only entities that have been teleported will be floating in the air.
As DarklordFK said, you can use entity selectors. For example, let's say you have tile X at 18,63,18 and tile Y at 36,63,36, and each tile is ten blocks wide. Using the following command will teleport anything from tile X onto the centre of tile Y:
tp @e[18,60,18,4] 36 63 36
Unfortunately, there's a caveat to this. The radius selector selects entities in a spherical radius, not a cubic radius, so anything in the outer corners will not be teleported. The easiest way to fix this would be to create a chess board with circular cells and tell players to stay on the black/white as the example below. Alternatively, you could spam the teleport command with a comparator clock and teleport entities to Y=65 of the relevant cell. Use a testfor command looking for entities at Y=65 to turn off the teleport command, as only entities that have been teleported will be floating in the air.
Are you able to use dx, dy and dz to select cubic areas?
is it possible to teleport an/all entity(s) within a radius to a given location?
I have a chess board that I want to move each piece to a given square without insane amounts of command blocks - so if I can just teleport whatever is on "X" tile to "Y" tile that would work perfect. Thanks for all/any info/help.
/tp @e[r=(Radius)] - - -
I think that should work
Want a minecraft animation? just come and ask me! I'll do it for free!
Thanks to NovaPrimeXL for the avatar!
As DarklordFK said, you can use entity selectors. For example, let's say you have tile X at 18,63,18 and tile Y at 36,63,36, and each tile is ten blocks wide. Using the following command will teleport anything from tile X onto the centre of tile Y:
tp @e[18,60,18,4] 36 63 36
Unfortunately, there's a caveat to this. The radius selector selects entities in a spherical radius, not a cubic radius, so anything in the outer corners will not be teleported. The easiest way to fix this would be to create a chess board with circular cells and tell players to stay on the black/white as the example below. Alternatively, you could spam the teleport command with a comparator clock and teleport entities to Y=65 of the relevant cell. Use a testfor command looking for entities at Y=65 to turn off the teleport command, as only entities that have been teleported will be floating in the air.
Check out my Youtube channel, where I build a theme park in vanilla Minecraft!
https://www.youtube.com/playlist?list=PLeCiIIOoWhe-mq3nYd_nXXrKw9MkjnUU7
Are you able to use dx, dy and dz to select cubic areas?
Single/Multi User Passcode Protected Vanilla Bank (1.7.4+) V2 http://www.minecraft...ulti-user-bank/
thanks