SquidUtils scripting

SquidUtils will read a script from "config/SquidUtils/script.txt" on startup. The commands in this script can be used to trigger certain reactions if an event occurs, or to fine-tweak certain aspects of the game.

General Syntax
Each command spans one line, the commands are terminated by a newline. The command and its arguments are generally separated by blank spaces. Refer to below for the synax on specific commands.

Lines starting with '#' are ignored as comments.

on
With this command you can trigger certain actions to happen if a certain condition is met.

Syntax: on [trigger] [argument]:[value];[argument]:[value];... [action] The event arguments are separated by ';' and are optional. There must be no spaces around ';' and ':'.

The following triggers are available:
 * entityjoin
 * hurt
 * smelt
 * craft
 * toss
 * heal
 * teleport
 * starve
 * achievement
 * hungerregen
 * interaction
 * explosion
 * command
 * chat

The following event arguments are available:
 * minamount:[amount]
 * maxamount:[amount]
 * minhealth:[value]
 * maxhealth:[value]
 * minarmor:[value]
 * maxarmor:[value]
 * minchance:[percent]
 * maxchance:[percent]
 * item:[item name]
 * entitytype:[entity type name]
 * chattrigger:[string]
 * commandname:[name]
 * hasperm:[permission]
 * missingperm:[permission]

The following actions with their respective arguments are available:
 * explode [strength]
 * damage [amount]
 * applyeffect [potion ID] [duration] [level]
 * addexperience [amount]
 * cancel
 * sprint
 * setinvisible
 * difficulty [value]
 * cleareffects
 * placeblock [block name]
 * burn [duration]
 * sethunger [value]

Other mods can add custom triggers, arguments and actions using SquidUtils' API.