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.

dimazha

Members
  • Joined

  • Last visited

Everything posted by dimazha

  1. Hello When I try to build my project, terminal shows me this: Failed to apply plugin 'forge'. Plugin with id 'maven' not found. There is my build.gradle: buildscript { repositories { maven { url = 'https://maven.minecraftforge.net/' } maven { url = 'https://plugins.gradle.org/m2' } mavenCentral() } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' def jsonFile = file('./src/main/resources/mcmod.info') def parsedJson = new groovy.json.JsonSlurper().parseText(jsonFile.text) version = parsedJson.version group = "mcheli" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "McHeli" sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' minecraft { version = "1.7.10-10.13.4.1558-1.7.10" runDir = "eclipse" } // A little hack to fix codechicken's crazy maven structure (at least in 1.7.10) eclipse.classpath.file.whenMerged { cp -> // Find all codechicken source jars def srcent = cp.entries.findAll { entry -> entry.path.contains("codechicken") && entry.path.endsWith("-src.jar") } // Remove them from classpath cp.entries.removeAll srcent // Map the source entries to their dev counterparts based on basename Map<String, File> srcmap = new HashMap<String, File>() srcent.forEach { entry -> def file = new File(entry.path) srcmap.put(file.getName().replace("-src.jar", "-dev.jar"), file) } // Create file reference factory def fileref = new org.gradle.plugins.ide.eclipse.model.internal.FileReferenceFactory() // Find all codechicken development jars cp.entries.findAll { entry -> entry.path.contains("codechicken") && entry.path.endsWith("-dev.jar") }.forEach { entry -> File srcmapping = new File(entry.path) // Initialize the srcmapping from the dev jar path srcmapping = srcmap.get(srcmapping.getName()) // Transform it using the sourcemap entry.sourcePath = fileref.fromFile(srcmapping) // Set the source path } } repositories { maven { name = 'ModMaven' url = 'https://modmaven.dev' } //maven { // name = "CurseForge" // url = "https://minecraft.curseforge.com/api/maven/" //} } dependencies { // compile 'codechicken:CodeChickenCore:1.7.10-1.0.4.29:dev' // compileOnly 'codechicken:CodeChickenCore:1.7.10-1.0.4.29:src' // // compile 'codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev' // compileOnly 'codechicken:CodeChickenLib:1.7.10-1.1.3.140:src' // // compile 'codechicken:NotEnoughItems:1.7.10-1.0.3.74:dev' // compileOnly 'codechicken:NotEnoughItems:1.7.10-1.0.3.74:src' //compileOnly 'inventory-tweaks:InventoryTweaks:1.62+beta.84:api' } compileJava.options.encoding = 'UTF-8' 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' } } task version { doFirst { println(sourceSets.main.resources.srcDirs) println project.version } } What am I doing wrong?

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.