/tp @e[type=creeper, x=270, y=30, z=-130, distance=..200] -300 80 -90
This code is working but only for creepers.
I want that i can teleport all monsters in minecraft to a another location. if it is possible in one command block in code in favor that only the type is changed to other command or anything. if i must group monsters in a another command block isn't a problem so long the function of teleporting is in 1 block in favor.
My second question is can i make variable like in program languages.
/tp @e[type=creeper, x=270, y=30, z=-130, distance=..200] -300 80 -90
This code is working but only for creepers.
I want that i can teleport all monsters in minecraft to a another location. if it is possible in one command block in code in favor that only the type is changed to other command or anything. if i must group monsters in a another command block isn't a problem so long the function of teleporting is in 1 block in favor.
My second question is can i make variable like in program languages.
thank you in advance