Json block behaviors Unstable

From Vintage Story Wiki

Purpose

This behavior turns the block into an attachment block that can be attached to any face listed in the attachedToFaces property.

If the parent block is later changed such that it rejects the attachment, instead of immediately breaking the attachment block, it searches for another neighbor to attach to instead. The block is broken if none of the neighbors accept the attachment.

Used by blocks

  • bunchocandles
  • crop
  • deadcrop
  • firepit
  • oreblastingbomb
  • silvertorchcactus
  • verticalboiler
  • wildbeehive
  • woodenpath
  • woodenrails

Properties

attachedToFaces: (array of face codes, default : ["down"])
The faces of the attachment block that allow attachment.
attachmentAreas: (facing code -> RotatableCube)
The attachment area (part of the parent block that should be solid) for each face of the attachment block. This field is optional. If a face is missing, then a null attachment area will be given to the parent block. Most parent blocks ignore the attachment area when deciding whether to accept an attachment.
Icon Sign.png

Wondering where some links have gone?
The modding navbox is going through some changes! Check out Navigation Box Updates for more info and help finding specific pages.