Siga-nos no @MinecraftWikiPT
|A tradução da página está em andamento|
Sinta-se livre para!
cerca de 10% da tradução está concluída
Opacidade é uma propriedade dos blocos com uma ampla gama de efeitos no mundo do jogo. Seu objetivo principal é informar o motor de jogo se ele precisa desenhar atrás do bloco; um bloco opaco obscurece completamente a visão por trás, enquanto um bloco transparente não. Assim, a transparência não se aplica apenas aos blocos claros como gelo e vidro, mas também coisas como cactos, escadas, e única laje, que não preenchem completamente o seu espaço de bloco.
Por padrão, a opacidade também afeta a forma como a luz se propaga através do mundo. Blocos opacos impedir totalmente a luz de viajar através deles, enquanto blocos transparentes diminuem a intensidade por bloco. Este valor pode ser substituído, porém, existem várias anomalias.
Tipos de blocos transparentes[editar | editar código-fonte]
List of things affected by opacity[editar | editar código-fonte]
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.
- Chests cannot be opened if there is an opaque block on top of them, but transparent blocks above Chests do not prevent them from being opened (if you want it to look like a solid cube is above it use stairs and it will still open).
- You cannot attach torches or other 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 not a fixture), torches (including redstone torches), and Redstone wire.
- 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.
- Redstone behavior (see Redstone circuit and its subpages for details):
- Tree leaves can overwrite transparent blocks when they grow, but they will not overwrite opaque blocks.
- 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.
- A bed can only successfully reset the player's spawn point if the block at its head is opaque. Beds with transparent blocks at their heads may still be slept in, but dying will cause the player to respawn at the original spawn point with the message "Your home bed was missing or obstructed."
- Particles that are affected by gravity (e.g. slime particles) will fall through transparent blocks, but will stop on opaque blocks.
- The growth of grass blocks is linked to how well lit the blocks directly above them are. Reducing that light with an opaque block, a partially transparent block or enough transparent blocks will kill a grass block, as well as prevent grass spreading to nearby dirt blocks.
Anomalies[editar | editar código-fonte]
- Transparency in this sense does not imply that you can actually see through it, which is a quality of the item texture (as specified by the game or resource pack). However, recent versions of Minecraft have provisions against seeing through opaque blocks, regardless of texture. (See "Trivia", below.)
- Transparent blocks can still reduce or block light, according to type:
- Glass and carpet do not reduce the light passing through them, i.e. there is no additional modifier. In other words, light passes through them as if it were air.
- Water and ice are transparent, but have a -2 modifier to light propagation, on top of the normal decrease of 1 per block.
- Leaves don't have any extra effect on block light, but they do diffuse sky light (light from the sky will start to get dimmer when it goes through leaves).
- Slabs, stairs, and farmland block light completely. Also, for the purposes of most game logic, the light level of the block itself is equal to the maximum light level of any of the blocks directly beside or above it. As a result, if these blocks are lit from the top or sides, they are typically one level brighter than a transparent block would be at the same location.
- When placing a beacon, the beacon will treat lava as transparent and will function under it. However, it will not function if placed under water.
Trivia[editar | editar código-fonte]
- Lava is transparent as you would expect, but it is set to completely block light propagation. This is usually unnoticeable since lava has an intrinsic luminance of 15.
- 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.
- If a non-transparent block is given transparent pixels in an edited texture, then instead of showing the block behind it through the transparent part, you will see beyond into the void. This is because the world behind a block is only rendered if the block is set as transparent. (Besides efficiency, this attempts to foil cheating with "X-ray packs".)
- Mob Spawners, while rendered as transparent, are actually solid, allowing torches and redstone to be placed on it and suffocating mobs like solid blocks.