Modding:Advanced JSON Item: Difference between revisions

From Vintage Story Wiki
no edit summary
m (prep for split (copied from basic item mod))
No edit summary
Line 5: Line 5:
== Mining Properties ==
== Mining Properties ==


Our wand is still rather useless, so it might be a good idea to add our wand some mining functionality. How it works? We the property "miningspeedByType" we can define the mining speed for each material. Here is a list of all [[Block Materials|block materials]].
Our wand is still rather useless, so it might be a good idea to add our wand some mining functionality. How it works? With the property "miningspeedByType" we can define the mining speed for each material. Here is a list of all [[Block Materials|block materials]].


The number indicates how fast the tool is able to mine the block, while <code>1</code> is the default value. <code>time to mine = block resistance / miningspeed</code>. Meaning a speed of <code>2</code> is twice as fast the default speed of one. So our tool is seven times faster than using the hand.
The number indicates how fast the tool is able to mine the block, while <code>1</code> is the default value. <code>time to mine = block resistance / miningspeed</code>. Meaning a speed of <code>2</code> is twice as fast the default speed of one. So our tool is seven times faster than using the hand.
47

edits