Difference between revisions of "JsonItemStack"
From Pixelmon Wiki
(Created the page, complete) |
|||
Line 24: | Line 24: | ||
|style="text-align:center"|<code>"percentChance"</code> | |style="text-align:center"|<code>"percentChance"</code> | ||
|style="text-align:center"|Decimal number between 0 and 100. | |style="text-align:center"|Decimal number between 0 and 100. | ||
− | |style="text-align:center"|The chance of this being chosen as the held item. '''Only used for held items in [[Better_Spawner/Spawn_Info/ | + | |style="text-align:center"|The chance of this being chosen as the held item. '''Only used for held items in [[Better_Spawner/Spawn_Info/Pokémon|SpawnInfoPokemon]].''' |
|} | |} | ||
Latest revision as of 23:29, 31 August 2018
JSON Item Stacks are used in multiple places in the Better Spawner. It is simply a representation of an item in JSON form, along with some extra properties used in different places in the spawner.
Property label | Type of value | Description |
---|---|---|
"itemID"
|
Text. | The item ID, such as pixelmon:old_rod .
|
"quantity"
|
Positive integer larger than zero. | How many of the item. Leaving this out will default to zero, unless used in a SpawnInfoItem in which case it will then use the minQuantity and maxQuantity properties of the SpawnInfoItem.
|
"meta"
|
Integer. | The optional meta aka damage of the item. |
"nbt"
|
Text. | The NBT data for the item, such as {display:{Name:"Reforged is great",Lore:["Very"]}} |
"percentChance"
|
Decimal number between 0 and 100. | The chance of this being chosen as the held item. Only used for held items in SpawnInfoPokemon. |
Example:
{ "itemID": "pixelmon_meteorite", "quantity": 1, "nbt": "{display:{Name:"Space rock",Lore:["From outer space"]}} }