Hi, trying to learn the command system for data packs. if I want to execute a command that affects entities except for those that meet a certian condition how would I do that. The simple way, as I understand it, would be to run a command with a specified type, such as: kill @e[type:], or to use a team tag; however this is not my goal. I want to kill all entities not on a specific block type, so like: kill @e ( condition = false ), in this case
condition = block @e ~ ~-1 ~ (type of block)
simply put: I want to test to see if a condition is true or false and plug that into a function.
I considered using .json files to act as a sort of variable, but there are very limited resources for that concerning data packs