MCMrARM / toolbox-issue-tracker

6 stars 0 forks source link

Suggestion - Editing Scripts #27

Open ghost opened 8 years ago

ghost commented 8 years ago

Toolbox.enableScript('testmod.js'); and ToolBox.disableScript('testmod.js'); Enable or disable a script ×

Toolbox.scriptStatus('testmod.js'); Return true if the mod is enabled, return false if the mod is disabled (using an if statement).

Toolbox.deleteScript('testmod.js'); Deletes a script ×

Toolbox.importScript(par1String); Imports a script, if possible find the sdcard using a defined variable in the ToolBox and if possible find the Download folder using a defined variable in the ToolBox, like those ChatColor variables, it would be like Toolbox.importScript('sdcard\download\testmod.js');

If this was possible, you could even make a custom ModPE Importer 😃 Or maybe a AutoUpdater 😃

× by asking the user using a alert popup.

slice commented 8 years ago

Let's not put all of the functions in ModPE, that namespace is too bloated and ugly.

Alternatives

ghost commented 8 years ago

Ok

TheBigHacker0100 commented 8 years ago

That would be awesome!!