Bound - Create (Section) — SkBee

Addon: SkBee · Category: Section · Since: 2.5.3, 2.10.0 (temporary bounds)

Syntax

create [a] [new] [temporary] [full] bound with id %string% (within|between) %block/location% and %block/location%

Description

Create a bound within 2 locations. This can be used as an effect and as a section. Optional value `temporary` creates a bound which persists until server stops (not saved to file). Optional value `full` will mark the bound to use the world's min/max height. These optional values can be used together. **SPECIAL NOTE**: - When using locations = The bound created will use the locations you pass thru - When using blocks = The bound created will extend the x/y/z axes by 1 to fully include those blocks.

Examples

# Create bounds using locations
create bound with id "le-test" between {_1} and {_2}:
	set bound value "le-value" of event-bound to 52
	set bound owner of event-bound to {_p}
create a new bound with id "%uuid of player%.home" between {loc1} and {loc2}
create a temporary bound with id "%{_world}%.safezone-%random uuid%" between {loc1} and {loc2}
create a full bound with id "spawn" between {loc} and location of player

# Create bounds using blocks
create bound with id "my_home" within block at player and block 10 above target block
create bound with id "le_bound" within {_block1} and {_block2}
create a new bound with id "%uuid of player%.home" between {block1} and {block2}

View source