Open zhouzhouthezhou opened 11 months ago
Saw this in another mod might help idk - in their block impl of BaseEntityBlock
private boolean canLightPass(BlockState state){ return !(state.getValue(TOP_MODULE).canLightPass() || state.getValue(CENTER_MODULE).canLightPass() ||state.getValue(BOTTOM_MODULE).canLightPass()); }
@Override
public boolean propagatesSkylightDown(@NotNull BlockState state, @NotNull BlockGetter world, @NotNull BlockPos pos) {
return this.canLightPass(state);
}
@SuppressWarnings("deprecation")
@Override
public float getShadeBrightness(@NotNull BlockState state, @NotNull BlockGetter world, @NotNull BlockPos pos) {
return this.canLightPass(state) ? 0.95F : 1.0F;
}
@PJWahlgren ^
make it do