Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lukas562

Members
  • Joined

  • Last visited

  1. ugh, i dont have any stuff exept main.java in the io.github.lukas562dev package
  2. oh, now IntelliJ regognises the class when i changed the name to "Main"
  3. how do i get it?
  4. // For those who want the bleeding edge buildscript { repositories { jcenter() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' /* // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot plugins { id "net.minecraftforge.gradle.forge" version "2.0.2" } */ version = "1.0" group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "modid" minecraft { version = "1.8.9-11.15.1.2318-1.8.9" 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 allways work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "stable_20" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, // except that these dependencies get remapped to your current MCP mappings //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // for more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } processResources { // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' // replace version and mcversion expand 'version':project.version, 'mcversion':project.minecraft.version } // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } That is the build.gradle (i think that its default and i havent changed it) Forge version: 11.15.1.2318 (<- Checked from files.minecraftforge.net) (I downloaded the mdk like 2-5h ago)
  5. Im using 1.8.9
  6. error: 19:39:52: Executing task 'runClient'... This mapping 'stable_20' was designed for MC 1.8.8! Use at your own peril. :deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev UP-TO-DATE :downloadClient SKIPPED :downloadServer SKIPPED :splitServerJar SKIPPED :mergeJars SKIPPED :applyBinaryPatches SKIPPED :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings SKIPPED :genSrgs SKIPPED :deobfMcMCP SKIPPED :sourceApiJava UP-TO-DATE :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava UP-TO-DATE warning: [options] bootstrap class path not set in conjunction with -source 1.6 C:\Users\AreUDumb\Coding\AutoPvP\build\sources\main\java\io\github\lukas562dev\main.java:8: error: cannot find symbol @Mod(modid = autopvp.MODID, version = autopvp.VERSION) ^ symbol: variable autopvp C:\Users\AreUDumb\Coding\AutoPvP\build\sources\main\java\io\github\lukas562dev\main.java:8: error: cannot find symbol @Mod(modid = autopvp.MODID, version = autopvp.VERSION) ^ symbol: variable autopvp 2 errors 1 warning :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 16.749 secs Compilation failed; see the compiler error output for details. 19:40:10: Task execution finished 'runClient'.
  7. need help with mcmod.info main.java: (Path: src\main\java\io\github\lukas562dev\main.java) package io.github.lukas562dev; import net.minecraft.init.Blocks; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; @Mod(modid = AutoPvP.MODID, version = AutoPvP.VERSION) public class main { public static final String MODID = "autopvp"; public static final String VERSION = "1.0"; @EventHandler public void init(FMLInitializationEvent event) { // some example code System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName()); } } mcmod.info: (Path: src\main\resources\mcmod.info) [ { "modid": "autopvp", "name": "AutoPvP", "description": "Automatically PvPs for you!", "version": "${version}", "mcversion": "${mcversion}", "url": "https://lukas562dev.github.io/AutoPvP", "updateUrl": "https://github.com/Lukas562Dev/AutoPvP/releases", "authorList": ["Lukas562"], "credits": "Lukas562", "logoFile": "", "screenshots": [], "dependencies": [] } ]

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.