Skip to content
Failed

Changes

Summary

  1. Add base stuff for a block with connected textures (details)
Commit 7e2b6b046495ead163b6f6d3fbde5c997a9c18ca by KnightMiner
Add base stuff for a block with connected textures
Only adds "full", no horizontal or alike. All the models are done using
a Forge blockstate for simplicity, so copying the example Blockstate and
changing the textures is the easiest way to add a model
This is based off the tutorial by Darkhax linked below, though with a
few things modified to make it easier for extending and support adding
via EnumBlocks.
http://tutorials.darkhax.net/connected-block-textures.html
The file was modifiedsrc/main/java/slimeknights/mantle/client/gui/book/element/BookElement.java (diff)
The file was addedsrc/main/resources/assets/mantle/models/block/connected_1.json
The file was addedsrc/main/resources/assets/mantle/models/block/connected_3_T1.json
The file was addedsrc/main/resources/assets/mantle/blockstate/connected_example.json
The file was addedsrc/main/resources/assets/mantle/models/block/connected_0.json
The file was addedsrc/main/resources/assets/mantle/models/block/connected_4_cross.json
The file was addedsrc/main/resources/assets/mantle/models/block/connected_2_angle.json
The file was addedsrc/main/resources/assets/mantle/models/block/connected_4_angle.json
The file was modifiedsrc/main/java/slimeknights/mantle/block/EnumBlock.java (diff)
The file was addedsrc/main/java/slimeknights/mantle/block/EnumBlockConnectedTexture.java
The file was addedsrc/main/java/slimeknights/mantle/block/BlockConnectedTexture.java
The file was addedsrc/main/resources/assets/mantle/models/block/connected_2.json
The file was addedsrc/main/resources/assets/mantle/models/block/connected_3_T2.json
The file was addedsrc/main/resources/assets/mantle/models/block/connected_3_angle.json
The file was addedsrc/main/resources/assets/mantle/models/block/tinted_cube.json