Repeater Loop | MCreator

Subscribers:
13,000
Published on ● Video Link: https://www.youtube.com/watch?v=p_SWAwdZJgM



Minecraft
Game:
Minecraft (2011)
Duration: 8:08
418 views
19


Today we will be taking a look at repeater loop blocks. This block runs the entire script inside the loop in a single tick. One thing to note is this is not ideal for triggers that tick due to it running everything all in a single tick. However, things like right-click actions or other single-trigger procedures can work pretty good.

Though this is part of the loop family, there is not too much difference code-wise between a while loop and a repeater loop. The only main difference is the method for the loop. While loops are condition-based and are frankly harder for beginners to work with repeater loops will only run a set amount of times before stopping the loop.

In my test, before I made this video I found that making an area script like I shown in this video has just a few different lines of code when doing something with while loops, the length was about the same almost identical script. So as far as efficiency either one would work there is no pro for using one over the other, but repeat loops are easier to work with than while loops and for most things you can mostly get away with using a simple repeater loop.

I will cover while loops next week so stay tuned for that video as we did some pretty neat stuff using the sister block for the repeater!

► CHAPTERS
0:00 - Intro
0:04 - The basics
1:00 - Simple example
2:04 - Simple in-game example
3:03 - Advanced example
6:32 - Advanced in-game example
7:47 - Outro

► OFFICIAL SITES
● NorthWestTrees Gaming
https://www.northwesttreesgaming.com
● Discord Server Page
https://www.northwesttreesgaming.com/discord

► TAGS
#northwesttreesmcreator
#mcreatortutorial
#mcreator
#modding
#mods
#tutorial







Tags:
northwesttrees
mcreator
nwtm
tutorials
tutorial
guide
guides
procedures
procedure
block
blocks
repeat
repeater
loop
looping
loops
looper
while
how
to
make
something
more
than
one
time
number
of
times
in
code
example
in-game
examples



Other Statistics

Minecraft Statistics For NorthWestTrees MCreator

There are 2,644,673 views in 567 videos for Minecraft. This game accounts for over 5 days of watchable video on his channel, or 89.53% of the total watchable video for Minecraft on NorthWestTrees MCreator's YouTube channel.