Minecraft Blogs / Tutorial

Command Block Door Tutorial

  • 8,474 views, 5 today
  • 3
  • 0
  • 3
Maverick_May's Avatar Maverick_May
Level 28 : Expert Taco
11
*FOR A VIDEO GUIDE (RECOMMENDED) VISIT THIS LINK*

1. So basically make a 4 high and 3 wide space.

2. Place a command block wherever you want and type in the command:
scoreboard objectives add Door dummy Door

*In mosts of my tutorials I use scoreboards so I will use them again.*

3. Set up two blocks, one to open the door and one to close it.

4. On each of the two blocks place a command block behind them.

5. Once you have a command block behind each of the two
blocks look into the command block that you want to use to
OPEN the door and type: scoreboard players set @p Door 1

6. In the command block you want to CLOSE the door with
type: scoreboard players set @p Door 0

7. After that you need 12 spaced command blocks
(One for each block in the 3x4 space) you need
12 on each side (12 to open 12 to close).

8. On the side that you want to CLOSE the door, type this
command into the 12 commands: setblock (cordinates) (block type)

For example: setblock -2445 65 235 iron_block

9. On the side that you want to OPEN the door, type this
command into the 12 command blocks: setblock (cordinates) air

10. Once you have the total 24 command blocks (12 blocks per side)
you need to make a redstone loop (1 second perferably)
that connects to one set of the 12 commands blocks.

*You need this so the command blocks can constantly test for a player
with the score of either 0 (Door is closed) or 1 (Door is open)

11. On the OPEN side you need to type: testfor @p[score_Door_min=1]

12. On the CLOSE side you need to type: testfor @p[score_Door=0]
CreditMaverickHD From Youtube
Tags

Create an account or sign in to comment.

1
03/23/2014 11:09 am
Level 18 : Journeyman Engineer
creepershurt1995
creepershurt1995's Avatar
Look at the picture!
<----


*clap* *clap*
1
03/22/2014 11:21 am
Level 16 : Journeyman Button Pusher
aipoduhfoaifh
aipoduhfoaifh's Avatar
Nice tut
1
03/22/2014 11:30 am
Level 28 : Expert Taco
Maverick_May
Maverick_May's Avatar
Thanks, if you are a little bit confused I recommend watching the video.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome