Diferencia entre revisiones de «Valores de Datos»

Leynaf (discusión | contribs.)
Sin resumen de edición
Leynaf (discusión | contribs.)
Sin resumen de edición
Línea 497: Línea 497:
{{:Leaves/DV2}}
{{:Leaves/DV2}}


=== [[Wool]], [[Hardened Clay|Stained Clay]], [[Stained Glass]] and [[Carpet]] ===
=== [[Lana]], [[Arcilla endurecida|artilla tintada]], [[cristal tintado]] y [[alfombra]] ===


These values specify the color of the wool, Stained Clay, Stained Glass and Carpet. This data is stored in block metadata for placed wool, Stained Clay, Stained Glass or Carpet, and as the "damage" for the item in the inventory.
These values specify the color of the wool, Stained Clay, Stained Glass and Carpet. This data is stored in block metadata for placed wool, Stained Clay, Stained Glass or Carpet, and as the "damage" for the item in the inventory.
Línea 1031: Línea 1031:
{{:Mob head/DV}}
{{:Mob head/DV}}


=== [[Block of Quartz]] ===
=== [[Bloque de cuarzo]] ===


{{:Block of Quartz/DV}}
{{:Block of Quartz/DV}}


=== [[Coal]] ===
=== [[Carbón]] ===


{{:Coal/DV}}
{{:Coal/DV}}


=== [[Dyeing|Dyes]] ===
=== [[Tintes|Tinte]] ===


{{Dyes}}
{{Dyes}}


=== [[Fish]] ===
=== [[Pescado]] ===


Both raw and cooked fish use the same data values. Note that clownfish and pufferfish cannot be cooked.
Both raw and cooked fish use the same data values. Note that clownfish and pufferfish cannot be cooked.
Línea 1049: Línea 1049:
{{:Fish/DV}}
{{:Fish/DV}}


=== [[Anvil]] ===
=== [[Yunque]] ===


0x1 is the bit that determines whether the anvil is orientated in a north-south (0) or a west-east (1) direction. 0x4 and 0x8 are bits which determine whether the anvil is a regular (0x4 & 0x8 = 0), a slightly damaged (0x4 = 1) or a very damaged (0x8 = 1) one.
0x1 is the bit that determines whether the anvil is orientated in a north-south (0) or a west-east (1) direction. 0x4 and 0x8 are bits which determine whether the anvil is a regular (0x4 & 0x8 = 0), a slightly damaged (0x4 = 1) or a very damaged (0x8 = 1) one.


=== [[Potions]] ===
=== [[Pociones]] ===


A [[Glass Bottle]] filled with a potion. Potion type is stored in item's damage value as a 16-bit number. Potion effect, name, and other flags are encoded on bits. Effect duration itself isn't there, but can be calculated from other values.
Un[[frasco de cristal]] lleno de una poción. Potion type is stored in item's damage value as a 16-bit number. Potion effect, name, and other flags are encoded on bits. Effect duration itself isn't there, but can be calculated from other values.
<!-- Code snippet has been moved to [[Talk:Data_values#Potions_code|the Talk page]], if anyone feels like puzzling it out there. -->
<!-- Code snippet has been moved to [[Talk:Data_values#Potions_code|the Talk page]], if anyone feels like puzzling it out there. -->


Línea 1067: Línea 1067:
! 0
! 0
| 1 || 0001
| 1 || 0001
|rowspan="4"|Potion effect
|rowspan="4"|Efecto de poción
|rowspan="6"|Potion name
|rowspan="6"|Nombre de poción
|-
|-
! 1
! 1