tutorial:blocks
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:blocks [2019/11/14 22:00] – fudge | tutorial:blocks [2020/01/04 16:04] – [Next Steps] Classes? jamieswhiteshirt | ||
---|---|---|---|
Line 24: | Line 24: | ||
{ | { | ||
// block creation | // block creation | ||
- | […] | + | [...] |
| | ||
@Override | @Override | ||
Line 159: | Line 159: | ||
Your custom block should now be transparent! | Your custom block should now be transparent! | ||
+ | |||
+ | |||
+ | ==== Custom VoxelShape ==== | ||
+ | |||
+ | When making custom blocks which do not entirely fill the block, the adjacent blocks might hide their faces. In this case of a custom vertical slab it would look like this: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | We have to define the VoxelShape of the new block into one which is not an entire block: | ||
+ | |||
+ | < | ||
+ | @Override | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | By doing so we also define getCollisionShape, | ||
+ | |||
+ | {{: | ||
+ | |||
==== Next Steps ==== | ==== Next Steps ==== | ||
[[tutorial: | [[tutorial: | ||
- | [[tutorial: | + | [[tutorial: |
tutorial/blocks.txt · Last modified: 2023/11/18 08:34 by solidblock