Build Place
Description
Targets the block position where the casting player would place a block. If the block they are looking at can be built into, such as short grass or a single layer of snow, that block is targeted. Otherwise the block next to the face they are looking at is targeted.
Nothing is targeted if the caster is not a player, if there is no block within maxdistance, if the position is taken by a block that cannot be built into, or if the position is outside the world's height limits. Use fallback to target something else in those cases.
The face the player is looking at is stored in the <skill.var.blockface> skill variable as UP, DOWN, NORTH, SOUTH, EAST or WEST. It is UNDEFINED when nothing is targeted.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| maxdistance | max, distance, d | The maximum distance to look for a block | 5 |
| fluids | fluid, f | Which fluids stop the search: NEVER looks through fluids, ALWAYS stops at any fluid, SOURCE_ONLY stops only at fluid source blocks, like an empty bucket |
NEVER |
| fallback | fb | What to target when nothing is found: CASTER for the caster's location, EYES for their eye location, MAX for the point maxdistance blocks along their view, or any targeter, such as @selfLocation |
Examples
Places stone where the player would place a block
PlaceStone:
Skills:
- setblock{m=STONE} @BuildPlace
Places glass 5 blocks along the player's view when there is no block in reach to build against
PlaceGlassAnywhere:
Skills:
- setblock{m=GLASS} @BuildPlace{fallback=MAX}
Logs the face the stone was placed against
LogFace:
Skills:
- setblock{m=STONE} @BuildPlace
- log{m="Placed against the <skill.var.blockface> face"} @self
Aliases
- build
- place