Mojira Archive
MC-110636

setblock uses incorrect data value for piston_extension

When using the command /setblock ~ ~ ~ piston_extension the invisible block that is created has a data value of 2. Usually the data value defaults to 0, this is for instance the case with air and stone.

Steps to Reproduce:

  1. Execute /setblock ~ ~ ~ piston_extension
  2. Execute /testforblock ~ ~ ~ piston_extension 0

What I expected to happen was...:
The block should have a data value of 0 and the testforblock command should be successful.

What actually happened was...:
The block had a data value of 2 and the testforblock command failed with the message:

The block at -1500, 57, -407 had the data value of 2 (expected: 0)

Workaround

  1. Use /setblock ~ ~ ~ piston_extension 0 to create the block
  2. Use /testforblock ~ ~ ~ piston_extension -1 to detect the block

Won't Fix

Adrodoc55

2016-11-23, 10:26 PM

2016-11-23, 11:32 PM

2016-11-23, 10:27 PM

0

1

Unconfirmed

Minecraft 1.11

-