mojira.dev
MC-44881

Command Block Custom Radius

I made a command block to teleport all the players within a cubed room to a specific location using this command < TP @a[0,15,0,10] > but I noticed that at the edge of the room if a player stand in the farthest corner the command doesn't grab them, as if doesn't search the whole square.

Comments 4

In the future, please only report bugs tested with vanilla (unmodded) minecraft. This behaviour is intended, as radius is that of a circle, not square.

this issue was recorded with Vanilla MineCraft, but I usually use a modded client so rather than just "say hey here are the versions Mojang pushed out" I figure it be best to list all the version I tested this with, and I apologise for not knowing the radius was a sphere not a cube hopefully Mojang considers making the Radius option more useful, as a sphere selection is rather difficult to work with in adventure maps or anything at all. It would almost be easier to have a command block for each block I want to check rather than mess with sphere radii.

Extra Note: Since the radius also tests for height as well as direction a 2D object like a circle and square are not correct.

You are correct, sphere is a more accurate description than circle. I believe that it may indeed be beneficial to have two options for these, and I recommend you make a request for thise on Minecraft Suggestions on Reddit.

Fate

michael

Unconfirmed

command_block, radius

Minecraft 1.7.4

Minecraft 14w03a

Retrieved