mojira.dev
MC-139496

Dying sign text also triggers clickEvent

The bug

Dying the text of a sign additionally triggers clickEvents of the text components.

This is likely not the intended behavior because the player wanted to only dye the sign text.

How to reproduce

  1. Use the following command

    /setblock ~ ~ ~ oak_sign{Text1:"{\"text\":\"Dye me\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Clicked\"}}"}
  2. Try to dye the text of the sign
    → ❌ The text color was changed but the clickEvent was triggered as well

Comments 2

When i use this command it gives me "An unexpected error occured trying to execute that command" but it give me a sign.

Did you copy the command or re-type it? It looks like the JSON is correct, so it should not cause problems.

marcono1234

michael

Confirmed

clickEvent, sign, text-component

Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a

Retrieved