Code: Select all
/c game.local_player.insert{name="iron-plate", count=100}; game.local_player.insert{name="coal", count=100}
Code: Select all
/c game.local_player.insert{name="iron-plate", count=100}; game.local_player.insert{name="coal", count=100}
Code: Select all
local commands table = nil
commands_table["name"] = {}
commands_table["name"].command = "what_to_enter_in_console"
commands_table["name"].help = "helpstring"
commands_table["name"].func = function(commandstuff)
local pid = commandstuff.player_index
end
for _, cmd in pairs(commands_table) do
commands.add_command(cmd.command, cmd.help, cmd.func)
end