Defining Settings
Setting Types
BooleanSetting
const enabled = new BooleanSetting(script, "Enabled", "Whether the feature is active.", true);
// Reading the value
if (enabled.getValue()) {
// do something
}IntSetting
const delay = new IntSetting(script, "Delay", "Ticks between actions.", 5, 0, 20);
// With a slider step
const speed = new IntSetting(script, "Speed", "Movement speed multiplier.", 10, 0, 100, 5);
var value = delay.getValue(); // numberDoubleSetting
ModeSetting
RangeSetting
Subgroups
Conditional Visibility
Last updated