Template:Item: Difference between revisions

From StrawberryMC
CmdBlock00 (talk | contribs)
mNo edit summary
CmdBlock00 (talk | contribs)
mNo edit summary
Line 8: Line 8:
* '''[[Rarity|rarity]]'''
* '''[[Rarity|rarity]]'''
* '''[[Magic Find|magicFind]]''', '''[[Fortune|fortune]]''', '''[[Blast|blast]]''' – Numerical stats   
* '''[[Magic Find|magicFind]]''', '''[[Fortune|fortune]]''', '''[[Blast|blast]]''' – Numerical stats   
* '''income''', '''xpMulti''' – Multiplier stats (e.g. `50%`)   
* '''moneyMulti''', '''xpMulti''' – Multiplier stats (e.g. `50%`)   
* '''[[Speed|speed]]''', '''[[Digging Power|diggingPower]]''' – Numeric only   
* '''[[Speed|speed]]''', '''[[Digging Power|diggingPower]]''' – Numeric only   


Line 22: Line 22:
  | fortune      = 25
  | fortune      = 25
  | blast        = 100
  | blast        = 100
  | income        = 50
  | moneyMulti    = 50
  | xpMulti      = 100
  | xpMulti      = 100
  | speed        = 120
  | speed        = 120
Line 28: Line 28:
}}
}}
</pre>
</pre>
!!WARNING!! Make sure to set stats to 0 instead of deleting them!
== Preview ==
== Preview ==
{{Item
{{Item
Line 38: Line 39:
  | fortune      = 25
  | fortune      = 25
  | blast        = 100
  | blast        = 100
  | income        = 50
  | moneyMulti    = 50
  | xpMulti      = 100
  | xpMulti      = 100
  | speed        = 120
  | speed        = 120
  | diggingPower  = 300
  | diggingPower  = 300
}}
{{Item
| name          = Item Name
| image        = File:Placeholder.png
| lore          = Nothing.
| type          = tool
| rarity        = epic
| magicFind    = 0
| fortune      = 0
| blast        = 0
| moneyMulti    = 0
| xpMulti      = 0
| speed        = 0
| diggingPower  = 0
}}
}}
</noinclude>
</noinclude>
Line 54: Line 69:
</div>
</div>
<div class="item-lore">
<div class="item-lore">
{{{lore}}}
{{{lore|}}}
</div>
</div>
<div class="item-rarity item-rarity-{{{rarity|common}}}">
<div class="item-rarity item-rarity-{{{rarity|common}}}">
Line 60: Line 75:
</div>
</div>
   <!-- Stats -->
   <!-- Stats -->
   {{#if:{{{magicFind|}}}|<div class="item-stat"><span class="item-stat-label">Magic Find<span class="tooltip">Increases chance for rare drops</span>:</span> {{{magicFind}}}</div>}}
{{#ifexpr:({{{magicFind|}}} + {{{fortune|}}} + {{{blast|}}} + {{{moneyMulti|}}} + {{{xpMulti|}}} + {{{speed|}}} + {{{diggingPower|}}}) > 0|<h2>Statistics</h2>|<div style= display: none;></div>}}
   {{#if:{{{fortune|}}}|<div class="item-stat"><span class="item-stat-label">Fortune<span class="tooltip">Increases item yield</span>:</span> {{{fortune}}}</div>}}
   {{#ifexpr:{{{magicFind|}}} > 0|<div class="item-stat"><span class="item-stat-label">Magic Find<span class="tooltip">Increases chance for rare drops</span>:</span> {{{magicFind}}}</div>|<div style= display: none;></div>}}
   {{#if:{{{blast|}}}|<div class="item-stat"><span class="item-stat-label">Blast<span class="tooltip">Blast radius or power</span>:</span> {{{blast}}}</div>}}
   {{#ifexpr:{{{fortune|}}} > 0|<div class="item-stat"><span class="item-stat-label">Fortune<span class="tooltip">Increases item yield</span>:</span> {{{fortune}}}</div>|<div style= display: none;></div>}}
   {{#if:{{{moneyMulti|}}}|<div class="item-stat"><span class="item-stat-label">Money Multiplier<span class="tooltip">Increases coin gain</span>:</span> +{{{moneyMulti}}}</div>}}
   {{#ifexpr:{{{blast|}}} > 0|<div class="item-stat"><span class="item-stat-label">Blast<span class="tooltip">Blast radius or power</span>:</span> {{{blast}}}</div>|<div style= display: none;></div>}}
   {{#if:{{{xpMulti|}}}|<div class="item-stat"><span class="item-stat-label">XP Multiplier<span class="tooltip">Increases XP earned</span>:</span> +{{{xpMulti}}}</div>}}
   {{#ifexpr:{{{moneyMulti|}}} > 0|<div class="item-stat"><span class="item-stat-label">Money Multiplier<span class="tooltip">Increases coin gain</span>:</span> +{{{moneyMulti}}}</div>|<div style= display: none;>}}
   {{#if:{{{speed|}}}|<div class="item-stat"><span class="item-stat-label">Speed<span class="tooltip">Affects movement speed</span>:</span> {{{speed}}}</div>}}
   {{#ifexpr:{{{xpMulti|}}} > 0|<div class="item-stat"><span class="item-stat-label">XP Multiplier<span class="tooltip">Increases XP earned</span>:</span> +{{{xpMulti}}}</div>|<div style= display: none;></div>}}
   {{#if:{{{diggingPower|}}}|<div class="item-stat"><span class="item-stat-label">Digging Power<span class="tooltip">Damage you deal to enemies</span>:</span> {{{diggingPower}}}</div>}}
   {{#ifexpr:{{{speed|}}} > 0|<div class="item-stat"><span class="item-stat-label">Speed<span class="tooltip">Affects movement speed</span>:</span> {{{speed}}}</div>|<div style= display: none;></div>}}
   {{#ifexpr:{{{diggingPower|}}} > 0|<div class="item-stat"><span class="item-stat-label">Digging Power<span class="tooltip">Damage you deal to enemies</span>:</span> {{{diggingPower}}}</div>|<div style= display: none;></div>}}
</div>
</div>

Revision as of 10:09, 14 October 2025

Parameters

Example

{{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
}}

!!WARNING!! Make sure to set stats to 0 instead of deleting them!

Preview

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

Nothing.

Rarity: Epic