I want to create a map where you can build electronic machines and need to power them.
I want to make electronic furnace, disassembler, quarry, solar panel, power storage..
I can't execute a command that checks if a power storage has avaible power within 100 blocks, remove power from it, if success, adding fuel to furnace, mining, crafting...
I need to do 2 commands inside one command block, beacuse it executes for every machine and can't check whic machines successfully get power.
I think if i put 2 command block behind the machine, it works, but it's a not very good idea.
Found the answer: functions
what i wanted:
do this for every entity that needs power
check for power source in x range
if found, the machine is working
if not found, it isn't working
it's now possible with functions