Modding:HorizontalOrientable behavior: Difference between revisions

From Vintage Story Wiki
mNo edit summary
(→‎Purpose: worldvariantgroups link)
Line 9: Line 9:
* Windmillrotor
* Windmillrotor
* Bellows
* Bellows
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: [

Revision as of 07:11, 10 October 2023

Purpose

Block can be rotated horizontally. Used for:

  • Workbench
  • Ladder
  • Echochamber
  • Chest
  • Stove
  • Altar
  • Windmillrotor
  • Bellows

Requires a variant group loaded from the abstract/horizontalorientation world property:

	variantgroups: [
		{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
	],

Properties

dropBlockFace (compassdirection, default: "north"): Determines which direction the block drop face is done.
dropBlock (optional) : Determines which block to drop.

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 ItemEntityBlockBlock BehaviorsBlock ClassesBlock EntitiesBlock Entity 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