Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 70: | Line 70: | ||
Our tool can be damaged by breaking a block, or using it for an weapon. The property <code>damagedby</code> allows us to define all possible damage source. For now we will stick to <code>blockbreaking</code> and <code>attacking</code>. | Our tool can be damaged by breaking a block, or using it for an weapon. The property <code>damagedby</code> allows us to define all possible damage source. For now we will stick to <code>blockbreaking</code> and <code>attacking</code>. | ||
<syntaxhighlight | <syntaxhighlight lang="json"> | ||
damagedby: ["blockbreaking", "attacking"], | damagedby: ["blockbreaking", "attacking"], | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 76: | Line 76: | ||
and the durability should be 2000: | and the durability should be 2000: | ||
<syntaxhighlight | <syntaxhighlight lang="json"> | ||
durabilitybytype: { | durabilitybytype: { | ||
"*": 2000, | "*": 2000, | ||
Line 120: | Line 120: | ||
We can also change the durability for each type individually. | We can also change the durability for each type individually. | ||
<syntaxhighlight | <syntaxhighlight lang="json"> | ||
durabilitybytype: { | durabilitybytype: { | ||
"*-shovel": 4000, | "*-shovel": 4000, | ||
Line 132: | Line 132: | ||
Using the same way we specified the mining speed for each type we can also specify a texture for each type. | Using the same way we specified the mining speed for each type we can also specify a texture for each type. | ||
<syntaxhighlight | <syntaxhighlight lang="json"> | ||
texturebytype: { | texturebytype: { | ||
"*-shovel": { | "*-shovel": { | ||
Line 147: | Line 147: | ||
But we can accomplish the same thing with an easier way: | But we can accomplish the same thing with an easier way: | ||
<syntaxhighlight | <syntaxhighlight lang="json"> | ||
texture: { | texture: { | ||
base: "tool/wand/wand-{tooltype}", | base: "tool/wand/wand-{tooltype}", |