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

Inline json doesn't allow mixing types in array

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 24w37a
    • None
    • Confirmed
    • (Unassigned)

      How to Reproduce

      1. Execute the following command
        /loot give @s loot {pools:[{rolls:1,entries:[{type:"item",name:"stone",functions:[{function:"set_name",entity:"this",name:["test",{selector:"@s"}]}]}]}]}
        

      Expected Behaviour

      Parse successfully since it's a valid json.

      Observed Behaviour

      Can't insert TAG_Compound into list of TAG_String

            Unassigned Unassigned
            ccJerrycc ccJerrycc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: