You know about the annoying push and pull doors in real life and you can never get to open them on your first try. Well I kinda added that into Minecraft with command blocks. Now you have to either punch or interact with the door to open it... Which method is correct on which side, I have no idea lol
Please Subscribe for more weird command block stuff!
The command:
repeat: execute as @e[type=interaction,tag=push] on attacker run setblock -276 2 -56 minecraft:redstone_torch
chain: execute as @e[type=interaction,tag=push] run data remove entity @s attack
repeat: execute as @e[type=interaction,tag=pull] on target run setblock -276 2 -56 minecraft:redstone_torch
chain: execute as @e[type=interaction,tag=pull] run data remove entity @s interaction
repeat: execute if block -276 2 -56 minecraft:redstone_torch run scoreboard players add door timer 1
chain: execute if score door timer matches 20 run setblock -276 2 -56 air
conditional: scoreboard players reset door timer
You need to also add the scoreboard objective timer if you don't have it
Become A Member - / @vivtorsing
My Discord - / discord
Thanks for watching