/execute if block ~6 ~1 ~-3 minecraft:polished_blackstone_button[powered=true] at @e[type=minecraft:armor_stand,tag=Gena] run setblock ~ ~ ~-1 minecraft:redstone_block
/execute at @e[type=minecraft:armor_stand,tag=Gena] if block ~6 ~1 ~-3 minecraft:polished_blackstone_button[powered=true] run setblock ~ ~ ~-1 minecraft:redstone_block
Are you trying to detect the button relative to the armor stand, then place the redstone block relative to its position as well? If so your second command should work. Maybe double check your coordinates? Unless I've misunderstood what you're trying to do; it would help if you could elaborate.
I tryed this 2 commands but it not works:
/execute if block ~6 ~1 ~-3 minecraft:polished_blackstone_button[powered=true] at @e[type=minecraft:armor_stand,tag=Gena] run setblock ~ ~ ~-1 minecraft:redstone_block
/execute at @e[type=minecraft:armor_stand,tag=Gena] if block ~6 ~1 ~-3 minecraft:polished_blackstone_button[powered=true] run setblock ~ ~ ~-1 minecraft:redstone_block
What`s wrong? Can smb help?
Are you trying to detect the button relative to the armor stand, then place the redstone block relative to its position as well? If so your second command should work. Maybe double check your coordinates? Unless I've misunderstood what you're trying to do; it would help if you could elaborate.