194: Two stage sliding door using a timer. [Minecraft Map Making]
Ep194: Using a timer to control the movements of a sliding door. The door slides back into the wall and then to the left to allow players to pass.
Java Version: 1.19
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ
Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/amU84KykEu
The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.
Commands used:
Setup:
IUN: scoreboard objectives add timer dummy
Remove door:
IUN: execute as @e[tag=door] at @s run tp @s ~ -2112 ~
Create Door:
IUN: summon armor_stand ~ 54.5187 ~2 {Tags:["door"], NoGravity:true, Invulnerable:true, Invisible:true, Passengers:[{id:"minecraft:shulker", NoAI:true, Silent:true, NoGravity:true, Invulnerable:true, Tags:["door"], DeathLootTable:"empty", ActiveEffects:[{Id:14, Amplifier:0, Duration:99999999, ShowParticles:false}]}, {id:"minecraft:falling_block", NoGravity:true, Time:-99999999, DropItem:false, Tags:["door"], BlockState:{Name:"minecraft:light_gray_wool"}}]}
CUA: summon armor_stand ~ 54.5187 ~2 {Tags:["door"], NoGravity:true, Invulnerable:true, Invisible:true, Passengers:[{id:"minecraft:shulker", NoAI:true, Silent:true, NoGravity:true, Invulnerable:true, Tags:["door"], DeathLootTable:"empty", ActiveEffects:[{Id:14, Amplifier:0, Duration:99999999, ShowParticles:false}]},{id:"minecraft:falling_block", NoGravity:true, Time:-99999999, DropItem:false, Tags:["door"], BlockState:{Name:"minecraft:light_gray_wool"}}]}
Open door:
RUN: scoreboard players add #door timer 1
CUA: execute if score #door timer matches 41.. run setblock ~ ~ ~-2 white_wool replace
CCA: scoreboard players reset #door timer
CCA: data merge block 33 56 287 {Command:"setblock 35 56 289 redstone_block replace"}
CUA: execute if score #door timer matches 0..20 run execute as @e[tag=door] at @s run tp @s ~ ~ ~0.05
CUA: execute if score #door timer matches 21..40 run execute as @e[tag=door] at @s run tp @s ~0.05 ~ ~
Open door:
RUN: scoreboard players add #door timer 1
CUA: execute if score #door timer matches 41.. run setblock ~ ~ ~-2 white_wool replace
CCA: scoreboard players reset #door timer
CCA: data merge block 33 56 287 {Command:"setblock 33 56 289 redstone_block replace"}
CUA: execute if score #door timer matches 21..40 run execute as @e[tag=door] at @s run tp @s ~ ~ ~-0.05
CUA: execute if score #door timer matches 0..20 run execute as @e[tag=door] at @s run tp @s ~-0.05 ~ ~
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 182,428 views spread across 865 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.