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

Raider sub entity predicate cannot test for one of has_raid and is_captain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w13a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 2, 1.20.5 Pre-Release 3, 1.20.5 Pre-Release 4
    • None
    • Confirmed
    • Loot tables
    • Normal
    • 1222783
    • Expansion B

      The new raider entity sub predicate has two optional fields has_raid and is_captain. However unlike other (sub) predicates, these fields are of type boolean and default to false, instead of having type Optional<Boolean>.

      Consider the following predicate:

      {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
          "type_specific": {
            "type": "minecraft:raider",
            "has_raid": true
          }
        }
      }
      

      Expected behavior:
      The predicate tests that the raider is part of a raid, whether it is a captain or not

      Actual behavior:
      The predicate tests that the raider is part of a raid AND is not a captain.

            Unassigned Unassigned
            Misoloo [Helper] Misode
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: