From 43dbb4c31d0e0df874e5fac8baa751607ac5e929 Mon Sep 17 00:00:00 2001 From: Atsuihsio <842960157@qq.com> Date: Wed, 14 Aug 2024 23:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=87=8D=E9=93=B8=E5=8F=B0?= =?UTF-8?q?=E7=9A=84=E8=87=AA=E5=8F=91=E5=85=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mcreator/superbwarfare/block/ReforgingTableBlock.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/mcreator/superbwarfare/block/ReforgingTableBlock.java b/src/main/java/net/mcreator/superbwarfare/block/ReforgingTableBlock.java index 289387edc..e4fe1f59c 100644 --- a/src/main/java/net/mcreator/superbwarfare/block/ReforgingTableBlock.java +++ b/src/main/java/net/mcreator/superbwarfare/block/ReforgingTableBlock.java @@ -33,7 +33,7 @@ public class ReforgingTableBlock extends Block { private static final Component CONTAINER_TITLE = Component.translatable("container.superbwarfare.reforging_table"); public ReforgingTableBlock() { - super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(2f)); + super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(2f).lightLevel(s -> 4).hasPostProcess((bs, br, bp) -> true).emissiveRendering((bs, br, bp) -> true)); this.registerDefaultState(this.stateDefinition.any().setValue(FACING, Direction.NORTH)); } @@ -57,6 +57,12 @@ public class ReforgingTableBlock extends Block { return true; } + @Override + public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) { + return 0; + } + + @Override public VoxelShape getVisualShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) { return Shapes.empty();