I've been trying to implement the all_slots_empty and any_slot_empty filters but it doesn't appear to be working for me at all.
I am trying to make it so an interaction will only occur if the player is holding nothing i.e. their hand is empty. However, using the example file below, the reaction always goes through regardless of if I am holding an item or not. Swapping it out for any_slot_empty has the same issue.
{
"format_version": "1.20.70",
"minecraft:entity": {
"description": {
"identifier": "chibimango:interact_test",
"is_summonable": true
},
"components": {
"minecraft:scale": {"value": 1},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {"all_of": [
{"test": "all_slots_empty", "value": "hand"}
]}
},
"swing": true,
"play_sounds": "pop"
}
]
}
}
}
}
Does anyone know what I might be missing or has run into similar issues?