Translations:Modding:Adding Block Behavior/59/en

From Vintage Story Wiki
  1. Calculate the new position to move the block to, based on the block face the player is looking at.
  2. Check if the block can be placed at this new position.
  3. Remove the block at the old position.
  4. Place the same type of block at the new position.
  5. Skip the default logic that would otherwise place whatever item is held at the old position.