Class BlockBehaviorLadder
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Used to control ladder behavior, including horizontal orientation, placement, collection. Note that this does not control how entities react to ladders (see "climbable" in blocktype). Requires use of the 'horizontalorientation' variants. Uses the code "Ladder". Open in GitHub
[DocumentAsJson]
public class BlockBehaviorLadder : BlockBehavior
- Inheritance
-
BlockBehaviorLadder
Examples
<pre><code class="lang-csharp">"behaviors": [
{
"name": "Ladder",
"properties": {
"isFlexibleByType": {
"ladder-rope-*": true
}
}
}
]</code></pre>
"variantgroups": [
{
"code": "side",
"loadFromProperties": "abstract/horizontalorientation"
}
]
Fields
dropBlockFace (Optional) (Default: north)
What face variant should this block drop when mined?
[DocumentAsJson("Optional", "north", false)]
private string dropBlockFace
Field Value
isCrude (Optional) (Default: False)
Crude ladders cannot stand on the floor or ceiling without some attachment to a wall behind some part of the ladder.
[DocumentAsJson("Optional", "False", false)]
public bool isCrude
Field Value
isFlexible (Optional) (Default: False)
Can the base of this ladder be collected with a right click? Flexible ladders also cannot be built upwards.
[DocumentAsJson("Optional", "False", false)]
public bool isFlexible