Minecraft Wiki
Advertisement
Fichier:2011-02-22-Feuilles-opaques.png

Quand le feuillage est opaque (graphismes réglés sur "Fast"), ils bloquent le rendu de l'arrière-plan.

Fichier:2011-02-22-Feuilles-transparentes.png

Quand le feuillage est transparent (graphismes "Fancy"), l'arrière-plan est rendu.

La transparence et une propriété des blocs qui a une large gamme d'effets sur le monde. Sa principale utilité pour le moteur de jeu est de permettre de décider s'il est nécessaire d'afficher ce qu'il se trouve derrière le bloc : un bloc opaque masque entièrement ce qui se trouve derrière, tandis qu'un bloc transparent ne le masque que partiellement, voire pas du tout. La transparence ne s'applique pas seulement aux blocs translucides comme la glace ou le verre, mais aussi aux cactus, aux escaliers] ou autres blocs qui ne remplissent pas entièrement leur cube.

Par défaut, la transparence affecte la manière dont la lumière se propage dans le monde. Les blocs opaques bloquent complètement la diffusion de la lumière à travers eux, tandis que les blocs transparents ne font qu'en diminuer l'intensité, d'une unité par bloc. Cette valeur n'est pas appliquée dans tous les cas, et entraîne notamment quelques anomalies.

Types de blocs transparents

Solides cubiques
Glace
 •
Verre
 •
Générateur de monstre
 •
Feuillage
(graphismes "Fancy")
Solides non cubiques
Terre labourée
 •
Dalle
(dalles simples) •
Échelle
 •
Barrière
 •
Gâteau
 •
Lit
 •
Portes
Mécanismes
Rails
 •
Levier
 •
Dalles interrupteur
 •
Bouton en pierre
 •
Redstone (câble)
 •
Redstone (torche)
Blocs non solides Air •
Neige
 •
Torche
 •
Panneau
 •
Feu
 •
Portail
Plantes
Cactus
 •
Canne à sucre
 •
Blé
 •
Fleurs
 •
Champignons
 •
Pousse d'arbre
Fluides
Eau
 •
Lave

Le reste de cette page est à traduire en Français.

List of things affected by Opacity

A lot of the effects of Opacity are non-obvious. Minecraft does not have a "solid" property on blocks, so Opacity is tested when a test for "solidity" would normally occur.

  • Opaque blocks suffocate you, while transparent blocks do not.
  • Monsters cannot spawn on transparent blocks, nor can they spawn inside opaque blocks. However, they can spawn inside a non-solid transparent block, such as Flowers or Redstone Wires.
  • You cannot attach Torches or other wall fixtures to transparent blocks, nor can you place Signs or other items on top of them. Here's the full list of blocks that are restricted this way: Beds, Buttons, Redstone Repeaters, Ladders, Levers, Pressure Plates, Pumpkins, Rails, Snow (not Snow Block, which is OK), Torches (including Redstone Torches}, and Redstone Wire.
  • Opacity determines the direction Dispensers and Furnaces face when they are placed. It also dynamically changes the facing of Chests. These test a static version of Opacity that is not affected by the Leaf graphics toggle.
  • Water which is completely surrounded by water or opaque blocks won't have a current. However, if one of the surrounding blocks is transparent the water will flow down like a waterfall, making it much slower to swim up.
  • Opaque blocks overhead can prevent Redstone Wires from connecting to each other. See the article for details.
  • Tree leaves can overwrite transparent blocks when they grow, but they will not overwrite opaque blocks.
  • Chests cannot be opened if there is an opaque block on top of them, but transparent blocks are OK.
  • Opacity affects door orientation when placed. Doors open counter-clockwise by default, but if they have an opaque wall along their left side they open clockwise.
  • Ghast fireball explosions only start fires on opaque blocks.

Anomalies

  • Leaves are transparent when "Fancy" graphics are on, but opaque when "Fast" graphics are on. This means that you can toggle the graphics mode to achieve interesting effects, like placing torches on leaves or escaping suffocation when a tree grows too close to you. They don't have any extra effect on diffuse (block-generated) light, but they do diffuse sunlight.
  • A single Stone Slab is transparent, while a double Stone Slab is opaque. Both types completely block Light propagation.
  • Farmland is marked as transparent, but it completely blocks light propagation.
  • Water is transparent, but it has a -2 modifier to Light propagation, on top of the normal decrease of 1 per block.
  • Ice is transparent, and has the same -2 modifier to Light propagation.

Trivia

  • Lava is transparent as you would expect, but it is set to completely block light propagation. This is unnoticeable since Lava has an intrisic Luminance of 15.
  • Only opaque blocks can be powered by Redstone power. This does not come up much in practice, because Redstone Wires and Redstone Torches can't be attached to transparent blocks. However, it can be observed by placing a torch underneath Glass, and then noting how adjacent wires are not powered. (If you replace the glass with something opaque they will get power.)
  • In the Nether, your spawn point will always be on top of an opaque block. This is hard to observe, since you warp back to the normal world when you die in the nether.
Advertisement