mojira.dev
MC-6253

Odd Command Block / Teleportation behavior

Hi,

I set a command block to this command: "tp @p -179 56 -518"

What I expected to happen was...:
Get teleported to -179 56 -518 😃

What actually happened was...:
I got teleported to 178.5 56 -517.5

It appears to be moved by one block soth and one block east

However, this can be avoided by just entering e.g. -179.3 56 -518.3

The problem is: This trick doesn't work with the arguments at playerselection. If you look at my screenshot. The commandblock should teleport anyone from the block the torch is on, to the stoneblock. (radius is 1) What actually happens is, it only detects players on the blue blocks

Am I doing somthing wrong?

Thanks in advance

waelty

Linked issues

Attachments

Comments 3

Duplicate of MC-4794, please use the search function to see if your bug has already been submitted. Currently over 40% of tickets are being closed as duplicate.

the 178.5 56 -517.5 is intended as far as I know. The solid numbers would put you on the cross sections of the blocks, the .5 puts you in the center of a block.

You could also use "-179.0 56 -518.0" if you want that specific location

Also if you have "tp @p -179 56 -518" as your command I don't see any arguments for radius.

http://www.minecraftwiki.net/wiki/Command_blocks

EDIT: I see the bug now, but the other stuff I typed should still apply.

Hi!

/tp @p[-179,56,-519,r=1] -179.3 56 -522.3

This is what i wrote into the command block on the screenshot

i can't use

/tp @p[-179.0,56,-519.0,r=1] -179.3 56 -522.3 because it wouldn' work this way

waelty

(Unassigned)

Unconfirmed

block, command, command_block, teleport

Snapshot 13w01a, Snapshot 13w01b

Retrieved