A timer function you can use in your builds! This is an essential thing to know if you are making maps, data-packs, command block structures, or just playing around. Make sure you leave a like on the video if you enjoyed. If you have any ideas for other videos like this, let me know by sending a message in my discord server!
⬇⬇𝗖𝗢𝗠𝗠𝗔𝗡𝗗𝗦⬇⬇
► Run in chat:
/give @s command_block
/scoreboard objectives add timer dummy
↓↓ (Optional to make the scoreboard visible) ↓↓
/scoreboard objectives setdisplay sidebar timer
► Repeating command blocks:
↓↓ (Needs redstone) ↓↓
scoreboard players add [your-ign] timer 1
↓↓ (Always active) ↓↓
execute as @a[scores={timer=202}] run scoreboard players set @s timer 201
execute as @a[scores={timer=1}] run say You have 10 seconds
execute as @a[scores={timer=200}] run say Times up!
↓↓ (Use these if you want the title. Always active) ↓↓
execute as @a[scores={timer=1}] run title @s subtitle {"text":"10 seconds!","italic":true,"color":"green"}
execute as @a[scores={timer=1}] run title @s title {"text":"GO!","italic":true,"color":"green"}
execute as @a[scores={timer=200}] run title @s subtitle {"text":"Time's up!","italic":true,"color":"red"}
execute as @a[scores={timer=200}] run title @s title {"text":"STOP!","italic":true,"color":"red"}
► Impulse Command block (Needs redstone):
scoreboard players set @a timer 0
𝗪𝗮𝘁𝗰𝗵 𝗺𝗲 𝗼𝗻 𝘁𝘄𝗶𝘁𝗰𝗵 twitch.silentassassins.net
𝗝𝗼𝗶𝗻 𝗺𝘆 𝗗𝗶𝘀𝗰𝗼𝗿𝗱 if you have video suggestions, or if you want to stay up-to-date with my videos: discord.silentassassins.net
To edit my videos, I use Openshot: www.openshot.org/
#commandblock #minecraftcommand
Негізгі бет Ойындар How to Make a Timer Using Command Blocks
Пікірлер: 47