Template:Hardness values: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
m KnightMiner moved page Template:Hardness Values to Template:Hardness values: Better capitalization
ta da! Updated to latest version
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
<includeonly>{{
| Bedrock = -1
#vardefine: $block | {{{1}}}<!-- easy testing: insert test value here -->}}{{
| Portal = -1
#vardefine: $block | {{ lc: {{<!-- initial transform: lowercase, singularize -->
| Water = 100
  #switch: {{lc:{{#explode: {{ #var: $block }} || -1 }} }}
| Lava = 100
  | glass
| Obsidian = 10
  | steps | stairs
| Iron Door = 5
  | bars
| Diamond (Block) = 5
  | cactus
| Iron (Block) = 5
  | leaves
| Monster Spawner = 5
  | grass
| Dispenser = 3.5
  | potatoes = {{ #var: $block }} <!-- don't strip the trailing "s" from these; that just looks weird =) -->
| Furnace = 3.5
  | #default = {{
| Wooden Door = 3
    #ifeq: {{ #sub: {{ #var: $block }} | -1 }} | s
| Coal (Ore) = 3
    | {{ #sub: {{ #var: $block }} || -1 }}
| Diamond (Ore) = 3
    | {{ #var: $block }}
| Gold (Ore) = 3
    }}
| Iron (Ore) = 3
  }} }}
| Lapis Lazuli (Ore) = 3
}}{{
| Redstone (Ore) = 3
#vardefine: $block | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{
| Gold (Block) = 3
  #var: $block }}
| Lapis Lazuli (Block) = 3
  | wooden | wood }}
| Chest = 2.5
  | mossy | moss }}
| Crafting Table = 2.5
  | steps | stairs }}
| Brick (Block) = 2
  | ( }}
| Cobblestone = 2
  | ) }}
| Moss Stone = 2
  | ' }}
| Fence = 2
  | - }}<!-- "wooden" to "wood", "mossy" to "moss", "steps" to "stairs", strip parentheses, apostrophes, hyphen-minuses -->
