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

Advancements' conditions.location unable to parse nbt.CustomName with translate or english characters field correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 24w12a
    • None
    • Unconfirmed
    • (Unassigned)

      The function(kaleidos:behave/barrel_full/place/place):
      say 1

      The advancement:
      {
        "criteria": {
          "requirement": {
            "trigger": "minecraft:placed_block",
            "conditions": {
              "location": [
                {
                  "condition": "minecraft:location_check",
                  "predicate": {
                    "block": {
                      "blocks": "minecraft:barrel",
                      "nbt": "{CustomName:'

      {\"translate\": \"item.kaleidos.base.container.barrel_half\",\"italic\":false}

      '}"
                    }
                  }
                }
              ]
            }
          }
        },
        "rewards":

      {     "function": "kaleidos:behave/barrel_full/place/place"   }

      }

      The gamescreen(function did NOT work)

      The other advancement (Use OtherNations'Charactor as CustomName):
      **
      {
        "parent":"kaleidos:interactions",
        "criteria": {
          "requirement": {
            "trigger": "minecraft:placed_block",
            "conditions": {
              "location": [
                {
                  "condition": "minecraft:location_check",
                  "predicate": {
                    "block": {
                      "blocks": "minecraft:barrel",
                      "nbt": "{CustomName:'

      {\"text\":\"木盆\",\"italic\":false}

      '}"
                    }
                  }
                }
              ]
            }
          }
        },
        "rewards":

      {     "function": "kaleidos:behave/barrel_full/place/place"   }

      }
      The gamescreen(function worked)

       
       
       
       
       
       
       

            Unassigned Unassigned
            Zai_yu_you Zai_yu_you
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: