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".
[DocumentAsJson]
public class BlockBehaviorLadder : BlockBehavior
- Inheritance
-
BlockBehaviorLadder
Examples
"behaviors": [
{
"name": "Ladder",
"properties": {
"isFlexibleByType": {
"ladder-rope-*": true
}
}
}
]
"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
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