Difference between revisions of "Axeable Component"

From wiki
Jump to: navigation, search
(Initial commit.)
(Update formatting.)
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
[[:Category:Component Modding]] are all optional properties that can be added to any file. Components are useful in extending the original files with even more information, such as the cost of the item or whether the block can be broken by a weapon.
 
[[:Category:Component Modding]] are all optional properties that can be added to any file. Components are useful in extending the original files with even more information, such as the cost of the item or whether the block can be broken by a weapon.
  
On this page, we go over the Sweepable component, signified by the following;
+
On this page, we go over the Axeable Component, signified by the following;
 
<pre>
 
<pre>
"sweepable": { }
+
"axeable": { }
 
</pre>
 
</pre>
Sweepable components are the compliment to [[Broom Items]]. They are used on [[Tile|Tiles]] specifically, and are used to specify that [[Broom Items]] can break this tile.
+
Axeable Components are the compliment to [[Axe Items]]. They are used on [[Tile|Tiles]] specifically, and are used to specify that [[Axe Items]] can break this tile.
  
  
 
= When and How to use =
 
= When and How to use =
Sweepable components should be used on any tile that you would want broken by an axe. This is mostly things that should be swept like cobwebs (which is commonly handled by [[Broom Items]] and [[Sweepable Component]])
+
Axeable components should be used on any tile that you would want broken by an axe. This is mostly any wooden tiles, such as logs, but generally not wooden furniture (which is commonly handled by [[Hammer Items]] and [[Hammerable Component]])
  
 
To create this component you would use the following;
 
To create this component you would use the following;
 
<pre>
 
<pre>
"sweepable": { }
+
"axeable": { }
 
</pre>
 
</pre>
  
Line 20: Line 20:
  
 
<pre>
 
<pre>
"sweepable": {  
+
"axeable": {  
 
   "treasure" : "staxel.treasure.something"
 
   "treasure" : "staxel.treasure.something"
 
}
 
}
 
</pre>
 
</pre>
  
This "treasure" property contains the code to a [[Treasures|Treasure Pool]] and would be used to specify a set of items.  
+
This "treasure" property contains the code to a [[Treasure Pools|Treasure Pool]] and would be used to specify a set of items.  
  
 
If you only want the same tile to spawn, then you will need to use the [[Spawn On Break Component]] in order to specify.
 
If you only want the same tile to spawn, then you will need to use the [[Spawn On Break Component]] in order to specify.
 
  
 
= Config Options =
 
= Config Options =
 
All config options must be inside the body of;
 
All config options must be inside the body of;
 
<pre>
 
<pre>
"sweepable": {
+
"axeable": {
 
   =Config Here=
 
   =Config Here=
 
}
 
}
Line 39: Line 38:
  
 
== "treasure" ==
 
== "treasure" ==
'''Valid options (Float): <code>A string containing the code to a [[Treasures|Treasure]] pool.</code>'''
+
'''Valid options ([[Modding_Key_Terms#String|String]]): <code>A string containing the code to a [[Treasure Pools|Treasure Pool]].</code>'''
  
 
'''Default Value:''' If not specified, will not spawn any items.
 
'''Default Value:''' If not specified, will not spawn any items.

Latest revision as of 00:56, 21 November 2017

Category:Component Modding are all optional properties that can be added to any file. Components are useful in extending the original files with even more information, such as the cost of the item or whether the block can be broken by a weapon.

On this page, we go over the Axeable Component, signified by the following;

"axeable": { }

Axeable Components are the compliment to Axe Items. They are used on Tiles specifically, and are used to specify that Axe Items can break this tile.


When and How to use

Axeable components should be used on any tile that you would want broken by an axe. This is mostly any wooden tiles, such as logs, but generally not wooden furniture (which is commonly handled by Hammer Items and Hammerable Component)

To create this component you would use the following;

"axeable": { }

Or if you want a specific set of items dropped, then you would use;

"axeable": { 
  "treasure" : "staxel.treasure.something"
}

This "treasure" property contains the code to a Treasure Pool and would be used to specify a set of items.

If you only want the same tile to spawn, then you will need to use the Spawn On Break Component in order to specify.

Config Options

All config options must be inside the body of;

"axeable": {
  =Config Here=
}

"treasure"

Valid options (String): A string containing the code to a Treasure Pool.

Default Value: If not specified, will not spawn any items.


This is the treasure pool it will use in order to give out items to the player. If you want the specific tile broken to spawn, without creating a new Treasure, check out Spawn On Break Component.