cmdrepeat - RedWirePlatinumTwo/RedWiresMinecraftMod GitHub Wiki

Parameters

  • [timestorepeat] - The amount of times to repeat the command. Maximum 1,000.
  • [cmdmessage] - The command to repeat. Using [iterator] within a command string will replace [iterator] with the iteration number for the command loop. (ex: using /cmdrepeat 4 "give @s apple [iterator]" will give you 10 apples since it gives 1,2,3, then 4 apples)
  • stop - Ends all looping commands (if using 1 tick delay)

Optional Parameters

  • [shouldtick] - whether or not the command to be repeated should have a 1-tick delay between each repetition. true by default.

Description

  • Executes [cmdmessage] [timestorepeat] times with a 1-tick wait delay.
  • Requires cheats: yes

Change History

  • 3.8.0: Introduced command.
  • 3.8.3: Reduced max command use times from 50,000 -> 1,000.
  • 3.8.3: The command will not execute if it uses the same command.
  • 4.4.5: This command will now wait 1 tick between each command repeat instead of repeating the same command all at once.
  • 4.4.5: Increased max command use from 1,000 -> 1,200.
  • 4.4.6: Fixed command repeater thing being dumb.
  • 4.4.6: Added an [entity] command because commands with execute as or execute at or anything of that sort will not work.
  • 4.4.7: Repeating commands effecting multiple entities no longer effect one entity at a time.
  • 4.4.7: A command repeating for a specific entity will stop if the entity dies.
  • 4.5.0: Removed the [entity] parameter.
  • 4.5.0: The command message now has to be in quotes to work.
  • 4.5.1: Added the [delaytime] parameter.
  • 4.5.1: Removed the whole "using a cmdrepeat within a cmdrepeat" limit. You may now use multiple cmdrepeats within cmdrepeats at your own risk.
  • 4.5.3: The first command repeated is no longer slightly delayed.
  • 5.1.0: Using [iterator] within a command string will replace [iterator] with the iteration number for the command loop.
  • 5.1.2: Added the stop sub-command.
  • 5.1.2: Changed delaytime to tickdelay.
  • 5.1.3: FUCK
  • 5.1.4: Revived the stop sub-command :)
  • 5.2.0: Increased max command use from 1,200 -> 50,000.
  • 6.0.0: This command can no longer be used to execute sub-commands that players should not have permissions to use (ex: kick, ban). Additionally, tickdelay has been renamed to shouldtick.
⚠️ **GitHub.com Fallback** ⚠️