#Help with Java minecraft modding

1 messages · Page 1 of 1 (latest)

spark voidBOT
#

<@&987246399047479336> please have a look, thanks.

wise quarry
#

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

wraith tide
#

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

wise quarry
#

i did that and installed gradle

#

i have tthis rn

wraith tide
#

What editor are your using? IntelliJ is recommended for minecraft modding

wise quarry
#

i use visual studio code

wraith tide
#

VSCode can be a bit annyoing to work with, but can still work.

wise quarry
#

ok

wraith tide
#

What minecraft version are you using?

wise quarry
#

1.8.9

wraith tide
#

For 1.8.9 you'll need a special legacy setup as the official MDK no longer works.

wise quarry
#

oh

#

where can i get that legacy setup

wraith tide
#

They seem to be focused on 1.7.10, but the same legacy workarounds are needed for 1.8.9

wise quarry
#

ok

wraith tide
#

You can join their discord for help specific to modding old versions, as very few people know anything that isn't the same elsewhere

wise quarry
#

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 ?

undone quail
wise quarry
#

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...

▶ Play video