April 29, 20187 yr Author 3 hours ago, loordgek said: you cant use contains the itemstack does not implement hashcode and equals is this why I can't use the debugger or breakpoints?
April 29, 20187 yr 29 minutes ago, BenjiBrat said: is this why I can't use the debugger or breakpoints? No, that is you not using the debugger correctly. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
April 29, 20187 yr Author 1 minute ago, Draco18s said: No, that is you not using the debugger correctly. Ok, I have no idea what is wrong then. Here is what happened: I set a breakpoint at the if statement. I ran debugger on my client world. I looked into the breakpoint and the variables and saw itemstack was returning tile.air. I stopped the debugger. I change the if statement to call (player.inventory.armorInventory.contains(itemstack)). I tried running the debugger again. It wouldn't stop at the set breakpoint. And now I don't even know what's wrong, because it isn't even calling my onAttackEntityAsMob() function anymore!
April 29, 20187 yr Put the break point on another line. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
April 29, 20187 yr Author 42 minutes ago, Draco18s said: Put the break point on another line. I have multiple breakpoints on multiple lines. It's not stopping at any of them.
April 29, 20187 yr are you 100% sure you are running in Debug mode and not normal mode? About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
April 29, 20187 yr Author 6 hours ago, loordgek said: can you put your code on github including the build.gradle file I have uploaded it here: https://github.com/BenjiBrat/MinecraftPlusMod And here is my build.gradle: buildscript { repositories { jcenter() maven { url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. version = "1.0" group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "modid" sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = '1.8' } minecraft { version = "1.12.2-14.23.3.2655" 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 always work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20171003" // 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 except the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } }
April 29, 20187 yr Author 39 minutes ago, diesieben07 said: Do not use the file upload feature of the Github website. Use a proper Git client (the command line or something like SourceTree). Your repository contains a bunch of unneeded crap but no source code. https://github.com/BenjiBrat/MinecraftModdingError
April 29, 20187 yr https://github.com/BenjiBrat/MinecraftModdingError/blob/cee4f1a8b06ef0c84a1433d6f001dbe08f01baa7/src/main/java/com/benjibrat/minecraftplusmod/entity/EntityWatcher.java#L138 if(1 == 1) ?? on github you have the MCP folder remove that Edited April 29, 20187 yr by loordgek
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.