Raeglyn Posted April 2, 2020 Posted April 2, 2020 I have an entirely blank mod that I have built using gradle and am now trying to test in Minecraft (by copying the gradle-built jar into the mods folder of my Minecraft installation). However, on startup I get the following warning: I'm certain this is a stupid error, but it's not clear to me what I need to update in the build.gradle file. This is what mine looks like currently: buildscript { repositories { jcenter() maven { url = "http://files.minecraftforge.net/maven" } flatDir { dirs 'libs' } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. version = "1.0" group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "rosemary" sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = '1.8' } minecraft { version = "1.12.2-14.23.5.2768" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20171003" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } The minecraft version definitely needs to be updated (I'm running 1.15.2, and Forge version 1.15.2-forge-31.1.0), but I'm not sure where to find this snapshot thing. I assume I can't just replace the 1.12.2 with 1.15.2. Thanks! Quote
Animefan8888 Posted April 2, 2020 Posted April 2, 2020 10 minutes ago, Raeglyn said: The minecraft version definitely needs to be updated (I'm running 1.15.2, and Forge version 1.15.2-forge-31.1.0), but I'm not sure where to find this snapshot thing. Go to files.minecraftforge.net and download the latest mdk for 1.15.2 and you can follow this tutorial I have to setup a workspace. Assuming you are using eclipse. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Draco18s Posted April 2, 2020 Posted April 2, 2020 8 hours ago, Raeglyn said: minecraft { version = "1.12.2-14.23.5.2768" This says you're targeting 1.12 Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.