Template:Item: Difference between revisions
From StrawberryMC
CmdBlock00 (talk | contribs) mNo edit summary |
CmdBlock00 (talk | contribs) mNo edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 14: | Line 14: | ||
| ''[[Rarity|rarity]]'' ||The item's rarity|| Yes | | ''[[Rarity|rarity]]'' ||The item's rarity|| Yes | ||
|- | |- | ||
| ''type'' ||The item's type (e.g. | | ''type'' ||The item's type (e.g. food, weapon)|| Yes | ||
|- | |- | ||
| ''stats'' || | | ''[[stats]]'' ||Use the stat as the parameter || No | ||
|- | |- | ||
|} | |} | ||
[[Magic Find|magicFind]] [[Fortune|fortune]] [[Blast|blast]] | [[Magic Find|magicFind]] [[Fortune|fortune]] [[Blast|blast]] income exp [[Speed|speed]] [[Digging Power|diggingPower]] | ||
== Example == | == Example == | ||
| Line 66: | Line 66: | ||
<!-- Info --> | <!-- Info --> | ||
<div class="infobox-header"><div class="infobox-htxt">Information</div></div> | <div class="infobox-header"><div class="infobox-htxt">Information</div></div> | ||
<div class="item-rarity item-rarity-{{{rarity|common}}}"><span class="infobox-label">Rarity:</span> {{ucfirst:{{{rarity|common}}}}}'''</div> | |||
<div class="item-rarity item-rarity-{{{rarity|common}}}"> | <div class="item-info"><span class="infobox-label">Type:</span> {{ucfirst:{{{type}}}}}</div> | ||
</div> | |||
</div> | |||
<!-- Stats --> | <!-- Stats --> | ||
{{#iferror: {{#expr:{{{magicFind}}}{{{fortune}}}{{{blast}}}{{{moneyMulti}}}{{{xpMulti}}}{{{speed}}}{{{diggingPower}}}}}||{{#ifexpr:({{{magicFind|}}} + {{{fortune|}}} + {{{blast|}}} + | {{#iferror: {{#expr:{{{magicFind}}}{{{fortune}}}{{{blast}}}{{{moneyMulti}}}{{{xpMulti}}}{{{speed}}}{{{diggingPower}}}}}||{{#ifexpr:({{{magicFind|}}} + {{{fortune|}}} + {{{blast|}}} + | ||
{{{moneyMulti|}}} + {{{xpMulti|}}} + {{{speed|}}} + {{{diggingPower|}}}) > 0|<div class="infobox-header"><div class="infobox-htxt">Statistics</div></div>}}}} | {{{moneyMulti|}}} + {{{xpMulti|}}} + {{{speed|}}} + {{{diggingPower|}}}) > 0|<div class="infobox-header"><div class="infobox-htxt">Statistics</div></div>}}}} | ||
{{#iferror:{{#expr:{{{magicFind|}}} > 0}}|<div style= display:none></div>|<div class="item- | {{#iferror:{{#expr:{{{magicFind|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Magic Find:</span> {{{magicFind}}}</div>}} | ||
{{#iferror: {{#expr:{{{fortune|}}} > 0}}|<div style= display:none></div>|<div class="item- | {{#iferror: {{#expr:{{{fortune|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Fortune:</span> {{{fortune}}}</div>}} | ||
{{#iferror:{{#expr:{{{blast|}}} > 0}}|<div style= display:none></div>| <div class="item- | {{#iferror:{{#expr:{{{blast|}}} > 0}}|<div style= display:none></div>| <div class="item-stat"><span class="infobox-label">Blast:</span> {{{blast}}}</div>}} | ||
{{#iferror:{{#expr:{{{moneyMulti|}}} > 0}}|<div style= display:none></div>|<div class="item- | {{#iferror:{{#expr:{{{moneyMulti|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Money Multiplier:</span> +{{{moneyMulti}}}</div>}} | ||
{{#iferror:{{#expr:{{{xpMulti|}}} > 0}}|<div style= display:none></div>|<div class="item- | {{#iferror:{{#expr:{{{xpMulti|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">XP Multiplier:</span> +{{{xpMulti}}}</div>}} | ||
{{#iferror:{{#expr:{{{speed|}}} > 0}}|<div style= display:none></div>|<div class="item- | {{#iferror:{{#expr:{{{speed|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Speed:</span> {{{speed}}}</div>}} | ||
{{#iferror:{{#expr:{{{diggingPower|}}} > 0}}|<div style= display:none></div>|<div class="item- | {{#iferror:{{#expr:{{{diggingPower|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Digging Power:</span> {{{diggingPower}}}</div>}} | ||
</div> | </div> | ||
Latest revision as of 20:01, 6 November 2025
Parameters
| Parameter | Extra Information | Required (Y/N) |
|---|---|---|
| name | The item's name (e.g. Iron Sword) | Yes |
| image | An image of the item | Yes |
| lore | Do "<br>" for new line | No |
| rarity | The item's rarity | Yes |
| type | The item's type (e.g. food, weapon) | Yes |
| stats | Use the stat as the parameter | No |
magicFind fortune blast income exp speed diggingPower
Example
Item Name
Nothing.
Information
Rarity: Epic
Type: Tool
Statistics
Magic Find: 10
Fortune: 25
Blast: 100
Money Multiplier: +50
XP Multiplier: +100
Speed: 120
Digging Power: 300
{{Item
| name = Item Name
| image = File:Placeholder.png
| lore = Nothing.
| type = tool
| rarity = epic
| magicFind = 10
| fortune = 25
| blast = 100
| moneyMulti = 50
| xpMulti = 100
| speed = 120
| diggingPower = 300
}}
