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

Objectives not working in hoverEvent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 14w32b, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 15w47b
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      Description
      When an objective is attempted to be displayed via score:{} in a hoverEvent:{}, it is not displayed. (Both tellraw and Written Books) It is however displayed outside a hoverEvent:{}.

      How to Duplicate

      Run this in the command line:

      /scoreboard objectives add test dummy
      

      Then run this in the command line:

      /scoreboard players set @a test 1
      

      Then place down command block down and run via the command block

      /give @a minecraft:written_book 1 0
       
      {
      	title:"Book",
      	author:"",
      	pages:["{
      		text:\"\",
      		extra:[{
      			text:\"Objective:\",
      			color:red
      		},{
      			score:{
      				name:*,
      				objective:\"test\"
      			},
      			color:blue
      		},{
      			text:\"  \"
      		},{
      			text:\"Hover Here\",
      			color:green,
      			hoverEvent:{
      				action:show_text,
      				value:[{
      					text:\"Objective:\",
      					color:red
      				},{
      					score:{
      						name:*,
      						objective:\"test\"
      					},
      					color:blue
      				}]
      			}
      		}]
      	}"]
      }
      

      As you can see the score is displayed at first (in the blue), but once it is within a hoverEvent:{} it no longer displays.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Wolf_Asleif Patrick
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: