fix akashic bookshelves

This commit is contained in:
yrsegal@gmail.com 2022-11-05 13:44:18 -04:00
parent b9c0ced020
commit dcfc11be68
3 changed files with 8 additions and 7 deletions

View file

@ -92,6 +92,7 @@ public class RegisterClientStuff {
x.setRenderLayer(HexBlocks.CONJURED_BLOCK, RenderType.cutout());
x.setRenderLayer(HexBlocks.EDIFIED_DOOR, RenderType.cutout());
x.setRenderLayer(HexBlocks.EDIFIED_TRAPDOOR, RenderType.cutout());
x.setRenderLayer(HexBlocks.AKASHIC_BOOKSHELF, RenderType.cutout());
x.setRenderLayer(HexBlocks.SCONCE, RenderType.cutout());
x.setRenderLayer(HexBlocks.AMETHYST_EDIFIED_LEAVES, RenderType.cutoutMipped());

View file

@ -85,12 +85,12 @@ public class BlockAkashicBookshelf extends Block implements AkashicFloodfiller,
@Override
public boolean hasAnalogOutputSignal(BlockState pState) {
return pState.getValue(HAS_BOOKS);
return true;
}
@Override
public int getAnalogOutputSignal(BlockState pState, Level pLevel, BlockPos pPos) {
return pState.getValue(HAS_BOOKS) ? 15 : 0;
return pState.getValue(HAS_BOOKS) ? 15 : 0; // TODO have an iota -> comparator value mapping?
}
@Nullable

View file

@ -1,10 +1,10 @@
{
"credit": "Made with Blockbench",
"textures": {
"front": "hexcasting:block/akashic/bookshelf",
"side": "hexcasting:block/akashic/bookshelf_horiz",
"particle": "hexcasting:block/akashic/bookshelf_vert",
"top_bottom": "hexcasting:block/akashic/bookshelf_vert"
"front": "hexcasting:block/akashic_bookshelf",
"side": "hexcasting:block/akashic_bookshelf_horiz",
"particle": "hexcasting:block/akashic_bookshelf_vert",
"top_bottom": "hexcasting:block/akashic_bookshelf_vert"
},
"elements": [
{
@ -29,4 +29,4 @@
}
}
]
}
}