Folia - Object Owned by Current Region (Condition) — SkBee

Addon: SkBee · Category: Condition · Since: 3.10.0

Syntax

%entities/blocks/locations% (is|are)[n't] owned by current region

Description

Returns whether the current thread is ticking a region and that the region being ticked owns the entity/block/location/chunk at the specified world/position as included in the specified object. The chunk pattern accepts Chunk X/Z, not world position. This is useful to check before manipulating entities/blocks/ect which may not be in the same region as the caller.

Examples

on break:
	if block at location(1,1,1) is owned by current region:
		set block at location(1,1,1) to stone

View source