|
|
|
@ -31,7 +31,7 @@ public abstract class AbstractFieldBlock extends SimpleBlock {
|
|
|
|
|
public static final DirectionProperty FACING = Properties.FACING;
|
|
|
|
|
|
|
|
|
|
public AbstractFieldBlock(boolean hasCollision) {
|
|
|
|
|
super((hasCollision ? FabricBlockSettings.of(EnergonRelics.FIELD_MATERIAL) : FabricBlockSettings.of(EnergonRelics.FIELD_MATERIAL).noCollision()).strength(-1.0F, 3600000.8F).dropsNothing().nonOpaque().lightLevel(4).emissiveLighting((state, world, pos) -> true).nonOpaque().sounds(BlockSoundGroup.GLASS).allowsSpawning((state, world, pos, type) -> false).solidBlock((state, world, pos) -> false).suffocates((state, world, pos) -> false).blockVision((state, world, pos) -> false));
|
|
|
|
|
super((hasCollision ? FabricBlockSettings.of(EnergonRelics.FIELD_MATERIAL) : FabricBlockSettings.of(EnergonRelics.FIELD_MATERIAL).noCollision()).strength(-1.0F, 3600000.8F).dropsNothing().nonOpaque().lightLevel(4).emissiveLighting((state, world, pos) -> true).nonOpaque().sounds(BlockSoundGroup.GLASS).allowsSpawning((state, world, pos, type) -> false).solidBlock((state, world, pos) -> false).suffocates((state, world, pos) -> hasCollision).blockVision((state, world, pos) -> false));
|
|
|
|
|
setDefaultState(getDefaultState().with(FACING, Direction.NORTH));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|