xzeldon 85a48ba186
some new features
- Added new green screen block with glow
- Added GreenScreenBlockModel for fine-tune the block
- Diffuse Shading and Ambient Occlusion has been removed from GreenScreenBlockModel
- GreenScreenBlockModel also ignores the lightmap
2022-05-25 01:33:01 +03:00

20 lines
583 B
Java

package ru.xzeldon.greenscreenmod.block.custom;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Material;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.BlockView;
public class GreenScreenBlock extends Block {
public GreenScreenBlock(Settings settings) {
super(settings);
}
@Override
public float getAmbientOcclusionLightLevel(BlockState state, BlockView world, BlockPos pos) {
return 1.0F;
}
}