Hi,
I am making a map and need to know how if it's possible to teleport all entities within a one block radius of a pig towards a sheep somewhere else in the map.
Thanks!
Hey,
It isn't working... It says
[13:18:25] Failed to execute 'tp @e[r=1,type=!Pig] @e[type=Sheep,name=Orange_Portal]' as Blue_Portal
and this is my command
Hey,
It isn't working... It says
[13:18:25] Failed to execute 'tp @e[r=1,type=!Pig] @e[type=Sheep,name=Orange_Portal]' as Blue_Portal
and this is my command
Stand at the pig's location and run the /tp command yourself (removing the /execute portion). This will tell you the error occurring with the /tp command, and then tell us the error here.
In general, make sure there aren't multiple targets to teleport to, as the command will fail if there is more than one.
Stand at the pig's location and run the /tp command yourself (removing the /execute portion). This will tell you the error occurring with the /tp command, and then tell us the error here.
In general, make sure there aren't multiple targets to teleport to, as the command will fail if there is more than one.
I'll try now
There were other sheep in the world. I switched doMobSpawning to false and ran
I am making a map and need to know how if it's possible to teleport all entities within a one block radius of a pig towards a sheep somewhere else in the map.
Thanks!
EDIT: use Maxaxik's, as I'd forgotten about the pig teleporting its own self if you use a simple @e.
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/
It isn't working... It says
[13:18:25] Failed to execute 'tp @e[r=1,type=!Pig] @e[type=Sheep,name=Orange_Portal]' as Blue_Portal
and this is my command
Any ideas?
Thanks
Stand at the pig's location and run the /tp command yourself (removing the /execute portion). This will tell you the error occurring with the /tp command, and then tell us the error here.
In general, make sure there aren't multiple targets to teleport to, as the command will fail if there is more than one.
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/
I'll try now
There were other sheep in the world. I switched doMobSpawning to false and ran
Now it works fine.
Thanks!
So...
execute @e[type=Pig,name=Blue_Portal] ~ ~ ~ tp @e[r=1,type=!Pig] @e[type=Sheep,c=1,name=Orange_Portal]
Also, the command is too big for the chat.
Also, also(?), I would of put mine in a box like everyone else... But they always glitch up on me...