Difference between revisions of "Watering Can Items"

From wiki
Jump to: navigation, search
(Initial commit.)
 
(Reword the subtext to be less confusing.)
Line 9: Line 9:
 
</pre>
 
</pre>
  
Watering Can, currently, do not have any extra components when compared to [[Craft Items]], but will activate the ability to use the item as if it was a Axe. This item reacts to tiles (i.e. water them) that have the [[Tiles#"tileStateKind"]] equal to "staxel.tileState.Dirt" or similar.
+
This item will water [[Tile|Tiles]] that have the [[Tiles#"tileStateKind"]] equal to "staxel.tileState.Dirt" or similar.
 +
 
 +
Watering Can, currently, do not have any extra components.
  
  
 
= Creating a Watering Can Item =
 
= Creating a Watering Can Item =
Watering Cans are created in the exact same way as [[Craft Items]]. In fact you should follow the guide, [[Craft Items#Creating a Craft Item]], just replace the "kind" property with "staxel.item.WateringCan".
+
Watering Cans are created in the exact same way as [[Craft Items]]. In fact you should follow the guide, [[Items#How to Make a Normal Item]], just replace the "kind" property with "staxel.item.WateringCan".
  
  
 
= Spawning in a Watering Can Item =
 
= Spawning in a Watering Can Item =
Follow the guide at [[Craft Items#Spawning in a Craft Item]]. When that guide mentions "kind", make sure to use "staxel.item.WateringCan" instead of "staxel.item.CraftItem" else you won't be able to spawn the item.
+
Follow the guide at [[Items#How to Spawn an Item]]. When that guide mentions "kind", make sure to use "staxel.item.WateringCan" instead of "staxel.item.CraftItem" else you won't be able to spawn the item.
  
  
 
= Config Options =
 
= Config Options =
The list of basic properties is included at [[Craft Items#Config Options]].
+
The list of basic properties is included at [[Items#Config Options]].

Revision as of 04:57, 12 December 2017

Items are fairly broad in their types. Each type has it's own properties and uses.

This page is for items that will act as if they were a Watering Can.

Watering Can are all items that have the following line;

"kind": "staxel.item.WateringCan",

This item will water Tiles that have the Tiles#"tileStateKind" equal to "staxel.tileState.Dirt" or similar.

Watering Can, currently, do not have any extra components.


Creating a Watering Can Item

Watering Cans are created in the exact same way as Craft Items. In fact you should follow the guide, Items#How to Make a Normal Item, just replace the "kind" property with "staxel.item.WateringCan".


Spawning in a Watering Can Item

Follow the guide at Items#How to Spawn an Item. When that guide mentions "kind", make sure to use "staxel.item.WateringCan" instead of "staxel.item.CraftItem" else you won't be able to spawn the item.


Config Options

The list of basic properties is included at Items#Config Options.