84
Hello everybody! Today, I will present you how to make a working military checkpoint with functional barrier and machine gun. Watch the video first and after look at the instructions.
1/ How to make a working barrier

1: /clone X Y Z X Y Z X Y Z replace
X Y Z : first coordinates (with the smallest values)
X Y Z : second coordinates (with the biggest values)
These represent the area to clone.
X Y Z : third coordinates
The coordinates to where to clone.
replace : delete the blocks before.
1;2;3;4;5;6;7;8;9 : the different steps of the barrier's movement.
(I will make a clone tutorial soon)
2: /testforblock X Y Z lever N (CommandBlock: repeat ; always active)
X Y Z : coordinates of the lever
N : the value of the lever
-if the lever is "on": 1 (east), 2 (west), 3 (south), 4 (north)
-if the lever is "off" you add 8 to the value: 9 , 10, 11, 12.
(To see the direction of the lever use fn 3 and point the lever, after re use fn 3 to come back at the normal mode)
2/ How to make a working machine gun
1: /kill @e[type=Arrow,score_MGBK_min=1] (CommandBlock: repeat ; always active)
Kill the arrow with the MGBK score.
2: /scoreboard objectives add MGBK dummy
Add the MGBK score.
3: /scoreboard players set @e[type=Arrow,name=MGB] MGBK 1 {inGround:1b} (CommandBlock: repeat ; always active)
Set the score MGBK to 1 for the arrows with MGB custom name (the arrows who sent the MG) and which are in the ground.

1: /testforblock X Y Z lever N (CommandBlock: repeat ; always active)
Come back to 1/ 1:
2: /summon Arrow X Y Z {Motion:[5.0,-0.1,0.0],CustomName:"MGB"}
Summon Arrow with motion (direction and movement) from the MG.
X Y Z : coordinates where you summon the arrow.
I hope this tutorial will help you. Thanks for watching and reading, bye and good craft!
Thank you very much!
1/ How to make a working barrier

1: /clone X Y Z X Y Z X Y Z replace
X Y Z : first coordinates (with the smallest values)
X Y Z : second coordinates (with the biggest values)
These represent the area to clone.
X Y Z : third coordinates
The coordinates to where to clone.
replace : delete the blocks before.
1;2;3;4;5;6;7;8;9 : the different steps of the barrier's movement.
(I will make a clone tutorial soon)
2: /testforblock X Y Z lever N (CommandBlock: repeat ; always active)
X Y Z : coordinates of the lever
N : the value of the lever
-if the lever is "on": 1 (east), 2 (west), 3 (south), 4 (north)
-if the lever is "off" you add 8 to the value: 9 , 10, 11, 12.
(To see the direction of the lever use fn 3 and point the lever, after re use fn 3 to come back at the normal mode)
2/ How to make a working machine gun

Kill the arrow with the MGBK score.
2: /scoreboard objectives add MGBK dummy
Add the MGBK score.
3: /scoreboard players set @e[type=Arrow,name=MGB] MGBK 1 {inGround:1b} (CommandBlock: repeat ; always active)
Set the score MGBK to 1 for the arrows with MGB custom name (the arrows who sent the MG) and which are in the ground.

1: /testforblock X Y Z lever N (CommandBlock: repeat ; always active)
Come back to 1/ 1:
2: /summon Arrow X Y Z {Motion:[5.0,-0.1,0.0],CustomName:"MGB"}
Summon Arrow with motion (direction and movement) from the MG.
X Y Z : coordinates where you summon the arrow.
I hope this tutorial will help you. Thanks for watching and reading, bye and good craft!

Tags |
tools/tracking
3616361
6
how-to-make-a-working-military-checkpoint-barriermg
Create an account or sign in to comment.