You don't need any redstone for this. Build a chain of command blocks (see included screenshot for the command block layout) and paste the following commands in them (in order):
scoreboard players add global timer 1execute if score global timer matches 12000.. run effect give @a minecraft:saturation 1 5 true
execute if score global timer matches 12000.. run scoreboard players reset global timer
before you run the chain, create the scoreboard objective by running this command in chat:
/scoreboard objectives add timer dummyand adjust the effect values.
the number 12000 is in-game ticks. To calculate how many ticks are needed for 10 minutes:
10 mins * 60 seconds = 600 seconds
1 real-life second = 20 Minecraft ticks so 600 * 20 = 12000 ticks
Today
Explore
When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.
Save
From
youtube.com
Mojang hasn't added a command for a timer yet! So I teach you how to make one with Commands in this video!↓ Join my Discord! - All of my scripts and models c...
James
More information
HOW TO MAKE A TIMER WITH COMMAND BLOCKS IN MINECRAFT 1.15.2 [NO MODS] - YouTube
Find this Pin and more on Minecraft by James.
Minecraft 1
Minecraft Crafts
Scripts
Discord
Command
Timer
Mod
Teaching
Novelty Sign
More information
HOW TO MAKE A TIMER WITH COMMAND BLOCKS IN MINECRAFT 1.15.2 [NO MODS] - YouTube
Find this Pin and more on Minecraft by James.
More like this
This is a nice and simple timer using scoreboard tehnology. When you want to activate the timer,just place a redstone block next to the repeating command block (the purple one). Again, when you want to activate the timer reset,just place a redstone block next to the impulse command block (the orange one). Have a nice day and have fun coding! ;) Lol,i forgot how to show the timer: /scoreboard objective setdisplay sidebar Timer
The command
Note: Minify the command to avoid issues :)
Created: Mon, 03 Jul 2017 09:15:46, Updated: Tue, 03 Aug 2021 10:49:04, Views: 5832
Share on: | &nbsp;</td> <td><div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1403005419998375&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));<div class="fb-like" data-width="320" data-layout="standard" data-action="like" data-show-faces="false" data-share="true"></div></td> </tr> </table> </div> </div> <div class="row"> <div class="col-md-12"> <section id="moaw"> <input type="hidden" name="IL_IN_ARTICLE"> <div id="adcontainer-3"></div> <script> window.top.__vm_add = window.top.__vm_add || []; //this is a x-browser way to make sure content has loaded. (function(success) { if(window.document.readyState !== "loading"){ success(); } else { window.document.addEventListener("DOMContentLoaded", function(){ success(); }); } })(function(){ var placement = document.createElement("div"); placement.setAttribute("class", "vm-placement"); if(window.innerWidth > 1080){ //load desktop placement placement.setAttribute("data-id", "59b1025f46e0fb00016a7b77"); } else { //load mobile placement placement.setAttribute("data-id", "59b11df246e0fb00012e46b8"); } document.querySelector("#adcontainer-3").appendChild(placement); window.top.__vm_add.push(placement); }); |