Template:Blast resistance values: Difference between revisions

Add missing jack o'lantern and iron trapdoor
switch input transforms to use variables so they can be spread out a bit, do more transforms to simplify (if only a bit) listing stuff out and allow more free-form input; a bit of rearranging and a few additions
Line 1: Line 1:
<includeonly>{{
<includeonly>{{ #vardefine: $block | {{ lc: {{<!-- initial transform: lowercase, singularize -->
  #switch: {{ #replace: {{ #replace: {{ ucfirst: {{ #replace: {{ lc: {{
     #switch: {{ lc: {{ #explode: {{{1}}} || -1 }} }}
     #switch: {{ lc: {{ #explode: {{{1}}} || -1 }} }}
     | glass | stairs | bars | cactus | leaves | grass = {{{1}}} <!-- don't strip the trailing "s" from these; that just looks weird =) -->
     | glass | steps | stairs | bars | cactus | leaves | grass = {{{1}}} <!-- don't strip the trailing "s" from these; that just looks weird =) -->
     | #default = {{
     | #default = {{
       #ifeq: {{ #sub: {{{1}}} | -1 }} | s
       #ifeq: {{ #sub: {{{1}}} | -1 }} | s
Line 8: Line 7:
       | {{{1}}}
       | {{{1}}}
     }}
     }}
   }} }} | wooden | wood }} }} | ( }} | ) }}<!--
   }} }}
}}{{ #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 }}
    }}
  }}
}}{{ #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
all values per [[User:Orthotope/blocks]] as of 1.5; do not change them without cause


-->
-->
| Barrier
| barrier
| Bedrock
| bedrock
| Command block
| command
| End portal
| endportal
| End portal frame
| endportalframe = 18,000,000
| End portal block = 18,000,000


| Anvil
| anvil
| Obsidian
| obsidian
| Enchantment table = 6,000
| enchantmenttable = 6,000


| Ender chest = 3,000
| enderchest = 3,000


| Water | Still water | Flowing water
| water | stillwater | flowingwater
| Lava | Still lava = 500
| lava | stilllava = 500


| Flowing lava = 0
| flowinglava = 0


| End stone
| endstone
| Dragon egg = 45
| dragonegg = 45


| Stone
| stone
| Stone brick
| stonebrick
| Cobblestone
| cobblestone
| Block of gold    | Gold block
| blockofdiamond  | diamond
| Block of iron    | Iron block
| blockofemerald  | emerald
| Block of diamond | Diamond block
| blockofgold    | gold
| Block of emerald | Emerald block
| blockofiron    | iron
| Block of redstone | Redstone block
| blockofredstone | redstoneblock
| Double slab     | Stone double slab | Cobblestone double slab | Wood double slab | Sandstone double slab | Quartz double slab
| doubleslab     | stonedoubleslab | cobblestonedoubleslab | wooddoubleslab | sandstonedoubleslab | quartzdoubleslab
| Stone slab      | Cobblestone slab  | Sandstone slab | Quartz slab
| slab           | stoneslab       | cobblestoneslab                        | sandstoneslab      | quartzslab
| Brick            | Brick block
| brick
| Moss stone
| mossstone      | mosscobblestone
| Cobblestone wall
| cobblestonewall
| Nether brick
| netherbrick
| Nether brick fence
| netherbrickfence
| Nether brick stairs
| netherbrickstairs
| Stone stairs     | Brick stairs      | Stone brick stairs
| stonestairs     | brickstairs    | stonebrickstairs
| Iron bars
| ironbars
| Hardened clay
| hardenedclay
| Jukebox = 30
| jukebox = 30


| Monster spawner
| monsterspawner
| Iron door
| irondoor
| Iron trapdoor = 25
| irontrapdoor = 25


| Cobweb = 20
| cobweb = 20


| Dispenser
| dispenser
| Dropper
| dropper
| Furnace     | Burning furnace
| furnace     | burningfurnace
| Stonecutter | Stone cutter    = 17.5
| stonecutter = 17.5


| Wood plank
| coalore
| Emerald ore
| diamondore
| Gold ore
| emeraldore
| Iron ore
| goldore
| Coal ore
| ironore
| Diamond ore
| lapislazuli
| Emerald ore
| lapislazuliore
| Nether quartz ore
| netherquartzore
| Lapis lazuli ore
| wooddoor
| Lapis lazuli block
| woodplank
| Wood stairs
| woodslab
| Wood slab
| woodstairs
| Wood door
| redstoneore | glowingredstoneore
| Redstone ore | Glowing redstone ore
| fence      | fencegate
| Fence        | Fence gate
| cocoaplant
| Cocoa plant
| trapdoor
| Trapdoor
| beacon
| Beacon
| hopper = 15
| Hopper = 15


| Chest
| chest
| Crafting table
| craftingtable
| Trapped chest = 12.5
| trappedchest = 12.5


| Cauldron
| cauldron
| Wood = 10
| wood = 10


| Bookshelf = 7.5
| bookshelf = 7.5


| Sign
| sign
| Pumpkin
| pumpkin
| Melon | Melon block
| melon
| Jack o'lantern | Jack 'o' lantern | Jack-o-lantern
| jackolantern
| Head | Mob head = 5
| head | mobhead = 5


| Sandstone
| sandstone
| Sandstone stairs | Quartz stairs
| sandstonestairs | quartzstairs
| Note block
| note
| Wool
| wool
| Block of quartz | Block of pillar quartz | Chiseled quartz block = 4
| blockofquartz | blockofpillarquartz | blockofchiseledquartz
| quartz       | pillarquartz        | chiseledquartz = 4


| Spawn egg | Monster egg | Hidden silverfish | Silverfish block | Block 97 = 3.75
| spawnegg | monsteregg | silverfish | hiddensilverfish | block97 = 3.75


| Powered rail
| poweredrail
| Detector rail
| detectorrail
| Activator rail
| activatorrail
| Rail = 3.5
| rail = 3.5


| Grass block
| grass
| Gravel
| gravel
| Sponge
| sponge
| Farmland | Farming
| farmland | farming
| Clay | Clay block = 3
| clay = 3


| Dirt
| dirt
| Sand
| sand
| Sticky piston
| sticky piston
| Piston
| piston
| Block 34 | Piston extension | Piston arm
| block34 | pistonextension | pistonarm
| Lever
| lever
| Pressure plate | Stone pressure plate | Wood pressure plate
| pressureplate | stonepressureplate | woodpressureplate
| Weighted pressure plate
| weightedpressureplate
| Button
| button | woodbutton | stonebutton
| Mycelium
| mycelium
| Ice
| ice
| Packed ice
| packedice
| Soul sand
| soulsand
| Brewing stand
| brewingstand
| Cake = 2.5
| cake = 2.5


| Ladder
| ladder
| Cactus
| cactus
| Netherrack = 2
| netherrack = 2


| Glass | Glass pane
| glass | glasspane
| Glowstone | Glowstone block
| glowstone
| Redstone lamp = 1.5
| redstonelamp = 1.5


| Leaves
| leaves
| Bed
| bed
| Huge brown mushroom | Huge red mushroom | Huge mushroom
| hugemushroom | hugebrownmushroom | hugeredmushroom
| Vine
| vine
| Snow block
| snow
| Snow
| daylightdetector | daylightsensor = 1
| Daylight detector | Daylight sensor = 1


| Snow cover = 0.5
| snowcover = 0.5


| Sapling
| sapling
| Tall grass
| tallgrass
| Dead bush        | Dead shrub
| deadbush      | deadshrub
| Block 36          | Piston moving
| block36      | pistonmoving
| Flower            | Rose
| flower        | rose
| Mushroom          | Red mushroom    | Brown mushroom
| mushroom      | redmushroom      | brownmushroom
| Pumpkin stem      | Melon stem
| pumpkinstem  | melonstem
| Lily pad
| lily pad
| Tnt
| tnt
| Torch
| torch
| Fire
| fire
| Redstone dust     | Redstone wire    | Redstone
| redstonedust  | redstonewire     | redstone
| Crop              | Seeds item      | Seed
| redstonetorch
| Redstone torch
| repeater      | redstonerepeater | activerepeater | activeredstonerepeater | lockedrepeater | lockedredstonerepeater
| Sugar cane
| comparator    | redstonecomparator
| Nether wart      | Netherwart
| crop          | seedsitem        | seed
| Portal
| sugarcane
| Redstone repeater | Active redstone repeater
| netherwart
| Tripwire hook | Tripwire | String
| portal
| Locked chest
| tripwirehook  | tripwire | string
| Flower pot
| lockedchest
| Carrot
| flowerpot
| Potato
| carrot
| Comparator | Redstone comparator = 0
| potato        = 0


| Air = 0
| air            = 0
| Technical blocks = 0
| technicalblocks = 0
| #default = [[Template:Blast resistance values#Missing value|?]]{{
| #default       = [[Template:Blast resistance values#Missing value|?]]{{
#if: {{NAMESPACE}}{{#pos: {{PAGENAME}} | / }} || [[Category:Missing blast resistance]]
#if: {{NAMESPACE}}{{#pos: {{PAGENAME}} | / }} || [[Category:Missing blast resistance]]
}}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{documentation}}<!-- Put categories/interwiki on the documentation page --></noinclude>
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->