Difference between revisions of "Template:Breaking"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

Line 3: Line 3:
 
|-
 
|-
 
! Tool
 
! Tool
| Default
+
! Default
 
{{#if: {{{Wood|}}}|
 
{{#if: {{{Wood|}}}|
{{!}} {{I|Wooden {{{Tool|}}}}}
+
! {{I|Wooden {{{Tool|}}}}}
 
}}
 
}}
 
{{#if: {{{Stone|}}}|
 
{{#if: {{{Stone|}}}|
{{!}} {{I|Stone {{{Tool|}}}}}
+
! {{I|Stone {{{Tool|}}}}}
 
}}
 
}}
 
{{#if: {{{Iron|}}}|
 
{{#if: {{{Iron|}}}|
{{!}} {{I|Iron {{{Tool|}}}}}
+
! {{I|Iron {{{Tool|}}}}}
 
}}
 
}}
 
{{#if: {{{Golden|}}}|
 
{{#if: {{{Golden|}}}|
{{!}} {{I|Golden {{{Tool|}}}}}
+
! {{I|Golden {{{Tool|}}}}}
 
}}
 
}}
 
{{#if: {{{Diamond|}}}|
 
{{#if: {{{Diamond|}}}|
{{!}} {{I|Diamond {{{Tool|}}}}}
+
! {{I|Diamond {{{Tool|}}}}}
 
}}
 
}}
 
{{#if: {{{Obsidian|}}}|
 
{{#if: {{{Obsidian|}}}|
{{!}} {{I|Obsidian {{{Tool|}}}}}
+
! {{I|Obsidian {{{Tool|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 26: Line 26:
 
| class="cell-neg"| {{{Default|}}}s
 
| class="cell-neg"| {{{Default|}}}s
 
{{#if: {{{Wood|}}}|
 
{{#if: {{{Wood|}}}|
{{!}} {{#ifeq:{{{Wood}}}|{{{Default}}}||{{#ifexpr: {{{Wood}}} > {{{Default}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Wood}}}s
+
{{!}} {{#ifeq:{{{Wood}}}|{{{Default}}}|class="cell-eq"|{{#ifexpr: {{{Wood}}} > {{{Default}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Wood}}}s
 
}}
 
}}
 
{{#if: {{{Stone|}}}|
 
{{#if: {{{Stone|}}}|
{{!}} {{#ifeq:{{{Stone}}}|{{{Wood}}}||{{#ifexpr: {{{Stone}}} > {{{Wood}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Stone}}}s
+
{{!}} {{#ifeq:{{{Stone}}}|{{{Wood}}}|class="cell-eq"|{{#ifexpr: {{{Stone}}} > {{{Wood}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Stone}}}s
 
}}
 
}}
 
{{#if: {{{Iron|}}}|
 
{{#if: {{{Iron|}}}|
{{!}} {{#ifeq:{{{Iron}}}|{{{Stone}}}||{{#ifexpr: {{{Iron}}} > {{{Stone}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Iron}}}s
+
{{!}} {{#ifeq:{{{Iron}}}|{{{Stone}}}|class="cell-eq"|{{#ifexpr: {{{Iron}}} > {{{Stone}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Iron}}}s
 
}}
 
}}
 
{{#if: {{{Golden|}}}|
 
{{#if: {{{Golden|}}}|
{{!}} {{#ifeq:{{{Golden}}}|{{{Iron}}}||{{#ifexpr: {{{Golden}}} > {{{Iron}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Golden}}}s
+
{{!}} {{#ifeq:{{{Golden}}}|{{{Iron}}}|class="cell-eq"|{{#ifexpr: {{{Golden}}} > {{{Iron}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Golden}}}s
 
}}
 
}}
 
{{#if: {{{Diamond|}}}|
 
{{#if: {{{Diamond|}}}|
{{!}} {{#ifeq:{{{Diamond}}}|{{{Golden}}}||{{#ifexpr: {{{Diamond}}} > {{{Golden}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Diamond}}}s
+
{{!}} {{#ifeq:{{{Diamond}}}|{{{Golden}}}|class="cell-eq"|{{#ifexpr: {{{Diamond}}} > {{{Golden}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Diamond}}}s
 
}}
 
}}
 
{{#if: {{{Obsidian|}}}|
 
{{#if: {{{Obsidian|}}}|
{{!}} {{#ifeq:{{{Obsidian}}}|{{{Diamond}}}||{{#ifexpr: {{{Obsdian}}} > {{{Diamond}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Obsidian}}}s
+
{{!}} {{#ifeq:{{{Obsidian}}}|{{{Diamond}}}|class="cell-eq"|{{#ifexpr: {{{Obsdian}}} > {{{Diamond}}}|class="cell-neg"|class="cell-pos"}}}} {{!}} {{{Obsidian}}}s
 
}}
 
}}
 
|}<noinclude>
 
|}<noinclude>

Revision as of 21:14, 4 January 2022

Breaking times: Breaking Breaking
Tool Default




Time s




Usage

{{Breaking
| Item = 
| Item-name = 
| Tool = 
| Default = 
| Wood = 
| Stone = 
| Iron = 
| Golden = 
| Diamond = 
| Obsidian = 
}}

Example

{{Breaking
| Tool = Pickaxe
| Default = 1.5
| Wood = 1.25
| Stone = 1
| Iron = 0.75
| Golden = 0.5
| Diamond = 0.25
| Obsidian = 0.1
}}

Results in:

Breaking times: Breaking Breaking
Tool Default Wooden Pickaxe Stone Pickaxe Iron Pickaxe Golden Pickaxe Diamond Pickaxe Obsidian Pickaxe
Time 1.5s 1.25s 1s 0.75s 0.5s 0.25s 0.1s