Difference between revisions of "Template:Breaking"
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 26: | Line 26: | ||
| class="cell-neg"| {{{Default|}}}s | | class="cell-neg"| {{{Default|}}}s | ||
{{#if: {{{Wood|}}}| | {{#if: {{{Wood|}}}| | ||
− | {{!}} class="cell-pos"{{!}} {{{Wood}}}s | + | {{!}} {{#ifeq:{{{Wood}}}|{{{Default}}}||{{#ifexpr: {{{Wood}}} > {{{Default}}}|class="cell-pos"|class="cell-neg"}}}} {{!}} {{{Wood}}}s |
}} | }} | ||
{{#if: {{{Stone|}}}| | {{#if: {{{Stone|}}}| | ||
− | {{!}} class="cell-pos" | + | {{!}} {{#ifeq:{{{Stone}}}|{{{Wood}}}||{{#ifexpr: {{{Stone}}} > {{{Wood}}}|class="cell-pos"|class="cell-neg"}}}} {{{Stone}}}s |
}} | }} | ||
{{#if: {{{Iron|}}}| | {{#if: {{{Iron|}}}| | ||
− | {{!}} class="cell-pos" | + | {{!}} {{#ifeq:{{{Iron}}}|{{{Stone}}}||{{#ifexpr: {{{Iron}}} > {{{Stone}}}|class="cell-pos"|class="cell-neg"}}}} {{{Iron}}}s |
}} | }} | ||
{{#if: {{{Golden|}}}| | {{#if: {{{Golden|}}}| | ||
− | {{!}} class="cell-pos" | + | {{!}} {{#ifeq:{{{Golden}}}|{{{Iron}}}||{{#ifexpr: {{{Golden}}} > {{{Iron}}}|class="cell-pos"|class="cell-neg"}}}} {{{Golden}}}s |
}} | }} | ||
{{#if: {{{Diamond|}}}| | {{#if: {{{Diamond|}}}| | ||
− | {{!}} class="cell-pos" | + | {{!}} {{#ifeq:{{{Diamond}}}|{{{Golden}}}||{{#ifexpr: {{{Diamond}}} > {{{Golden}}}|class="cell-pos"|class="cell-neg"}}}} {{{Diamond}}}s |
}} | }} | ||
{{#if: {{{Obsidian|}}}| | {{#if: {{{Obsidian|}}}| | ||
− | {{!}} class="cell-pos" | + | {{!}} {{#ifeq:{{{Obsidian}}}|{{{Diamond}}}||{{#ifexpr: {{{Obsdian}}} > {{{Diamond}}}|class="cell-pos"|class="cell-neg"}}}} {{{Obsidian}}}s |
}} | }} | ||
|}<noinclude> | |}<noinclude> |
Revision as of 19:56, 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 | ||||||
Time | 1.5s | 1.25s | class="cell-neg" 1s | class="cell-neg" 0.75s | class="cell-neg" 0.5s | class="cell-neg" 0.25s | Expression error: Unrecognized punctuation character "{". 0.1s |