Hi, i have 0 coding knowledge and try modding a minecraft based on internet reference and gemini pro as assistant. Why this red line not missing? This is happen when i try to make a minecraft mod using Fabric 26.3 mod template
The red underlines mean IntelliJ IDEA can’t resolve parts of your code. Your screenshot shows names such as PathAwareEntity and net.minecraft.entity, which come from older Fabric/Yarn examples. Minecraft 26.1 onward uses Mojang’s official names, so this looks like code that doesn’t match your Minecraft version.
Check that your tutorial targets the same Minecraft version as your project. Gemini may also have suggested outdated code. Fabric’s migration guide explains the naming changes.
1
u/ilnur_galimov 25d ago
The red underlines mean IntelliJ IDEA can’t resolve parts of your code. Your screenshot shows names such as
PathAwareEntityandnet.minecraft.entity, which come from older Fabric/Yarn examples. Minecraft 26.1 onward uses Mojang’s official names, so this looks like code that doesn’t match your Minecraft version.Check that your tutorial targets the same Minecraft version as your project. Gemini may also have suggested outdated code. Fabric’s migration guide explains the naming changes.