Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- maven { url = 'https://maven.minecraftforge.net' }
- mavenCentral()
- }
- dependencies {
- classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
- }
- }
- apply plugin: 'net.minecraftforge.gradle'
- apply plugin: 'eclipse'
- version = '1.0'
- group = 'com.yourname.modid'
- archivesBaseName = 'modid'
- java.toolchain.languageVersion = JavaLanguageVersion.of(17)
- minecraft {
- mappings channel: 'official', version: '1.18.2'
- accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
- runs {
- client {
- workingDirectory project.file('run')
- property 'forge.logging.markers', 'REGISTRIES'
- property 'forge.logging.console.level', 'debug'
- mods {
- examplemod {
- source sourceSets.main
- }
- }
- }
- server {
- workingDirectory project.file('run')
- property 'forge.logging.markers', 'REGISTRIES'
- property 'forge.logging.console.level', 'debug'
- mods {
- examplemod {
- source sourceSets.main
- }
- }
- }
- }
- }
- repositories {
- maven { // JEI & Tinkers
- name 'DVS1 Maven FS'
- url 'https://dvs1.progwml6.com/files/maven'
- }
- }
- dependencies {
- minecraft 'net.minecraftforge:forge:1.18.2-40.1.0'
- compileOnly "mezz.jei:jei-1.15.2:6.0.0.4:api"
- }
- tasks.withType(JavaCompile).configureEach {
- options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
- }
- apply from: 'mcreator.gradle'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement