computercraft.settings
– ComputerCraft settings module#
This device is a representation of the settings module as an external device.
Available methods#
- computercraft.settings.set(name, value)#
Set the value of a setting.
- Parameters:
name (
string
) – Name of the setting to set.value – Value of the setting to set, being anything but
nil
.
- computercraft.settings.unset(name)#
Unset a setting.
- Parameters:
name (
string
) – Name of the setting to unset.
- computercraft.settings.get(name)#
Get the value of a setting.
- Parameters:
name (
string
) – Name of the setting to get.- Returns:
Value of the setting, or default value for the setting.
Events#
This device does not raise events.