promotional bannermobile promotional banner

CommandExtras

Simple utility mod to add some extra commands

Adds extra utility commands that are useful for more complicated command handling.

Currently adds two commands, CommandDelay and CommandChain.
CommandDelay allows you to run a defined command after a specified tick delay instead of instantly.
CommandChain allows you to run multiple defined commands in order from a single command input including other nested chains or delays.

Usage:

CommandDelay:
"/commanddelay <ticks> <entity> <x> <y> <z> <command>"
Ticks being how many ticks to wait before executing the specified command.
Entity and coordinate arguments allow for defining what entity should be the sender of the command, following the same handling as the Vanilla "/execute" command.

CommandChain:
"/commandchain <entity> <x> <y> <z> <command1> &&0 <command2> &&0 ... (&&1 &&2 etc for nested chains)"
Entity and coordinate arguments follow the same as above.
Commands to be chained are separated with the identifier "&&0".
If you nest additional CommandChains, increase the value of the separator identifier for each further layer of nesting.

Combined Example:
"/commandchain @p ~ ~ ~ gamemode 1 @p &&0 commanddelay 100 @p ~ ~ ~ commandchain @p ~ ~ ~ gamemode 0 @p &&1 weather clear"

This example combines CommandChain with CommandDelay, it will first set the senders gamemode to creative, then wait 5 seconds, then set the senders gamemode to survival and set the weather to clear.

This mod is only needed server-side.

Created on commission from xkforce.



Need to get in contact with me, or want to support me? Click the badges below:



Need a server? Click the banner below and use code "fonny" for 25% off your first month with Bisect Hosting:

The CommandExtras Team

profile avatar
  • 80
    Followers
  • 35
    Projects
  • 191.6M
    Downloads
Donate

More from fonnymunkeyView all