CommandExtras
Modby fonnymunkey
Simple utility mod to add some extra commands
Description
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:
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Advanced World Selection
Advanced World Selection lets you see detailed tooltips about your worlds in Minecraft's World Selection screen.
[MTS/IV] DKZ Industries
UNU and Trin Compatable! MTS Vehicle Pack
Auraddons
An addon mod for Ellpeck's Nature's Aura
Flan's Mod Ultimate Stability Edition
Project aimed at making Flan's Mod as stable as possible for 1.7.10.
Cobblemon O' Plenty
An addon for Cobblemon and Biomes O' Plenty that adds more compatibility between them
TFC Caelum
Making Caelum compatible with and use TerraFirmaCrafts calendar and season system