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

Loot tables ignore entity_properties condition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.14.0.2 Beta
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Platform:
      Windows 10 - PC

      Description

      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.

        Attachments

          Activity

            People

            • Reporter:
              SPGoding [Helper] SPGoding
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: