Started by
Blabov
on
Topic category: Troubleshooting, bugs, and solutions
EDIT:
For anyone who is interested in how to fix it:
- Right click your block mod element in mcreator.
- Open mod element in code editor
- Select YourblocknameBlock.java
- In the public class change
extends Block
toextends GlassBlock
- This line of code
import net.minecraft.world.level.block.GlassBlock;
should generate above it, if not copy it from here.
ORIGINAL POST:
Forge 1.20.1
For some reason my custom transparent block is casting shadow.
Light Opacity is set to 0.
Block has transparent parts checked.
Transparency type set to cutout.
Enable connected sides checked.
Block's visual settings in Mcreator:
Block in game with smooth lighting on:
Block in game with smooth lighting off (what I want to achieve when smooth lighting is on):
I tried changing transparency types, changing light opacity value (0, 1, 255, 15, -1, -10, -255), enabling/disabling everything in Visual rendering settings and modifying block's code, so far nothing worked.
Edited by Blabov on Mon, 02/24/2025 - 13:53
does your block have a block entity?
Nope
Found out that vanilla leaves have an identical shadow.
Anyone have at least any concept of an idea on how can I solve this?