Skip to content

Set to Random Location

Use Set to Random Location with the ordered inputs below.

Set Variable → Operations → Choose Operation → Location. Requires Dev access to configure, then a successful compile to activate.

Input Type Role Requirement Default / constraint
Result Location Variable binding Required Required
First Location Value Required Required
Second Location Value Required Required

Stores the result in the first configured destination Variable. Its type must match the result and any generic element/key types.

Block: Set Variable → Operations
Operation: Set to Random Location
Result: Private Location result
First: Location A in the play area
Second: Location B, one block east of A

Use this as an editor configuration: declare any Variables/collections first and choose real locations/eligible targets for your plot. It is not pasteable source code.

Use locations and entities in the current plot. World-changing behavior cannot edit protected code areas or escape plot bounds.

Runtime validation: Location coordinates must be finite.

Reference identifier: location.random.