Json block behaviors horizontalattachable: Difference between revisions
From Vintage Story Wiki
mNo edit summary |
(→Purpose: link to the world properties) |
||
Line 3: | Line 3: | ||
* Painting | * Painting | ||
* Toolrack | * Toolrack | ||
Requires <code>abstract/horizontalorientation</code>: | Requires a variant group loaded from the <code>abstract/horizontalorientation</code> [[Json:block:worldvariantgroups|world property]]: | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
variantgroups: [ | variantgroups: [ | ||
Line 9: | Line 9: | ||
], | ], | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Properties == | == Properties == | ||
* <code>HandleDrops (bool, default: true)</code>: Simply determines whether the drops for this block should be handled. | * <code>HandleDrops (bool, default: true)</code>: Simply determines whether the drops for this block should be handled. | ||
{{Navbox/modding|Vintage Story}} | {{Navbox/modding|Vintage Story}} |
Revision as of 07:09, 10 October 2023
Purpose
Block can only be attached horizontally. Used for:
- Painting
- Toolrack
Requires a variant group loaded from the abstract/horizontalorientation
world property:
variantgroups: [
{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
],
Properties
HandleDrops (bool, default: true)
: Simply determines whether the drops for this block should be handled.
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 | Item • Entity • Block • Block Behaviors • Block Classes • Block Entities • Block Entity Behaviors • World properties |
Workflows & Infrastructure | Modding Efficiency Tips • Mod-engine compatibility • Mod Extensibility • VS Engine |
Additional Resources | Community Resources • Modding API Updates • Programming Languages • List of server commands • List of client commands • Client startup parameters • Server startup parameters Example Mods • API Docs • GitHub Repository |