Difference between revisions of "Hammerable Component"

From wiki
Jump to: navigation, search
(Initial commit.)
 
(No difference)

Latest revision as of 23:02, 18 July 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 Hammerable component, signified by the following;

"hammerable": { }

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


When and How to use

Hammerable components should be used on any tile that you would want broken by an hammer. In most cases, this will be furniture, as well as other decorative pieces.

To create this component you would use the following;

"hammerable": { }

There are no additional properties to the Hammerable binding itself. If you want to spawn the tile for the player you will need to use Spawn On Break Component to specify that.

Config Options

There are no additional Configuration Options for this component.

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