Template:Item: Difference between revisions
From StrawberryMC
CmdBlock00 (talk | contribs) mNo edit summary |
CmdBlock00 (talk | contribs) mNo edit summary |
||
| Line 40: | Line 40: | ||
| diggingPower = 300 | | diggingPower = 300 | ||
}}</nowiki></div> | }}</nowiki></div> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<!-- Template:Item Display Code --> | <!-- Template:Item Display Code --> | ||
<div class="infobox"> | <div class="infobox"> | ||
<div class="infobox-title item-rarity-{{{rarity|common}}}">'''{{{name|Unnamed Item}}}''' | <div class="infobox-title item-rarity-{{{rarity|common}}}">'''{{{name|Unnamed Item}}}''' | ||
| Line 60: | Line 58: | ||
'''<span class="item-rarity-label">Rarity:</span> {{ucfirst:{{{rarity|common}}}}}''' | '''<span class="item-rarity-label">Rarity:</span> {{ucfirst:{{{rarity|common}}}}}''' | ||
</div> | </div> | ||
<!-- Stats --> | <!-- Stats --> | ||
{{# | {{#iferror: {{#expr:({{{magicFind|}}} + {{{fortune|}}} + {{{blast|}}} + {{{moneyMulti|}}} + {{{xpMulti|}}} + {{{speed|}}} + {{{diggingPower|}}}) > 0}}|<div style= display: none;></div>|<h2>Statistics</h2>}} | ||
{{#iferror:{{#expr:{{{magicFind|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Magic Find<span class="tooltip">Increases chance for rare drops</span>:</span> {{{magicFind}}}</div>}} | |||
{{#iferror: {{#expr:{{{fortune|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Fortune<span class="tooltip">Increases item yield</span>:</span> {{{fortune}}}</div>}} | |||
{{#iferror:{{#expr:{{{blast|}}} > 0}}|<div style= display: none;></div>| <div class="item-stat"><span class="item-stat-label">Blast<span class="tooltip">Blast radius or power</span>:</span> {{{blast}}}</div>}} | |||
{{#iferror:{{#expr:{{{moneyMulti|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Money Multiplier<span class="tooltip">Increases coin gain</span>:</span> +{{{moneyMulti}}}</div>}} | |||
{{#iferror:{{#expr:{{{xpMulti|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">XP Multiplier<span class="tooltip">Increases XP earned</span>:</span> +{{{xpMulti}}}</div>}} | |||
{{#iferror:{{#expr:{{{speed|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Speed<span class="tooltip">Affects movement speed</span>:</span> {{{speed}}}</div>}} | |||
{{#iferror:{{#expr:{{{diggingPower|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Digging Power<span class="tooltip">Damage you deal to enemies</span>:</span> {{{diggingPower}}}</div>}} | |||
</div> | </div> | ||
Revision as of 16:48, 15 October 2025
Parameters
- name
- image
- lore
- type
- rarity
- magicFind, fortune, blast – Numerical stats
- moneyMulti, xpMulti – Multiplier stats (e.g. `50%`)
- speed, diggingPower – Numeric only
Example
Item Name
Nothing.
Rarity: Epic
Statistics
Magic FindIncreases chance for rare drops: 10
FortuneIncreases item yield: 25
BlastBlast radius or power: 100
Money MultiplierIncreases coin gain: +50
XP MultiplierIncreases XP earned: +100
SpeedAffects movement speed: 120
Digging PowerDamage you deal to enemies: 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
}}
