Template:Blast resistance values: Difference between revisions
Jump to navigation
Jump to search
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: {{ 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 | ||
| | | 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 | ||
| | | lily pad | ||
| | | 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|?]]{{ | | #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 --> |