Class BlockBehaviorReparable
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Blocks which can be repaired using glue. If not repaired, they will shatter (dropping nothing) when broken. Requires use of the ShapeFromAttributes block entity behavior. Uses the code "Reparable".
[DocumentAsJson]
[AddDocumentationProperty("Reparability", "The amount of glue needed for a full repair (abstract units corresponding to 1 resin, PLUS ONE), e.g. 5 resin is shown as 6. 0 means unspecified (we don't use the repair system), -1 means cannot be repaired will alway shatter.", "System.Int32", "Recommended", "0", false)]
public class BlockBehaviorReparable : BlockBehavior
- Inheritance
-
BlockBehaviorReparable
Examples
"behaviors": [
{ "name": "Reparable" }
]
Fields
Reparability (Recommended) (Default: 0)
The amount of glue needed for a full repair (abstract units corresponding to 1 resin, PLUS ONE), e.g. 5 resin is shown as 6. 0 means unspecified (we don't use the repair system), -1 means cannot be repaired will alway shatter.