Class BlockBehaviorWrenchOrientable
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Allows a block to cycle through variants when using a wrench. Uses the code "WrenchOrientable".
[DocumentAsJson]
public class BlockBehaviorWrenchOrientable : BlockBehavior
- Inheritance
-
BlockBehaviorWrenchOrientable
Examples
"behaviorsByType": {
"*": [
{
"name": "WrenchOrientable",
"properties": {
"baseCode": "log-placed-{wood}"
}
}
]
},
Fields
BaseCode (Required)
The code of the block that should be cycled through when used with a wrench. Required if not using a block class which inherits IWrenchOrientable.
[DocumentAsJson("Required", "", false)]
public string BaseCode
Field Value
hideInteractionHelpInSurvival (Optional) (Default: False)
Should the block hide the placed block interaction help when in survival mode?
[DocumentAsJson("Optional", "False", false)]
private bool hideInteractionHelpInSurvival