User-100181356 (discusión | contribs.) m (Se ha deshecho la revisión 110941 de User-100181356 (disc.) Ups) Etiqueta: Deshacer |
(Página reemplazada por «<includeonly>{{#invoke: block value | value | type=hardness }}</includeonly><noinclude> {{documentation}} <!-- Put categories/interwiki on the documentation page --> <…») Etiqueta: Reemplazo |
||
Línea 1: | Línea 1: | ||
+ | <includeonly>{{#invoke: block value | value | type=hardness }}</includeonly><noinclude> |
||
− | <includeonly>{{ |
||
+ | {{documentation}} |
||
− | #vardefine: $block | {{{1}}}<!-- easy testing: insert test value here -->}}{{ |
||
+ | <!-- Put categories/interwiki on the documentation page --> |
||
− | #vardefine: $block | {{ lc: {{<!-- initial transform: lowercase, singularize --> |
||
− | #switch: {{lc:{{#explode: {{ #var: $block }} || -1 }} }} |
||
− | | glass |
||
− | | steps | stairs |
||
− | | bars |
||
− | | cactus |
||
− | | leaves |
||
− | | grass |
||
− | | potatoes = {{ #var: $block }} <!-- don't strip the trailing "s" from these; that just looks weird =) --> |
||
− | | #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 |
||
− | | grass 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 the minecraft source code as of minecraft 1.7.10, do not changed them without cause |
||
− | |||
− | --> |
||
− | | flowinglava | lava |
||
− | | flowingwater | water = 100 |
||
− | |||
− | | obsidian | obsidiana = 50 |
||
− | |||
− | | enderchest | cofredelfin = 22,5 |
||
− | |||
− | | anvil | yunque |
||
− | | coal | blockofcoal | carbón | bloquedecarbón |
||
− | | diamond | blockofdiamond | diamante | bloquedediamante |
||
− | | emerald | blockofemerald | esmeralda | bloquedeesmeralda |
||
− | | enchantingtable | enchantmenttable | mesadeencantamiento |
||
− | | iron | blockofiron | ironbars | irondoor | hierro | bloquedehierro | barrote | puertadehierro |
||
− | | mobspawner | monsterspawner | generadordecriatura |
||
− | | redstoneblock | blockofredstone | bloquederedstone = 5 |
||
− | |||
− | | web | cobweb | telaraña = 4 |
||
− | |||
− | | dispenser | dispensador |
||
− | | dropper | soltador |
||
− | | furnace | horno = 3,5 |
||
− | |||
− | | beacon | faro |
||
− | | coalore | menadecarbón |
||
− | | diamondore | menadediamante |
||
− | | dragonegg | huevodedragón |
||
− | | emeraldore | menadeesmeralda |
||
− | | endstone | piedradelfin |
||
− | | gold | blockofgold | goldore | oro | bloquedeoro | menadeoro |
||
− | | hopper | tolva |
||
− | | ironore | menadehierro |
||
− | | lapis | lapislazuli | blockoflapis | blockoflapislazuli | lapislázuli | bloquedelapislázuli |
||
− | | lapisore | lapislazuliore | menadelapislázuli |
||
− | | quartzore | netherquartzore | menadecuarzo |
||
− | | redstoneore | menaderedstone |
||
− | | trapdoor | woodtrapdoor | trampilla | trampillademadera |
||
− | | wooddoor | puertademadera = 3 |
||
− | |||
− | | chest | trappedchest | cofre | cofretrampa |
||
− | | craftingtable | mesadetrabajo = 2,5 |
||
− | | boneblock | bloquedehueso = 2 |
||
− | |||
− | | brick | brickstairs | ladrillo |
||
− | | cauldron | caldero |
||
− | | cobblestone | stonestairs | cobblestonestairs | cobblestonewall | roca | escaleradepiedra | muroderoca |
||
− | | doubleslab | wooddoubleslab | stonedoubleslab |
||
− | | fence | fencegate |
||
− | | jukebox |
||
− | | mossstone | mosscobblestone |
||
− | | netherbrick | netherbrickfence | netherbrickstairs |
||
− | | slab | woodslab | stoneslab |
||
− | | log | wood |
||
− | | woodplank | woodstairs = 2 |
||
− | |||
− | | bookshelf | librería |
||
− | | stone | andesite | diorite | granite | piedra | andesita | diorita | granito |
||
− | | stonebrick | stonebrickstairs |ladrillosdepiedra |escalerasdeladrillosdepiedra = 1,5 |
||
− | |||
− | | glazedterracotta | terracotaesmaltada = 1,4 |
||
− | | terracotta | terracota = 1,25 |
||
− | | stainedclay = 1,25 |
||
− | |||
− | | melon |
||
− | | pumpkin | jackolantern |
||
− | | sign |
||
− | | skull | mobhead = 1 |
||
− | |||
− | | note |
||
− | | quartz | blockofquartz | quartzstairs | bloquedecuarzo | cuarzo |
||
− | | sandstone | sandstonestairs |
||
− | | wool | lana |
||
− | |||
− | | monsteregg | block97 = 0,75 |
||
− | |||
− | | rail | detectorrail | poweredrail | activatorrail = 0,7 |
||
− | |||
− | | clay |
||
− | | farmland |
||
− | | grassblock |
||
− | | gravel |
||
− | | lilypad |
||
− | | mycelium |
||
− | | sponge | esponja | esponjahúmeda = 0,6 |
||
− | |||
− | | button | stonebutton | woodbutton |
||
− | | brewingstand |
||
− | | cake |
||
− | |||
− | | dirt | coarsedirt | tierra |
||
− | | concretepowder = 0,5 |
||
− | | podzol | tierra |
||
− | | coarse dirt | tierra |
||
− | | haybale | hay |
||
− | | ice | packedice |
||
− | | frostedice |
||
− | | 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 |
||
− | | daylightsensor | 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 |
||
− | | slimeblock | bloquedeslime = 0 |
||
− | | sugarcane |
||
− | | torch |
||
− | | tripwire | tripwirehook | string |
||
− | | tnt |
||
− | | wheat | crop | seed = 0 |
||
− | |||
− | | barrier |
||
− | | bedrock |
||
− | | structureblock = ∞ |
||
− | | command |
||
− | | endportal | endportalframe |
||
− | | netherportal | portal |
||
− | | pistonextension | block36 = -1 |
||
− | |||
− | | air = N/A |
||
− | | #default = [[Template:Valores de dureza#Valor no introducido|?]]{{ |
||
− | #if: {{NAMESPACE}}{{#pos: {{PAGENAME}} | / }} || [[Categoría:Valor de dureza no especificado]] |
||
− | }} |
||
− | }}</includeonly><noinclude> |
||
− | {{Documentación}} |
||
</noinclude> |
</noinclude> |
Revisión del 16:33 27 nov 2020
Esta plantilla utiliza el Módulo:Block value, con datos almacenados en Módulo:Hardness values.
Estos scripts están escritos en Lua.
Estos scripts están escritos en Lua.
This template is the single source for all Hardness values. It is meant to be the single source for this information; this way, when new blocks are added or values are changed, they can be changed here and automatically propagate everywhere they are used.
Example
{{Valores de dureza|Obsidian}}
becomes ?.
{{Valores de dureza|Non-existing value}}
becomes ?.
Missing value
If you got here by following a "?" link, it means the value for this parameter is not defined. There are two main reasons this could happen:
- The page's name was changed, but it hasn't been updated in this template yet. Edit the module and fix the name.
- There is a new block, and data hasn't been entered for it yet. If you know the correct value, edit the template and add a new entry. Please don't guess or put in something random just to make the "?" go away!
See also
|Valores de resistencia a explosiones=
[Ver | Editar | Purgar]La documentación arriba es transcluída desde Plantilla:Valores de dureza/doc.