Mojira Archive
MC-249889

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

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.

 

Unresolved

n1n (n1njag0)

2022-04-04, 11:55 PM

2023-08-23, 11:59 AM

4

1

Confirmed

Low

Platform

Loot tables

1.18.2 - 1.19.4 Pre-release 41.18.2, 22w13a, 22w16b, 1.19.2, 1.19.3, 1.19.4 Pre-release 4

-