Download (2 KB)

How do I install this?

DevTools

This gives some comands (actually 2 commands) that allows to modify the world, like changing variables contents or calling functions

/exec

This command can call functions like core.chat_send_player("singleplayer", "[SYS] Hi!"), if this command has no params, it will start with a gui, else it will call the specified function like: /exec core.chat_send_all("Hi!")

/modvars

This is the same as /exec, but this modify variables, like: /modvars default {}, the default is a variable of a mod, a table, and {} is the new content that will had default, this command does the same as _G[name_of_variable] = new_contents, Eg: _G["default"] = {}.

Running without params gives a gui, else it modify the specified var with specified contents.

Note: This can not modify local variables of mods! Only globals like default!. Also, the modvars can not be secure! it may crash or bug the world or it wont modify the variable, if changing variable to be a table or number may not be secure and it will set as string, better use /exec variable = contents

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.