The bug
When creating a loot table using any condition or function that uses "entity" a warning will appear:
Found validation problem in {minecraft:gameplay/fishing}.pools[0].entries[0].condition[0]: Parameters [<parameter minecraft:last_damage_player>] are not provided in this contextFound validation problem in {minecraft:gameplay/fishing}.pools[0].entries[0].condition[0]: Parameters [<parameter minecraft:last_damage_player>] are not provided in this contextA similar warning appears with "this", "killer_player", or "killer" and conditions/functions may fail or not work as intended.
One example loot table:
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:cod",
"weight": 1,
"conditions": [
{
"condition": "entity_scores",
"entity": "this",
"scores": {
"test_score": 1
}
}
]
}
]
}
]
}{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:cod",
"weight": 1,
"conditions": [
{
"condition": "entity_scores",
"entity": "this",
"scores": {
"test_score": 1
}
}
]
}
]
}
]
}
Only tool and position are available in fishing drops.