Key Card
I was trying to come up with a key card system for my data pack. I thought I had a brilliant idea of having the game look for an item in a blast furnace to trigger the button appearing to turn the system on and off.
execute if block -18172 81 5502 minecraft:blast_furnace[facing=south,lit=false]{Items:[{Slot:0b,count:1,id:"minecraft:trial_key"}],RecipesUsed:{},cooking_time_spent:0s,cooking_total_time:0s,lit_time_remaining:0s,lit_total_time:0s} run setblock -18172 80 5501 minecraft:crimson_button[face=wall,facing=north,powered=false]Is it not possible to test for block information like this?