Changes

Jump to navigation Jump to search
Formatting fixes and broken link fixes
Line 3: Line 3:  
This page documents how the game stores and parses fence data. This is an advanced guide for mod developers.
 
This page documents how the game stores and parses fence data. This is an advanced guide for mod developers.
   −
You can now add or customize [[Crafting#Fences|fences]] by editing the <samp>Data/Fences</samp> asset.
+
=Data format=
   −
This consists of a string → model lookup, where the key is the [[#Custom items|unqualified item ID]] of the fence object, and the value is a model with these fields:
+
You can add or customize [[Crafting#Fences|fences]] by editing the <samp>Data/Fences</samp> asset.
 +
 
 +
This consists of a string → model lookup, where the key is the [[Modding:Common_data_field_types#Item_ID|unqualified item ID]] of the fence object, and the value is a model with these fields:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 31: Line 33:  
|-
 
|-
 
| <samp>PlacementSound</samp>
 
| <samp>PlacementSound</samp>
| The [[#Custom audio|audio cue ID]] played when the fence is placed or repaired (e.g. <samp>axe</samp> used by [[Wood Fence]]).
+
| The [[Modding:Audio|audio cue ID]] played when the fence is placed or repaired (e.g. <samp>axe</samp> used by [[Wood Fence]]).
 
|-
 
|-
 
| <samp>RemovalSound</samp>
 
| <samp>RemovalSound</samp>
| ''(Optional)'' The [[#Custom audio|audio cue ID]] played when the fence is broken or picked up by the player. Defaults to the same sound as <samp>PlacementSound</samp>.
+
| ''(Optional)'' The [[Modding:Audio|audio cue ID]] played when the fence is broken or picked up by the player. Defaults to the same sound as <samp>PlacementSound</samp>.
 
|-
 
|-
 
| <samp>RemovalDebrisType</samp>
 
| <samp>RemovalDebrisType</samp>
138

edits

Navigation menu