设置重铸台的自发光
This commit is contained in:
parent
e763bbc5c1
commit
43dbb4c31d
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue