Checks whether block coordinates or a position-bearing player/entity wrapper are inside the inclusive region bounds. Values are floored to block coordinates.
| Name | Type | Description |
|---|---|---|
x, y, z or entity | number or wrapper table | Supply all three coordinates, or a wrapper that provides pos(). |
A boolean indicating whether the target is inside.
on('move', function(e)
if myRegion:contains(e.player) then
e.player:send("You entered the zone!")
end
end)