mojira.dev
MC-32289

/setblock replace doesn't replace same block with different tile entity

Betterfix : The system should look too if it have different tile enitiy, not only at the block id and the block damage.
If i have a command block with:

/setblock ~ ~2 ~ 68 3 replace {Text1: Hello!}

and i power it, it will place a sign . if i have in the same position a command block with

/setblock ~ ~2 ~ 68 3 replace {Text1:Hello2!}

it will doesn't place the sign with the text "Hello2!". That's a bug ?

Related issues

Comments

kumasasa

Confirmed.

Probably the sign doesn't get replaced, "because it's the same block". Maybe the comparison algorithm doesn't compare the tile entity.

kumasasa

If issuing

/setblock ~ ~2 ~ 68 3 replace {Text1: Hello!}
/setblock ~ ~2 ~ 1
/setblock ~ ~2 ~ 68 3 replace {Text1: I am a new sign!}

the new sign gets placed.

luci999

I hope in the next snapshots will be fixed, the system should look too if it have different tile enitiy, not only at the block id and the block damage.

QwertyuiopThePie

It does look for the different tile entity just fine in /testforblock, so I'm not sure why it wouldn't with /setblock. Oh well, I guess we can just hope for a fix. It's currently quadrupling the average size of my redstone.

kumasasa

Duplicate of MC-30995

luci999

(Unassigned)

Confirmed

Minecraft 13w38c

Retrieved