How to make security cameras in Minecraft(BEDROCK)
ฝัง
- เผยแพร่เมื่อ 21 ส.ค. 2024
- Today i will show you how to make a system that cycles through security cameras with two items in your inventory.
NOTE: Make sure your delay in ticks in the command blocks are the same as mine.
NOTE: EVERYTHING IS Capital sensitive
COMMANDS:
/scoreboard objectives add Cam dummy Cam
/scoreboard objectives add On dummy On
/scoreboard players set @a Cam 0
/scoreboard players set @a On 0
/scoreboard players set @p Cam 1
/execute at @p run structure load Items ~ ~ ~ 0_degrees none true false false
/scoreboard players set @p On 1
/execute as @e[name=Exit] run scoreboard players set @p[scores={On=1}] Cam 0
/tp @p[scores={On=1}] YOURCOORDSHERE
/scoreboard players set @p On 0
/clear @p lime_concrete 0 1
/kill @e[name=Exit]
/execute as @e[name=Next] run scoreboard players set @p[scores={Cam=1, On=1}] Cam 2
/scoreboard players set @p On 0
/kill @e[name=Next]
/clear @p red_concrete 0 1
/execute at @p run structure load Items ~ ~ ~ 0_degrees none true false false
/execute as @e[name=Next] run scoreboard players set @p[scores={Cam=2,On=1}] Cam 3
/scoreboard players set @p On 0
/kill @e[name=Next]
/clear @p red_concrete 0 1
/execute at @p run structure load Items ~ ~ ~ 0_degrees none true false false
/execute as @e[name=Next] run scoreboard players set @p[scores={Cam=3,On=1}] Cam 1
/scoreboard players set @p On 0
/kill @e[name=Next]
/clear @p red_concrete 0 1
/execute at @p run structure load Items ~ ~ ~ 0_degrees none true false false
/execute as @p[scores={On=0, Cam=1..}] run clear @p lime_concrete 0 0
/scoreboard players set @p On 1
/execute at @e[name=Camera1] run tp @p[scores={Cam=1, On=1}] ~ ~ ~ ~30 ~10
/effect @p invisibility 2 2 true
/effect @e[name=Camera1] invisibility 100000 10 true
/execute at @e[name=Camera2] run tp @p[scores={Cam=2, On=1}] ~ ~ ~ ~ ~30
/effect @p invisibility 2 2 true
/effect @e[name=Camera2] invisibility 100000 10 true
/execute at @e[name=Camera3] run tp @p[scores={Cam=3, On=1}] ~ ~ ~ ~-30 ~10
/effect @p invisibility 2 2 true
/effect @e[name=Camera3] invisibility 100000 10 true