Skip to content

Activator WE_SELECTION_REGION

MaxDikiy edited this page Oct 18, 2017 · 1 revision

This activator is initiates when a player make a select using the WorldEdit plug-in.

To create this activator, use the command:

/react add WE_SELECTION_REGION <id> [min-blocks:<digit>] [max-blocks:<digit>] [type:<selectionType>]

Item Possible Values ​​ Description
[min-blocks] min-block:<digit> The minimum number of blocks in the selected area, at which the activator is launched
[max-blocks] max-block:<digit> Maximum number of blocks in the selected area, at which the activator is started. If set to 0, then the activator will work when selecting the whole world
[type] type:<selectionType> / ANY The activator is started when this type of selection is specified..

Temporary placeholders operating in this activator:

Placeholder Description
%selblocks% Shows the number of blocks in the selection.
%seltype% Displays the selection type.
%region% Coordinates of the region

Examples

  1. Visual identification of the region. You will see the area you selected.
WE_SELECTION_REGION:
  wesr:
    min-blocks: 0
    max-blocks: 10000
    type: CUBOID
    actions:
    - message=%selblocks%  
    - message=%region%  
    - message=%seltype%  
    - regex=input:{%region%} regex:{\-?\d+\.\d}
    - var_temp_set=id:x1 value:%group00%
    - var_temp_set=id:y1 value:%group10%
    - var_temp_set=id:z1 value:%group20%
    - var_temp_set=id:x2 value:%group30%
    - var_temp_set=id:y2 value:%group40%
    - var_temp_set=id:z2 value:%group50%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x1%,%y1%,%z1% loc2:world,%x2%,%y1%,%z1%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x1%,%y1%,%z1% loc2:world,%x1%,%y2%,%z1%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x1%,%y1%,%z1% loc2:world,%x1%,%y1%,%z2%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x2%,%y2%,%z2% loc2:world,%x1%,%y2%,%z2%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x2%,%y2%,%z2% loc2:world,%x2%,%y1%,%z2%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x2%,%y2%,%z2% loc2:world,%x2%,%y2%,%z1%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x1%,%y2%,%z1% loc2:world,%x2%,%y2%,%z1%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x2%,%y1%,%z1% loc2:world,%x2%,%y2%,%z1%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x1%,%y1%,%z2% loc2:world,%x1%,%y2%,%z2%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x1%,%y2%,%z1% loc2:world,%x1%,%y2%,%z2%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x2%,%y1%,%z1% loc2:world,%x2%,%y1%,%z2%
    - EFFECT=eff:REDSTONE type:burst dur:10s draw:line loc:world,%x1%,%y1%,%z2% loc2:world,%x2%,%y1%,%z2%
Clone this wiki locally