Difference between revisions of "Scytheable Component"

From wiki
Jump to: navigation, search
(Initial commit.)
 
(Update Page.)
 
Line 17: Line 17:
 
</pre>
 
</pre>
  
It has an additional property, "spawnsMixedSeeds", will spawn in Mixed Seeds. This property is a bool. Otherwise there are no additional properties. If you want to spawn the tile for the player you will need to use [[Spawn On Break Component]] to specify that.
+
It has an additional property, [[#"spawnsMixedSeeds"]], will spawn in Mixed Seeds. This property is a bool. Otherwise there are no additional properties. If you want to spawn the tile for the player you will need to use [[Spawn On Break Component]] to specify that.
  
 
= Config Options =
 
= Config Options =
Line 23: Line 23:
  
 
== "spawnsMixedSeeds" ==
 
== "spawnsMixedSeeds" ==
 +
'''Valid options ([[Modding_Key_Terms#Bool|Bool]]): <code>True or False.</code>'''
  
'''Valid options (Bool): <code>True or False.</code>'''
+
'''Default Value:''' If not specified, will default to False.
 
+
'''Default Value:''' False.
+
  
  
 
This will specify whether or not this will spawned mixed seeds.
 
This will specify whether or not this will spawned mixed seeds.

Latest revision as of 05:57, 14 December 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 Scytheable component, signified by the following;

"scytheable": { }

Scytheable components are the compliment to Scythe Items. They are used on Tiles specifically, and are used to specify that Scythe Items can break this tile.


When and How to use

Scytheable components should be used on any tile that you would want broken by an scythe. In most cases, this will be plants such as long grass.

To create this component you would use the following;

"scythable": { }

It has an additional property, #"spawnsMixedSeeds", will spawn in Mixed Seeds. This property is a bool. Otherwise there are no additional properties. If you want to spawn the tile for the player you will need to use Spawn On Break Component to specify that.

Config Options

If you want the specific tile broken to spawn when it is broken however, check out Spawn On Break Component.

"spawnsMixedSeeds"

Valid options (Bool): True or False.

Default Value: If not specified, will default to False.


This will specify whether or not this will spawned mixed seeds.