From 328b6347fee80546fbf5dc84d28fab9f0fe53e8c Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 15 Dec 2016 18:51:50 +1100 Subject: [PATCH] Updated WorldEdit FAWE mask list (markdown) --- WorldEdit---FAWE-mask-list.md | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/WorldEdit---FAWE-mask-list.md b/WorldEdit---FAWE-mask-list.md index e8a8987..0a31111 100644 --- a/WorldEdit---FAWE-mask-list.md +++ b/WorldEdit---FAWE-mask-list.md @@ -1,11 +1,20 @@ # Masks A mask is a restriction on an edit e.g. only replace blocks below stone. Global masks apply to all edits, brush masks apply to just the current brush. + +Separating masks by spaces (` `) or colons (`:`) uses the intersection of all masks (all of them must be true). Separating masks by commans (`,`) uses the union of the masks, and only one has to be true. + #### `//gmask [masks...]` Perm: `worldedit.global-mask` -Desc: Set the global mask +Desc: The global destination mask applies to all edits you do and masks based on the destination blocks (i.e. the blocks in the world). +#### `//gsmask [masks...]` +Perm: `worldedit.global-mask` +Desc: The global source mask applies to all edits you do and masks based on the source blocks (e.g. the blocks in your clipboard) #### `//mask [masks...]` -Perm: `worldedit.brush.options.mask` -Desc: Set the brush mask (separate multiple masks by spaces ` ` or colons `:`) +Perm: `worldedit.brush.options.mask` +Desc: Set the brush destination mask +#### `//smask [masks...]` +Perm: `worldedit.brush.options.mask` +Desc: Set the brush source mask ## List of masks #### Simple masks @@ -21,19 +30,21 @@ Desc: Set the brush mask (separate multiple masks by spaces ` ` or colons `:`) `#iddata`: Restrict to initial id and data `#wall`: Restrict to walls (any block n,e,s,w of air) `#surface`: Restrict to surfaces (any block touching air) +`#nolight`: Restrict to blocks without light (sky or emitted) +`#haslight`: Restricts to blocks with light (sky or emitted) #### Block mask `[blocks]` Example: `stone,wood` Explanation: Allows any block which is already stone or wood #### Angle mask `/[min],[max]` Example: `/-20,-5 Explanation: Allows any block where the adjacent block is between 20 and 5 blocks below -#### Radius mask `{[min],[max]` +#### Radius mask `{[min]:[max]` Example: `{5,20` Explanation: Restricts blocks to within a specific radius range of the initial block -#### Adjacent mask `~[pattern][=min[,max]]` +#### Adjacent mask `~[pattern][=min[:max]]` Example `~stone,wood` Explanation: Allows any block if it is adjacent to stone or wood -Example: `~bedrock=2,4` +Example: `~bedrock=2:4` Explanation: Allows any block if it is adjacent to between 2 and 4 bedrock #### Below mask `<[pattern]` Example: `:` + - `#skylight::` + - `#blocklight::` + - `#opacity::` + - `#brightness::` ## Registering a mask through the API ```Java