Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.
at create-6.0 106 lines 3.5 kB view raw
1plugins { 2 id 'dev.architectury.loom' version '1.10-SNAPSHOT' apply false 3 id 'architectury-plugin' version '3.4-SNAPSHOT' 4 id 'com.github.johnrengelman.shadow' version '8.1.1' apply false 5 id "io.github.pacifistmc.forgix" version "1.2.9-local.10" 6 id "org.moddedmc.wiki.toolkit" version "0.2.4" 7} 8 9architectury { 10 minecraft = minecraft_version 11} 12 13allprojects { 14 group = maven_group 15 version = "$mod_version+$minecraft_version" 16 if (tbversion != "0") version = version + "-tb$tbversion" 17} 18 19forgix { 20 group = "net.lerariemann.infinity" 21 mergedJarName = "infinite-dimensions-${version}.jar" 22 23 forge { 24 projectName = "forge" 25 jarLocation = "build/libs/infinity-forge-${version}.jar" 26 } 27 28 fabric { 29 projectName = "fabric" 30 jarLocation = "build/libs/infinity-fabric-${version}.jar" 31 } 32 33} 34wiki { 35 docs { 36 // The name of the object (examplemod) should match the registered wiki project ID (if it exists). 37 "infinite-dimensions" { 38 // The path to the folder containing the documentation metadata file (sinytra-wiki.json) 39 root = file('docs') 40 } 41 } 42} 43 44subprojects { 45 apply plugin: 'dev.architectury.loom' 46 apply plugin: 'architectury-plugin' 47 apply plugin: 'maven-publish' 48 49 base { 50 // Set up a suffixed format for the mod jar names, e.g. `example-fabric`. 51 archivesName = "$rootProject.archives_name-$project.name" 52 } 53 54 repositories { 55 // Add repositories to retrieve artifacts from in here. 56 // You should only use this when depending on other mods because 57 // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. 58 // See https://docs.gradle.org/current/userguide/declaring_repositories.html 59 // for more information about repositories. 60 maven { // Flywheel 61 url = "https://modmaven.dev" 62 content { 63 // need to be specific here due to version overlaps 64 includeGroup("com.jozufozu.flywheel") 65 } 66 } 67 maven { url = "https://maven.createmod.net" } // Create, Ponder, Flywheel 68 } 69 70 dependencies { 71 minecraft "net.minecraft:minecraft:$rootProject.minecraft_version" 72 it.mappings("net.fabricmc:yarn:$minecraft_version+build.$rootProject.yarn_mappings:v2") 73 } 74 75 java { 76 // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task 77 // if it is present. 78 // If you remove this line, sources will not be generated. 79 withSourcesJar() 80 81 sourceCompatibility = JavaVersion.VERSION_17 82 targetCompatibility = JavaVersion.VERSION_17 83 } 84 85 tasks.withType(JavaCompile).configureEach { 86 it.options.release = 17 87 } 88 89 // Configure Maven publishing. 90 publishing { 91 publications { 92 mavenJava(MavenPublication) { 93 artifactId = base.archivesName.get() 94 from components.java 95 } 96 } 97 98 // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. 99 repositories { 100 // Add repositories to publish to here. 101 // Notice: This block does NOT have the same function as the block in the top level. 102 // The repositories here will be used for publishing your artifact, not for 103 // retrieving dependencies. 104 } 105 } 106}