Guide 1 Docs 2 Reference 3

Function of World

world.rules

world.rules{ fall = true } switches one on, false off; a rule left out or nil keeps its value, and a number or a string is an error. world.rules() reads them.

world.rules(opts: { survival: boolean?, fall: boolean?, damage: boolean?, hunger: boolean?, anticheat: boolean?, day_cycle: boolean?, redstone: boolean? }?) → Rules

Parameters

opts{ survival: boolean?, fall: boolean?, damage: boolean?, hunger: boolean?, anticheat: boolean?, day_cycle: boolean?, redstone: boolean? }optional

Returns

Rules

Used in