mojira.dev
MC-106991

Using a sign with invalid JSON in BlockEntityTag places sign but does not increase sign usage statistics

The bug

When you try to place a sign item with invalid JSON data in the BlockEntityTag, the sign is placed but the score for the objective type minecraft.used:minecraft.signType_sign does not increase.

How to reproduce

  1. /scoreboard objectives add signsPlaced minecraft.used:minecraft.oak_sign
  2. /scoreboard objectives setdisplay sidebar signsPlaced
  3. Use the following command to get a sign item with invalid JSON data

    /give @s oak_sign{BlockEntityTag:{Text1:"Invalid JSON"}}
  4. Try to place the sign
    → The sign is placed but the score does not increase

Linked issues

Attachments

Comments 5

Can confirm for MC 1.12.1.

Confirmed for 1.13.1.

Can confirm in 20w48a. I've attached a video of this bug in action.

I am no longer able to reproduce this in 21w03a.

Cannot reproduce either in 21w03a. Though no error or warning is logged (which is not much better either), but that should if necessary be a separated report.

marcono1234

(Unassigned)

Confirmed

(Unassigned)

BlockEntityTag, JSON, NBT, objectives, scoreboard, use-item

Minecraft 1.10.2, Minecraft 16w36a, Minecraft 1.12.1, Minecraft 1.13.1, Minecraft 1.13.2, ..., 20w21a, 1.16 Pre-release 2, 1.16.4, 20w46a, 20w48a

Retrieved