Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Top 3 ArmorStand rows for door
- /summon ArmorStand ~ ~-0.5 ~-18 {NoGravity:true,Invisible:true,Small:true,Marker:true,Tags:["GateStand"],Passengers:[{id:FallingSand,Block:stone,Tags:["FallingGateBlock"],NoGravity:true,DropItem:false,Time:-2147483648}]}
- Bottom ArmorStand row for door
- /summon ArmorStand ~ ~-0.5 ~-18 {NoGravity:true,Invisible:true,Small:true,Marker:true,Tags:["GateStand","BottomGateStand"],Passengers:[{id:FallingSand,Block:stone,Tags:["FallingGateBlock"],NoGravity:true,DropItem:false,Time:-2147483648}]}
- NOTE:
- Coordinates are specific to the world shown in the video. You will need to adjust them for your own design
- Hopper Clock for Sound (alternates between 2 identical command blocks)
- /execute @e[tag=BottomGateStand] ~ ~ ~ playsound entity.minecart.riding master @a ~ ~ ~ 0.3 0.6 0
- Activate redstone block and stop sounds
- 1. /fill -934 56 -718 -934 56 -717 glass (at Hopper Clock)
- 2. /stopsound @a
- 3. /execute @e[tag=BottomGateStand] ~ ~ ~ playsound block.enderchest.open master @a ~ ~ ~ 1 1 0
- 4. /execute @e[tag=BottomGateStand] ~ ~ ~ playsound entity.irongolem.hurt master @a ~ ~ ~ 0.8 0.6 1
- ---> After stopping sound, system runs through repeaters and activates UP or DOWN chain clock
- UP CHAIN CLOCK
- 1. Despawn time for FallingSand gets reset
- /entitydata @e[tag=FallingGateBlock] {Time:-2147483648}
- 2. Door moves up
- /tp @e[type=ArmorStand,tag=GateStand] ~ ~0.01 ~
- 3. Activate Sounds at Hopper Clock
- /fill -934 56 -718 -934 56 -717 quartz_block
- 4. Place barriers so player cannot walk though door
- /execute @e[typeArmorStand,tag=GateStand] ~ ~ ~ fill ~ ~ ~ ~ ~ ~ barrier 0 replace air
- 5. Remove barriers as door rises
- /execute @e[typeArmorStand,tag=BottomGateStand] ~ ~ ~ fill ~ ~-0.5 ~ ~ ~-0.5 ~ air 0 replace barrier
- 6. Door checks for bedrock at high point
- /execute @e[typeArmorStand,tag=GateStand] ~ ~ ~ testforblock ~ ~1 ~ bedrock
- 7. CONDITIONAL -> System shut off when door reaches bedrock (top)
- /setblock ~ ~ ~-7 air
- 8. CONDITIONAL -> Stops sound (see SOUNDSTOPPER)
- /setblock ~-4 ~ ~1 redstone_block
- DOWN CHAIN CLOCK
- 1. Despawn time for FallingSand gets reset
- /entitydata @e[tag=FallingGateBlock] {Time:-2147483648}
- 2. Door moves down
- /tp @e[type=ArmorStand,tag=GateStand] ~ ~-0.01 ~
- 3. Activate Sounds at Hopper Clock
- /fill -934 56 -718 -934 56 -717 quartz_block
- 4. Place barriers so player cannot walk though door
- /execute @e[typeArmorStand,tag=GateStand] ~ ~ ~ fill ~ ~ ~ ~ ~ ~ barrier 0 replace air
- 5. Door checks for orange wool at low point
- /execute @e[typeArmorStand,tag=BottomGateStand] ~ ~ ~ testforblock ~ ~-1 ~ wool 1
- 6. CONDITIONAL -> System shut off when door reaches orange wool bottom
- /setblock ~ ~ ~-7 air
- 7. CONDITIONAL -> Door jumps 0.02 blocks from bottom (so floor is not removed)
- /tp @e[type=ArmorStand,tag=GateStand] ~ ~0.02 ~
- 8. CONDITIONAL -> Stops sound (see SOUNDSTOPPER)
- /setblock ~-2 ~ ~ redstone_block
- SOUNDSTOPPER
- 1. /fill -934 56 -718 -934 56 -717 glass
- 2. Repeater
- 3. /stopsound @a
- 4. /execute @e[tag=BottomGateStand] ~ ~ ~ playsound entity.irongolem.hurt master @a ~ ~ ~ 0.8 0.6 1
- 5. /execute @e[tag=BottomGateStand] ~ ~ ~ playsound block.enderchest.open master @a ~ ~ ~ 1 1 0
- See video for more detail:
- https://www.youtube.com/watch?v=5Dg64qPGQTA
Advertisement
Add Comment
Please, Sign In to add comment