Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-54162

Loot tables ignore entity_properties condition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.15.0.54 Beta, 1.14.0.2 Beta
    • None
    • Confirmed
    • Windows
    • 393841

      I changed the loot table of chicken (loot_tables/entities/chicken.json) to the following content:

      {
          "pools": [
              {
                  "conditions": [
                      {
                          "condition": "entity_properties",
                          "entity": "this",
                          "properties": {
                              "on_fire": true
                          }
                      }
                  ],
                  "rolls": 1,
                  "entries": [
                      {
                          "type": "item",
                          "name": "minecraft:cobblestone",
                          "weight": 1
                      }
                  ]
              }
          ]
      }
      

      I expected the chicken not dropping anything when I killed it with a normal sword without fire aspect.

      However, the chicken always drop a cobblestone whatever I used to kill it.

            SPGoding [Mod] SPGoding
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: