EXEC

EXEC(<file.txt>,[taskname],[params],...)

Type: Action

Category: Mod related

Permission: N/A

Since Minecraft Version: v1.1

Since Version: v0.8.5

Minor: 8

API: N/A

Patch: 5


Description

Creates a task by running the specified script file.

The task name can be used by STOP to stop this script, or by ISRUNNING to check if it is active.

The params will be provided to the script as either variables (&var1, &var2, &var3, ...) or parameters ($$[1], $$[2], $$[3], ...).


Changelog
  • Added em v0.8.5:
  • Fixed em v0.14.1: EXEC parameter requests leaked into macros using PROMPT
  • Fixed em v0.14.1: Arguments can now be accessed as variables with the correct type
  • Fixed em v0.9: Parses the parameters correctly