Guide 1 Docs 2 Reference 3

Function of World

world.zone

Makes a box of blocks, both corners included, that knows who is in it; checked once a tick by feet position. Ends with the script.

world.zone(opts: { from: Vec3, to: Vec3, on_enter: ((player: Player) -> ())?, on_leave: ((player: Player) -> ())? }) → Zone

Parameters

opts{ from: Vec3, to: Vec3, on_enter: ((player: Player) -> ())?, on_leave: ((player: Player) -> ())? }required

Returns

Zone

Used in