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 [2020/01/17 13:54] – use nonOpaque() juuz | tutorial:blockappearance [2021/06/21 13:55] – Write about newer MC versions redgrapefruit | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Manipulating a Block' | ====== Manipulating a Block' | ||
- | //This is the 1.15 version of this tutorial. For the 1.14 version, see [[tutorial: | + | //This is the 1.15+ (1.16 and 1.17 work fine too) version of this tutorial. For the 1.14 version, see [[tutorial: |
===== Making a block transparent ===== | ===== Making a block transparent ===== | ||
Line 24: | Line 24: | ||
</ | </ | ||
+ | |||
+ | 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. | ||
===== Making a block invisible ===== | ===== Making a block invisible ===== | ||
Line 39: | Line 41: | ||
@Override | @Override | ||
public VoxelShape getOutlineShape(BlockState blockState, BlockView blockView, BlockPos blockPos, EntityContext entityContext) { | public VoxelShape getOutlineShape(BlockState blockState, BlockView blockView, BlockPos blockPos, EntityContext entityContext) { | ||
- | | + | |
} | } | ||
</ | </ |
tutorial/blockappearance.txt · Last modified: 2024/02/05 16:03 by haykam