Syntax:
/execute loop range <range> run <command>
/execute loop condition <condition> run <command>
Examples:
/execute as @a at @s loop range 0..10 run summon sheep ~ ~ ~
---
in test:tick :
/execute as @a loop condition @s i < @s count run function test:loop
in test:loop :
/say hello!
/scoreboard players add @a i 1
Usage:
Helps to reduce the code size a lot.
Please sign in to leave a comment.
0 Comments