Difference between revisions of "Modding:Json Block Behaviors"

From Vintage Story Wiki
Jump to navigation Jump to search
(Created page with "{| class="wikitable" |- ! Behavior Name !! Additional Properties !! Detail link |- | HorizontalAttachable || handleDrops (bool, default: true) || Json_block_behaviors_horizo...")
 
Line 31: Line 31:
 
| Ignitable || none || [[Json_block_behaviors_ignitable|Ignitable]]
 
| Ignitable || none || [[Json_block_behaviors_ignitable|Ignitable]]
 
|-
 
|-
| UnstableFalling || none || [[Json_block_behaviors_Unstable_Falling| Unstable Falling]]
+
| UnstableFalling || none || [[Json_block_behaviors_UnstableFalling| Unstable Falling]]
 
|-
 
|-
| Example || Example || [[Json_block_behaviors_
+
| BreakIfFloating || none || [[Json_block_behaviors_BreakIfFloating| Break if Floating]]
 
|-
 
|-
| Example || Example || [[Json_block_behaviors_
+
| CanIgnite || none || [[Json_block_behaviors_CanIgnite|Can Ignite]]
 
|-
 
|-
| Example || Example || [[Json_block_behaviors_
+
| ExchangeOnInteract || exchangeStates (string array of block states) <br> sounds (path from sounds folder) || [[Json_block_behaviors_ExchangeOnInteract|Exchange On Interact]]
 
|-
 
|-
| Example || Example || [[Json_block_behaviors_
+
| OmniRotatable || rotateH (bool, default: false) <br> rotateV (bool, default: false) <br> rotatev4 (bool, default: false) <br> rotateSides (bool, default: false) <br> facing (string)|| [[Json_block_behaviors_OmniRotatable|Omni-Rotatable]]
 
|-
 
|-
| Example || Example || [[Json_block_behaviors_
+
| Ladder || dropBlockFace (face direction, Default: north)|| [[Json_block_behaviors_Ladder|Ladder]]
 
|-
 
|-
| Example || Example || [[Json_block_behaviors_
+
| PushEventOnBlockBroken || string EventName || [[Json_block_behaviors_PushEventOnBlockBroken|Push Event on Block Broken]]
 
|-
 
|-
| Example || Example || [[Json_block_behaviors_
+
| RightClickPickup || none || [[Json_block_behaviors_RightClickPickup|Right Click Pickup]]
 
|-
 
|-
| Example || Example || [[Json_block_behaviors_
+
| SneakPlacing || none || [[Json_block_behaviors_SneakPlacing|Sneak Placing]]
 
|}
 
|}

Revision as of 23:47, 24 March 2019

Behavior Name Additional Properties Detail link
HorizontalAttachable handleDrops (bool, default: true) Horizontal Attachable
HorizontalOrientable dropBlockFace (Compass Direction, default: "North")
dropBlock (block name)
Horizontal Orientable
NWOrientable none North/West Orientable
Pillar none Pillar
Slab none Slab
HorizontalUpDownOrientable none Horizontal Up/Down Orientable
FiniteSpreadingLiquid liquidCollisionSound (path from sounds folder)
sourceReplacementCode (block code)
flowingReplacementCode (block code)
collidesWith (other liquid)
spreadDelay (int, default: 150)
Finite Spreading Liquid
OmniAttachable facingPos (int, default: 1) Omni-Attachable
Unplaceable none Unplaceable
Unstable attachedToFaces (default: down) Unstable
Harvestable none Harvestable
NoParticles none No Particles
Container none Container
Ignitable none Ignitable
UnstableFalling none Unstable Falling
BreakIfFloating none Break if Floating
CanIgnite none Can Ignite
ExchangeOnInteract exchangeStates (string array of block states)
sounds (path from sounds folder)
Exchange On Interact
OmniRotatable rotateH (bool, default: false)
rotateV (bool, default: false)
rotatev4 (bool, default: false)
rotateSides (bool, default: false)
facing (string)
Omni-Rotatable
Ladder dropBlockFace (face direction, Default: north) Ladder
PushEventOnBlockBroken string EventName Push Event on Block Broken
RightClickPickup none Right Click Pickup
SneakPlacing none Sneak Placing