BlockPlacer

The blockplacer will place the block, at the block its facing at, so using a multi-facing block is a good idea, to make it possible to place blocks from different directions.

Places the block from its inventory. If it does not have enough energy, no blocks will be placed.

BlockBreaker can be useful for automating placing of blocks, for making farms etc. The example below shows how you can make three different blockplacer components. This can, for example, be used to allow the player to unlock new blockplacers during the game that get better and better.

iron-blockplacer:
  max-energy-consumption: 30
  material-blocks: # List of blocks that is allowed to place.
    - IRON_ORE
    - IRON_BLOCK
    - DEEPSLATE_IRON_ORE
  info:
    title: "<red> Iron Placer"
    display-energy: true
    
gold-blockplacer:
  max-energy-consumption: 50
  material-blocks-duration: # List of blocks that is allowed to place.
    - GOLD_ORE
    - GOLD_BLOCK
    - DEEPSLATE_GOLD_ORE
  info:
    title: "<red> Gold Placer"
    display-energy: true
    
diamond-blockplacer:
  max-energy-consumption: 80
  material-blocks-duration: # List of blocks that is allowed to place.
    - DIAMOND_ORE
    - DIAMOND_BLOCK
    - DEEPSLATE_DIAMOND_ORE
  info:
    title: "<red> Diamond Placer"
    display-energy: true

Last updated