mojira.dev
MC-217163

Clickevent on lit sign doesn’t work while holding glow ink sac in both hands/Clickevent on unlit sign doesn’t work while holding ink sac in both hands

The bug

When you are looking at a sign with a clickevent that has the lit state set to true while holding a glow ink sac in the mainhand and the offhand at the same time or when you are looking at a sign with a clickevent that has the lit state set to false while holding a normal ink sac in the mainhand and the offhand at the same time and right click, the command of the clickevent doesn't run.

How to reproduce

  1. Run this command to get a sing with a click event:

    /give @s oak_sign{BlockEntityTag:{Text1:'{"text":"Hello!","clickEvent":{"action":"run_command","value":"/summon minecraft:evoker_fangs"}}'}} 1
  2. Place the sign

  3. Put a glow ink sac in your offhand and hold a glow ink sac in your mainhand

  4. Right click
    → ✔ The evoker fangs get spawned

  5. Right click again
    → ❌ The evoker fangs don't get spawned, because the sign is lit

  6. Hold a normal ink sac in your off hand and hold a normal ink sac in your mainhand

  7. Right click again
    → ✔ Evoker fangs do get spawned

  8. Right click again
    → ❌ Evoker fangs don't get spawned, because the sign is unlit

Expected result: When ever you right click the sign it spawned evoker fangs.

Relates to MC-212892 and MC-166885

Related issues

Attachments

Comments

migrated
[media]
migrated

Now in 21w10a it doesn’t even require you to hold an ink sac or a glow ink sac in both hands at the same time anymore. Because MC-212168 was fixed it uses an NBT tag instead of a block state for the glow and when you right click a glowing sign with a glow ink sac or a non glowing sign with a normal ink sac it will play a hand animation but not execute the click event.

[Mod] turbo

I can reproduce the behavior up to 1.19.4, in 23w12a and 23w13a none of the commands work, and from 23w14a I can no longer reproduce the behavior with the updated command.

/give @s oak_sign{BlockEntityTag:{front_text: {messages:['{"text": "Click me", "clickEvent":{"action": "run_command", "value": "summon minecraft:evoker_fangs"}}','{"text":""}','{"text":""}','{"text":""}']}} 1

migrated

(Unassigned)

Confirmed

Platform

Low

Commands

21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a

Retrieved