设置重铸台的自发光

This commit is contained in:
Atsuihsio 2024-08-14 23:53:40 +08:00
parent e763bbc5c1
commit 43dbb4c31d

View file

@ -33,7 +33,7 @@ public class ReforgingTableBlock extends Block {
private static final Component CONTAINER_TITLE = Component.translatable("container.superbwarfare.reforging_table"); private static final Component CONTAINER_TITLE = Component.translatable("container.superbwarfare.reforging_table");
public ReforgingTableBlock() { 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)); this.registerDefaultState(this.stateDefinition.any().setValue(FACING, Direction.NORTH));
} }
@ -57,6 +57,12 @@ public class ReforgingTableBlock extends Block {
return true; return true;
} }
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 0;
}
@Override @Override
public VoxelShape getVisualShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) { public VoxelShape getVisualShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) {
return Shapes.empty(); return Shapes.empty();