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

Foxes drop equipment before loot (prevents loot tables checking for equipment in predicate)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.2, 22w13a, 22w16b, 1.19.2, 1.19.3, 1.19.4 Pre-release 4
    • None
    • Confirmed
    • Loot tables
    • Low
    • Platform

      This line of a fox's loot table:

      "conditions": [
                      {
                        "condition": "entity_properties",
                        "predicate": {
                          "nbt": "{HandItems:[{id:\"minecraft:wheat\"},{}],Type:\"red\",Sleeping:0b}"
                        },
                        "entity": "this"
                      }

       

      should check for a fox, holding wheat that is red and isn't sleeping. With the /loot command it works as if the mob is alive and holding the wheat. But when it is killed, it produces a different loot as the hand items are dropped before the loot table is processed. With other mobs, the hand items are consistent and can be read through the loot table to process the correct loot as the hand items are processed after the loot table instead of before.

       

            Unassigned Unassigned
            n1njag0 n1n (n1njag0)
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: