MC Modder Script (MCMS) - maximaximal/Minecraft-Modder GitHub Wiki
What is MCMS?
MCMS is a simple and very easy to learn language to define, how a mod is installed. The interpreter is written in PHP (to be able to run on a cheap hosted webspace) and will execute the code using the given installAPI functions.
Speed
This construct is not really fast. It isn't designed to be fast, but to be practicable and simple. The code will be parsed using some explode() functions and the main functions of the installAPI. PHP interprets the text semicolon for semicolon ("line for line") and then word for word. Simple concept, isn't it?
Commands
The commands are just the same as those in the installAPI, but they have to be interpreted from the script. So here are all implemented functions (for now)
ExtractToJar
ExtractToJar file folder
file Defines the name of the wanted file (a zip, of course!)
folder 2 choices here: modding or database. The database is the hosted directory of mods on the server and the modding dir is the work/Process-Number/modding/ directory (which will be packed to the download.zip, don't forget to delete your mod files!)
log
log Message to Log
This function logs the line to the script-log-file. The message will be written. Technically, it writes all words after "log" into the log.
end
end true/false
No semicolon! This ends the script, and the interpreter will immediate stop his job. The state (true/false) will be written to the log.
GetMod
GetMod From To Option
From The source (URL) of the mod-file.
To The file-name it will be saved in
Option true/false - Defines if this should overwrite, if the file is already there. If false and the file is there, an error will be written to the log.