Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267221

"value" within "change_page" clickEvent json looks for a string instead of an integer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 23w51b, 24w03a, 24w03b, 24w05a, 24w06a, 24w07a, 24w10a, 24w11a, 24w13a, 1.20.5 Pre-Release 4, 1.20.5 Release Candidate 2, 1.20.5
    • None
    • Community Consensus
    • Commands
    • Important
    • Platform

      Within book json text components, when trying to add a "change_page" clickEvent the json resolution looks for a string rather than an integer, breaking book json components.

      How to replicate:

      use command to give book:

      Works:

      /give @s written_book{author:"test",title:"test",pages:['{"text":"goto page 2","clickEvent":{"action":"change_page","value":"2"}}', '{"text":"page 2"}']} 

      What is expected but does not work:

      /give @s written_book{author:"test",title:"test",pages:['{"text":"goto page 2","clickEvent":{"action":"change_page","value":2}}', '{"text":"page 2"}']}
      

            Unassigned Unassigned
            MukiTanuki MukiTanuki
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: