added originMustMatch attribute and changed examples authored by Lxlp's avatar Lxlp
...@@ -5,8 +5,9 @@ Target all adjancent blocks that match the blocktype, starting from the origin o ...@@ -5,8 +5,9 @@ Target all adjancent blocks that match the blocktype, starting from the origin o
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|----------------|-----------------|--------------------------------------------------------|:-------:| |----------------|-----------------|--------------------------------------------------------|:-------:|
| blocktypes |blocktype, bt | Blocks to add to the vein. Can be a list. | STONE | | blocktypes | blocktype, bt, t, material, materials, mat, m, blocks, block, b | Blocks to add to the vein. Can be a list. | STONE |
| limit | max, l, m | Limit of the number of blocks added to the vein. | 10 | | limit | max, l, m | Limit of the number of blocks added to the vein. | 10 |
| originMustMatch| match | Should the targeted blocks match the one at the origin of the metaskill | true |
## Examples ## Examples
```yaml ```yaml
...@@ -14,11 +15,17 @@ Target all adjancent blocks that match the blocktype, starting from the origin o ...@@ -14,11 +15,17 @@ Target all adjancent blocks that match the blocktype, starting from the origin o
VeinMinerPickaxe: VeinMinerPickaxe:
Id: NETHERITE_PICKAXE Id: NETHERITE_PICKAXE
Skills: Skills:
- breakblock{origin=@TargetLocation} @Vein{bt=<caster.raycast>} ~onBlockBreak - breakblock{origin=@TargetBlock} @Vein{bt=<caster.raycast>} ~onBlockBreak
# Vein mine only certain ores # Vein mine only certain ores
VeinMinerPickaxeOres: VeinMinerPickaxeOres:
Id: DIAMOND_PICKAXE Id: DIAMOND_PICKAXE
Skills: Skills:
- breakblock{origin=@TargetLocation} @Vein{bt=REDSTONE_ORE, DEEPSLATE_REDSTONE_ORE} ~onBlockBreak - breakblock{origin=@TargetBlock} @Vein{bt=REDSTONE_ORE, DEEPSLATE_REDSTONE_ORE} ~onBlockBreak
# Vein mine all ores
VeinMinerPickaxeOres_V2:
Id: DIAMOND_PICKAXE
Skills:
- breakblock{origin=@TargetBlock} @Vein{bt=#_ORE} ~onBlockBreak
``` ```
\ No newline at end of file