| Jukebox = 2
}}{{
| Slabs = 2
#vardefine: $block | {{
| Stairs = 2
  #ifeq: {{ #explode: {{ #var: $block }} || -1 }} | block<!-- strip "block" -->| {{
| Wood = 2
    #switch: {{ #var: $block }}
| Wooden Plank = 2
    | redstone block
| Bookshelf = 1.5
    | grass block = {{ #var: $block }}
| Stone = 1.5
    | #default = {{
| Jack-O-Lantern = 1
      #replace: {{ #var: $block }} | block }}
| Pumpkin = 1
    }}
| Sign = 1
  | {{ #var: $block }}
| Note Block = 0.8
  }}
| Sandstone = 0.8
}}{{
| Wool = 0.8
#vardefine: $block | {{
| Rails = 0.7
  #replace: {{ #var: $block }} }}<!-- final transform: strip whitespace -->
| Clay (Block) = 0.6
}}{{
| Farming = 0.6
#switch: {{ #var: $block }}<!--
| Sponge = 0.6
 
| Grass = 0.6
all values per the minecraft source code as of minecraft 1.7.10, do not changed them without cause
| Gravel = 0.6
 
| Button = 0.5
-->
| Cake = 0.5
| flowinglava  | lava
| Dirt = 0.5
| flowingwater | water = 100
| Ice = 0.5
 
| Lever = 0.5
| obsidian = 50
| Pressure Plates = 0.5
 
| Sand = 0.5
| enderchest = 22.5
| Soul Sand = 0.5
 
| Cactus = 0.4
| anvil
| Ladders = 0.4
| coal          | blockofcoal
| Netherrack = 0.4
| diamond      | blockofdiamond
| Glass = 0.3
| emerald      | blockofemerald
| Glowstone (Block) = 0.3
| enchantingtable
| Bed = 0.2
| iron          | blockofiron | ironbar | irondoor
| Leaves = 0.2
| mobspawner    | monsterspawner
| Snow (Block) = 0.2
| redstoneblock | blockofredstone = 5
| Snow = 0.1
 
| Air = 0
| web = 4
| Seeds (Item) = 0
 
| Fire = 0
| dispenser
| Flowers = 0
| dropper
| Mushrooms = 0
| furnace = 3.5
| Redstone (Repeater) = 0
 
| Redstone (Torch) = 0
| beacon
| Redstone (Wire) = 0
| coalore
| Sugar Cane = 0
| diamondore
| Sapling = 0
| dragonegg
| TNT = 0
| emeraldore
| Torch = 0
| endstone
| #default = [[Template:Hardness Values#Missing_value|?]]}}</includeonly><noinclude>
| gold    | blockofgold | goldore
| hopper
| ironore
| lapis    | lapislazuli | blockoflapis | blockoflapislazuli
| lapisore | lapislazuliore
| quartzore
| redstoneore
| trapdoor
| wooddoor = 3
 
| chest | trappedchest
| craftingtable = 2.5
 
| brick      | brickstairs
| cauldron
| cobblestone | stonestairs      | cobblestonewall |
| doubleslab  | wooddoubleslab
| fence      | fencegate
| jukebox
| mossstone  | mosscobblestone
| netherbrick | netherbrickfence | netherbrickstairs
| slab        | woodslab
| log
| woodplank  | woodstairs = 2
 
| bookshelf
| stone
| stonebrick | stonebrickstairs = 1.5
 
| hardenedclay
| stainedclay = 1.25
 
| melon
| pumpkin | jackolantern
| sign
| skull | mobhead = 1
 
| note
| quartz | blockofquartz | quartzstairs
| sandstone | sandstonestairs
| wool = 0.8
 
| monsteregg | block97 = 0.75
 
| rail | detectorrail | poweredrail | activatorrail = 0.7
 
| clay
| farmland
| grass block
| gravel
| lilypad
| mycelium
| sponge = 0.6
 
| button | stonebutton | woodbutton
| brewingstand
| cake
| dirt | podzol | coarse dirt
| haybale | hay
| ice | packedice
| lever
| piston          | stickypiston
| pistonextension | pistonhead        | block34
| pressureplate        | stonepressureplate        | woodpressureplate
| weightedpressureplate | heavyweightedpressureplate | lightweightedpressureplate
| sand
| soulsand = 0.5
 
| cactus
| ladder
| netherrack = 0.4
 
| glass | glasspane
| glowstone
| redstonelamp
| stainedglass | stainedglasspane = 0.3
 
| bed
| cocoa        | cocoaplant
| daylightdetector
| hugemushroom | hugebrownmushroom | hugeredmushroom
| leaves
| vine
| snow = 0.2
 
| carpet
| snowcover = 0.1
 
| carrot
| comparator | redstonecomparator
| deadbush
| flower
| flowerpot
| fire
| grass    | tallgrass
| mushroom  | brownmushroom | redmushroom
| melonstem | melonseed    | pumpkinstem | pumpkinseed
| netherwart
| potato    | potatoes
| redstone  | redstonewire
| repeater  | redstonerepeater
| redstonetorch
| sapling
| sugarcane
| torch
| tripwire | tripwirehook
| tnt
| wheat | crop | seed = 0
 
| bedrock
| commandblock
| endportal      | endportalframe
| pistonextension | block36
| portal = -1
 
| air = n/a
| #default       = [[Template:Hardness values#Missing value|?]]<!-- eventual location, replacing outdated template -->{{
  #if: {{NAMESPACE}}{{#pos: {{PAGENAME}} | / }} || [[Category:Missing blast resistance]]
  }}
}}</includeonly><noinclude>
{{/doc}}
{{/doc}}


[[Category:Data Templates]]
[[Category:Data Templates]]
</noinclude>
</noinclude>

Revision as of 22:51, 28 June 2014