does scoreboard condition not work with loot chests?

i got this in a loot table on a mob it works fine but in a chest its just empty is there a way for them both to work with scoreboard scores of the player

                "conditions": [
                    {
                        "condition": "entity_scores",
                        "entity": "killer_player",
                        "scores": {
                            "crate": 0
                        }
                    }
                ],

You cannot use entity_scores with chests as there is no entity value you can input to allow it to work.

killer_player is only used when a mob is killed, referencing the player that struck the mob in the last 3 seconds. killer is the entity that dealt the killing blow to the mob and doesn't have to be a player. this would be the mob that was killed.