#Help with Java minecraft modding
1 messages · Page 1 of 1 (latest)
import net.minecraft.client.Minecraft;
^
mymod.java:5: Error: Package net.minecraftforge.fml.common does not exist
import net.minecraftforge.fml.common.Mod;
^
mymodmod.java:6: Error: Package net.minecraftforge.fml.common.event does not exist
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
when i try to run javac mymod.java i get this error
You don't use javac to build mods. You need a proper development environment using gradle
You should be able to get that by downloading the MDK for the forge version that you're using
What editor are your using? IntelliJ is recommended for minecraft modding
i use visual studio code
VSCode can be a bit annyoing to work with, but can still work.
ok
What minecraft version are you using?
1.8.9
For 1.8.9 you'll need a special legacy setup as the official MDK no longer works.
This page seems to have some templates: https://legacymoddingmc.github.io/wiki/forge-workspace-setup/
They seem to be focused on 1.7.10, but the same legacy workarounds are needed for 1.8.9
ok
You can join their discord for help specific to modding old versions, as very few people know anything that isn't the same elsewhere
ok ill join their discord thank you for your help
but do you also know how to make a java file into a executable.jar ?
the build task with gradle
oh ok
https://www.youtube.com/watch?v=uQ0NyQzaJ9U this video is from 1 year ago, i did exactly the same thing here i only dont use intellij and it doesent work idk
ik it's a bit complicated but Minecraft Development plugin for IDEA supports only the newest mc versions. Keep in mind that this is 'just works' setup.
Links if you want:
JDK (newest): https://www.oracle.com/java/technologies/downloads/
IntelliJ IDEA: https://www.jetbrains.com/idea/download/
MDK: https://files.minecraftforge.net/net/minecraftfo...