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? }?) → RulesParameters
opts{ survival: boolean?, fall: boolean?, damage: boolean?, hunger: boolean?, anticheat: boolean?, day_cycle: boolean?, redstone: boolean? }Returns
RulesUsed in
`world.rules{ fall = 0 }` does not turn the rule off.API basics- Whether the sun moves is a rule: `world.rules{ day_cycle = true }` runsBlocks and terrain- On a `mode: full` world, and after `world.rules{ survival = true }`, theBlocks and terrain`world.rules{ redstone = false }` stops every signal in a room. See "RoomCustom blocks`world.rules{ survival = true }`.Game dataworld and after `world.rules{ survival = true }`: each kind spawns by theGame dataworld.rules{ fall = true } -- landings past three blocks cost healthRoom rulesworld.rules{ damage = true } -- the world hurts: void, fire, lava, drowning, suffocation, cactusRoom rules