Currency Component

From wiki
Revision as of 03:23, 12 July 2017 by DeamonHunter (Talk | contribs) (Initial commit.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 Currency component, signified by the following;

"currency": {
  "petalWorth": 0.0
}

Currency components are the compliment to Pricing Component. They are used for Items, specifically Coin Items, and are used to specify how many coins you will get for receiving that item


When and How to use

Currency components should be used whenever you want to specify a new coin. In most cases this is not needed, although it may be useful when wanting to create a new money tier in order to avoid a large number of items being spawned.


To create this component you would use the following;

"currency": {
  "petalWorth": 0.0
}

The only property, "petalWorth" is how much the item will be worth when picked up.


Config Options

All config options must be inside the body of;

"pricing": {
  =Config Here=
}

"petalWorth"

Valid options (Float): A positive decimal number.

Default Value: No default value is specified. Always need to provide your own.


This is the amount of money this item will give to you upon picking up.