Jump to content

Xrated_junior

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Xrated_junior's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. Thanks for the quick replies! Sorry for asking this in the wrong place though. Luckily I did finally get it to work today!
  2. I'm having some difficulties getting mixin to work. I feel like I'm following the correct steps and doing the same as other mods. Probably just being stupid and missing something. After running the command "gradlew genEclipseRuns" I get the following output: FAILURE: Build failed with an exception. * Where: 1.19.x/build.gradle' line: 5 * What went wrong: Plugin [id: 'org.spongepowered.mixin', version: '0.7.+'] was not found in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Plugin Repositories (could not resolve plugin artifact 'org.spongepowered.mixin:org.spongepowered.mixin.gradle.plugin:0.7.+') Searched in the following repositories: Gradle Central Plugin Repository maven(https://maven.minecraftforge.net/) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 7s This is my build.gradle: plugins { id 'eclipse' id 'maven-publish' id 'net.minecraftforge.gradle' version '5.1.+' id "org.spongepowered.mixin" version "0.7.+" } version = "1.19.2-$modVersion" group = 'com.brassamber.modid' archivesBaseName = 'modid' java.toolchain.languageVersion = JavaLanguageVersion.of(17) println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { mappings channel: 'official', version: '1.19.2' // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default. runs { client { workingDirectory project.file('run/client') arg "-mixin.config=modid.mixins.json" property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' property 'forge.enabledGameTestNamespaces', 'modid' mods { modid { source sourceSets.main } } } server { workingDirectory project.file('run/server') arg "-mixin.config=modid.mixins.json" property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' property 'forge.enabledGameTestNamespaces', 'modid' mods { modid { source sourceSets.main } } } gameTestServer { workingDirectory project.file('run/gameTestServer') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' property 'forge.enabledGameTestNamespaces', 'modid' mods { modid { source sourceSets.main } } } data { workingDirectory project.file('run/data') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. args '--mod', 'modid', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') mods { modid { source sourceSets.main } } } } } sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { // Geckolib installation maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' } } mixin { add sourceSets.main, "modid.refmap.json" } dependencies { minecraft 'net.minecraftforge:forge:1.19.2-43.0.8' // Geckolib installation implementation fg.deobf('software.bernie.geckolib:geckolib-forge-1.19:3.1.16') // Apply Mixin AP annotationProcessor 'org.spongepowered:mixin:0.8.5-SNAPSHOT:processor' } jar { manifest { attributes([ "Specification-Title" : "modid", "Specification-Vendor" : "BrassAmber", "Specification-Version" : "$modVersion", "Implementation-Title" : "modid", "Implementation-Version" : "$modVersion", "Implementation-Vendor" : "BrassAmber", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } jar.finalizedBy('reobfJar') publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } } } tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation } This is my modid.mixins.json: (Located in the resources folder) { "required": true, "minVersion": "0.8.5", "package": "com.brassamber.modid.mixin", "refmap": "modid.refmap.json", "compatibilityLevel": "JAVA_17", "mixins": [ ], "client": [ ] }
  3. Suddenly fixed after deleting some files. I probably was stupid
  4. I'm new to Data Generators and quite unsure how they work yet. I've been taking a look at the BetterEnd mod for a reference, but I can't seem to get it working. I've got model and blockstate files generating, but it can't seem to locate parent files which are not in the generated/resources folder like it does in the BetterEnd mod. { "parent": "modid:block/parent", "textures": { "texture": "minecraft:block/green_wool" } } This is the generated model file in "src/generated/resources/assets/modid/models/block" The parent file is just located in "src/main/resources/assets/modid/models/block" The error I'm getting is: [Worker-Main-9/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'modid:block/parent' referenced from: modid:block: java.io.FileNotFoundException: modid:models/block/parent.json That error is only once, but then I get the same error for every block that has the same parent file: [Worker-Main-9/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to resolve texture reference: #missingno in modid:block/block However, when I copy the parent file into "src/generated/resources/assets/modid/models/block" everything works fine. Probably being really stupid. So let me know if you spot my mistakes.
  5. Ahhh okay, Thank you very much for your help!
  6. Iterator<SpawnListEntry> biomeSpawns = biome.getSpawns(EntityClassification.CREATURE).iterator(); while(biomeSpawns.hasNext()) { SpawnListEntry entry = biomeSpawns.next(); if (entry.entityType == EntityType.PIG) { biomeSpawns.remove(); } } Thank you! I will definitely look at that. I did get it to work eventually. Don't know if it looks bad though...
  7. I'm very new to modding and I can't seem to figure out how to do it... Maybe I'm being really stupid, but how did you do it?
×
×
  • Create New...

Important Information

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