tutorial:blockappearance
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:blockappearance [2021/06/21 13:55] – Write about newer MC versions redgrapefruit | tutorial:blockappearance [2022/01/30 02:43] – [Making a block transparent] solidblock | ||
---|---|---|---|
Line 7: | Line 7: | ||
To fix this, you need to set your block' | To fix this, you need to set your block' | ||
- | In a client-sided mod initializer, | + | In a [[documentation: |
<code java> | <code java> | ||
BlockRenderLayerMap.INSTANCE.putBlock(ExampleMod.MY_BLOCK, | BlockRenderLayerMap.INSTANCE.putBlock(ExampleMod.MY_BLOCK, | ||
Line 27: | Line 27: | ||
If you do not mark your block as non-opaque like this, then block faces behind the block will not render and you will be able to see through the world. | If you do not mark your block as non-opaque like this, then block faces behind the block will not render and you will be able to see through the world. | ||
+ | Be sure to add your client entrypoint to fabric.mod.json. | ||
+ | You can do this like so: | ||
+ | <code json> | ||
+ | |||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | }, | ||
+ | </ | ||
+ | |||
+ | Note: For non-transparent blocks that are not full, you may have to ovverride the '' | ||
===== Making a block invisible ===== | ===== Making a block invisible ===== | ||
First we need to make the block appear invisible. | First we need to make the block appear invisible. |
tutorial/blockappearance.txt · Last modified: 2024/02/05 16:03 by haykam