Mechanic
blockMask
Temporarily masks a block as a different block
Aliases
effect:blockMaske:blockMask
Configuration Fields (7)
| Name | Type | Default | Description |
|---|---|---|---|
| block b, material, mat, m | PlaceholderString | GRAVEL | The block used for the blockmask. Supports blockdata string |
| radius r | PlaceholderInt | 0 | The radius of the blockmask effect |
| radiusy ry | PlaceholderInt | radius | The radiusy of the blockmask effect |
| duration d | PlaceholderDuration | 0 | The duration of the blockmask effect |
| noise n | PlaceholderDouble | 0 | The noise/randomness of the blockmask effect |
| shape s | boolean | SPHERE | The shape of the blockmask effect - SPHERE/CUBE. |
| occluding o, oc, occ | PlaceholderBoolean | true | Occlusion filter mode: with noair=true, true matches only occluding blocks and false matches all non-air blocks; with onlyair=true, true includes non-occluding blocks and false matches only air |
Examples & Notes
Examples
Creates a netherrack environment around the casting mob. Leaving the duration on 0 ticks will cause the blocks to stay in their new fake form until manual block updates are provided or players relog into the game.
- effect:blockmask{m=netherrack;r=5} @self ~onTimer:1200
Creates a layer of ice underneath the feet of all players within a 50 block radius, causing them to have a constantly slippery walk.
- effect:blockmask{m=ice;r=2;d=20} @PIR{r=50} ~onTimer:5
- effect:blockmask{m=ice;r=2;d=20;onlyair=true} @origin ~onTimer:5 # this will replace air and transparent blocks (i.e. stairs, slabs and glass) with ice
- effect:blockmask{m=ice;r=2;d=20;onlyair=true;occ=false} @origin ~onTimer:5 # this will replace only air with ice
Will forcibly reverse all effects created by the blockmask effect in the specified radius. The blockunmask effect doesn’t have any syntax options except for “radius”.
- effect:blockunmask{r=30}
Universal Mechanic Options
- Author:
- Ashijin
