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.

Modding
Modding Introduction Getting Started Theme Pack
Content Modding Content Mods Developing a Content Mod Basic Tutorials Intermediate Tutorials Advanced Tutorials Content Mod Concepts
Code Modding Code Mods Setting up your Development Environment
Property Overview ItemEntityEntity BehaviorsBlockBlock BehaviorsBlock ClassesBlock EntitiesBlock Entity BehaviorsCollectible BehaviorsWorld properties
Workflows & Infrastructure Modding Efficiency TipsMod-engine compatibilityMod ExtensibilityVS Engine
Additional Resources Community Resources Modding API Updates Programming Languages List of server commandsList of client commandsClient startup parametersServer startup parameters
Example ModsAPI DocsGitHub Repository