Template:Blast resistance values: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
missed a space
mNo edit summary
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{ #vardefine: $block | {{{1}}}<!-- easy testing: insert test value here -->
<includeonly>{{#invoke: block value | value | type=blast resistance }}</includeonly><noinclude>
}}{{ #vardefine: $block | {{ lc: {{<!-- initial transform: lowercase, singularize -->
{{documentation}}
    #switch: {{ lc: {{ #explode: {{ #var: $block }} || -1 }} }}
<!-- Put categories/interwiki on the documentation page -->
    | glass | steps | stairs | bars | cactus | leaves | grass = {{ #var: $block }} <!-- don't strip the trailing "s" from these; that just looks weird =) -->
</noinclude>
    | #default = {{
      #ifeq: {{ #sub: {{ #var: $block }} | -1 }} | s
      | {{ #sub: {{ #var: $block }} || -1 }}
      | {{ #var: $block }}
    }}
  }} }}
}}{{ #vardefine: $block | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #var: $block }} | wooden | wood }} | mossy | moss }} | steps | stairs }} | ( }} | ) }} | ' }} | - }}<!-- "wooden" to "wood", "mossy" to "moss", "steps" to "stairs", strip parentheses, apostrophes, hyphen-minuses -->
}}{{ #vardefine: $block | {{ #ifeq: {{ #explode: {{ #var: $block }} || -1 }} | block<!-- strip "block" -->
    | {{ #switch: {{ #var: $block }}
      | redstone block = {{ #var: $block }}
      | #default = {{ #replace: {{ #var: $block }} | block }}
    }}
    | {{ #var: $block }}
  }}
}}{{ #vardefine: $block | {{ #replace: {{ #var: $block }} }}<!-- final transform: strip whitespace -->
}}{{ #switch: {{ #var: $block }}<!--
 
all values per [[User:Orthotope/blocks]] as of 1.5; do not change them without cause
 
-->
| barrier
| bedrock
| command
| endportal
| endportalframe = 18,000,000
 
| anvil
| obsidian
| enchantmenttable = 6,000
 
| enderchest = 3,000
 
| water | stillwater | flowingwater
| lava  | stilllava  = 500
 
| flowinglava = 0
 
| endstone
| dragonegg = 45
 
| stone
| stonebrick
| cobblestone
| blockofdiamond  | diamond
| blockofemerald  | emerald
| blockofgold    | gold
| blockofiron    | iron
| blockofredstone | redstoneblock
| doubleslab      | stonedoubleslab | cobblestonedoubleslab | wooddoubleslab | sandstonedoubleslab | quartzdoubleslab
| slab            | stoneslab      | cobblestoneslab                        | sandstoneslab      | quartzslab
| brick
| mossstone      | mosscobblestone
| cobblestonewall
| netherbrick
| netherbrickfence
| netherbrickstairs
| stonestairs    | brickstairs    | stonebrickstairs
| ironbars
| hardenedclay
| jukebox = 30
 
| monsterspawner
| irondoor
| irontrapdoor = 25
 
| cobweb = 20
 
| dispenser
| dropper
| furnace    | burningfurnace
| stonecutter = 17.5
 
| coalore
| diamondore
| emeraldore
| goldore
| ironore
| lapislazuli
| lapislazuliore
| netherquartzore
| wooddoor
| woodplank
| woodslab
| woodstairs
| redstoneore | glowingredstoneore
| fence      | fencegate
| cocoaplant
| trapdoor
| beacon
| hopper = 15
 
| chest
| craftingtable
| trappedchest = 12.5
 
| cauldron
| wood = 10
 
| bookshelf = 7.5
 
| sign
| pumpkin
| melon
| jackolantern
| head | mobhead = 5
 
| sandstone
| sandstonestairs | quartzstairs
| note
| wool
| blockofquartz | blockofpillarquartz | blockofchiseledquartz
| quartz        | pillarquartz        | chiseledquartz = 4
 
| spawnegg | monsteregg | silverfish | hiddensilverfish | block97 = 3.75
 
| poweredrail
| detectorrail
| activatorrail
| rail = 3.5
 
| grass
| gravel
| sponge
| farmland | farming
| clay = 3
 
| dirt
| sand
| sticky piston
| piston
| block34 | pistonextension | pistonarm
| lever
| pressureplate | stonepressureplate | woodpressureplate
| weightedpressureplate
| button | woodbutton | stonebutton
| mycelium
| ice
| packedice
| soulsand
| brewingstand
| cake = 2.5
 
| ladder
| cactus
| netherrack = 2
 
| glass | glasspane
| glowstone
| redstonelamp  = 1.5
 
| leaves
| bed
| hugemushroom | hugebrownmushroom | hugeredmushroom
| vine
| snow
| daylightdetector | daylightsensor = 1
 
| snowcover = 0.5
 
| sapling
| tallgrass
| deadbush      | deadshrub
| block36      | pistonmoving
| flower        | rose
| mushroom      | redmushroom      | brownmushroom
| pumpkinstem  | melonstem
| lilypad
| tnt
| torch
| fire
| redstonedust  | redstonewire    | redstone
| redstonetorch
| repeater      | redstonerepeater | activerepeater | activeredstonerepeater | lockedrepeater | lockedredstonerepeater
| comparator    | redstonecomparator
| crop          | seedsitem        | seed
| sugarcane
| netherwart
| portal
| tripwirehook  | tripwire | string
| lockedchest
| flowerpot
| carrot
| potato        = 0
 
| air            = 0
| technicalblocks = 0
| #default        = [[Template:Blast resistance values#Missing value|?]]{{
#if: {{NAMESPACE}}{{#pos: {{PAGENAME}} | / }} || [[Category:Missing blast resistance]]
}}
}}</includeonly><noinclude>{{documentation}}<!-- Put categories/interwiki on the documentation page --></noinclude>

Latest revision as of 20:37, 12 April 2020

[create] [refresh]Documentation
This template has no documentation. If you know how to use this template, please create it.