Json block behaviors Unstable: Difference between revisions

From Vintage Story Wiki
Line 18: Line 18:
== Properties ==
== Properties ==
; <code>attachedToFaces</code>&colon; (array of face codes, default &colon; ["down"])
; <code>attachedToFaces</code>&colon; (array of face codes, default &colon; ["down"])
: The code of the variant group of the block that contains all of the facing codes.
: The code for the variant group of the block that contains all of the facing codes.
; <code>attachmentAreas</code>&colon; (facing code -> RotatableCube)
; <code>attachmentAreas</code>&colon; (facing code -> RotatableCube)
: The attachment area (part of the parent block that should be solid) for each face that the block can attach to. 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.
: The attachment area (part of the parent block that should be solid) for each face that the block can attach to. 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.


{{Navbox/modding|Vintage Story}}
{{Navbox/modding|Vintage Story}}
Confirmedusers
261

edits