Json block behaviors Unstable: Difference between revisions

From Vintage Story Wiki
No edit summary
Line 1: Line 1:
== Purpose ==
== Purpose ==
This [[Modding:Json_Block_Behaviors|behavior]] turns the block into an [[Modding:Block_Attachment|attachment block]] that can be attached to any face listed in the <code>attachedToFaces</code> 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.
This [[Modding:Json_Block_Behaviors|behavior]] turns the block into an [[Modding:Block_Attachment|attachment block]] that can be attached to any face listed in the <code>attachedToFaces</code> 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 ==
== Used by blocks ==