Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. Hello, I want to build my mod, and in the process it fails the compileJava task. This is the log: C:\Users\Lars\Desktop\Modding-Development\MineTech>gradlew build **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : unknown **************************** :apiJar UP-TO-DATE :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava UP-TO-DATE :compileJava warning: [options] bootstrap class path not set in conjunction with -source 1.6 C:\Users\Lars\Desktop\Modding-Development\MineTech\build\sources\java\larsg310\m ods\minetech\multiblock\Multiblocks.java:12: error: cannot find symbol STEEL_FURNACE = new MultiblockSteelFurnace(); ^ symbol: class MultiblockSteelFurnace location: class Multiblocks Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error 1 warning :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 48.43 secs However, Eclipse doesn't show any compile errors and I can run my mod fine in Eclipse. Here is my build.gradle : buildscript { repositories { mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } maven { name = "sonatype" url = "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' version = "v0.01-1.7.10" group= "larsg310.mods.minetech" archivesBaseName = "MineTech" minecraft { version = "1.7.10-10.13.4.1481-1.7.10" runDir = "eclipse" } dependencies { } task deobfJar(type: Jar) { from sourceSets.main.output classifier = 'deobf' } task sourceJar(type: Jar) { from sourceSets.main.allSource classifier = 'sources' } task apiJar(type: Jar) { from(sourceSets.main.allSource) { include 'larsg310/mods/minetech/api/**' } classifier = 'api' } tasks.build.dependsOn('sourceJar', 'deobfJar', 'apiJar') processResources { inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' expand 'version':project.version, 'mcversion':project.minecraft.version } from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } The console log is refering to this class: package larsg310.mods.minetech.multiblock; import larsg310.mods.minetech.api.multiblock.Multiblock; import larsg310.mods.minetech.api.multiblock.MultiblockRegistry; public class Multiblocks { public static Multiblock STEEL_FURNACE; public static void registerMultiblocks() { STEEL_FURNACE = new MultiblockSteelFurnace(); //This is the line the console is referring to MultiblockRegistry.registerMultiblock(STEEL_FURNACE); } } I don't have a constructor in the MultiblockSteelFurnace class, so it uses the default constructor. Does anyone know what is causing the issue? I must be missing something very obvious.
  2. They believe it's a bug with the graphics drivers some people use.
  3. This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=32008.0[/iurl]
  4. Disable the loading screen ( config/splash.properties ).
  5. It is because of the transferStackInSlot method. If you don't override that method, it will result in a stack overflow. So I think Pahimar is not overriding the transferStackInSlot correctly, and thus creating a stack overflow. This has been so since a long time, and every modder using containers should know that, so I think this is on EE3's side on stuff.
  6. Are you using custom packets of some sort? You'd have to take nto account that packets are on another thread now, so you'd have to do something to make them work.
  7. Screenshot of your video (please don't close your console, you don't even read it yourself. It's not that hard[nobcc]):[/nobcc] Read it. What do you not understand about that? Or is it the same as I said in the begin of my reply?
  8. Where do you want to count ticks? Overall, if you have a method that gets called every tick, you can just increment a field. If that field is over a certain threshold, reset that field and do your stuff you want to be called every so often.
  9. You never deleted the .gradle folder in your user directory...
  10. Look at BlockRedstoneLamp, it handles direct and indirect redstone.
  11. Why not look at the vanilla rosebushes (BlockDoublePlant)?
  12. Sorry, misread. I thought you didn't want to move in the Y direction and only in the X and Z directions.
  13. event.player.motionX = motionX; event.player.motionY = motionY; event.player.motionZ = motionZ; That's because you also set the the motionY in the way you are looking. Setting motionY to 0 should fix that.
  14. Show where and how you registered your IWorldGenerator
  15. Show your updated Block class, and where you register your TileEntity.
  16. public GuiCustomPlayerInventory(EntityPlayer p_i1094_1_) { super(p_i1094_1_.inventoryContainer); this.allowUserInput = true; } You pass in the vanilla container as the player inventory. You need to either set EntityPlayer#inventoryContainer to your container, or pass an instance to the super with exactly the same data as the vanilla player inventory.
  17. The debugger shouldn't make Minecraft crash. Can you post the crash log? And yes, you can toggle a breakpoint in the vanilla jar
  18. Make a custom IRecipe and replace vanilla's IRecipe. In that IRecipe, you can make player-based crafting. Here is a tutorial by diesieben07 for player-based crafting recipes.
  19. This doesn'thave anything todo wth Forge, Minecraft or FML in general, but basic programming. If you want to do something, search for something else that already does that.
  20. What do you mean with 'doesn't work'?
  21. 1) Screenshots don't work (for me) 2) Is your modid exactly the same everywhere (lower-/uppercase)? 3) Does your texture name match exactly (lower-/uppercase)?
  22. new BlockPos(posX, posZ, posY) You've made a mistake on that line, so double check it.
  23. What do you mean 'it doesn't work'? Can't you access the page? Or can't you download stuff?
×
×
  • Create New...

Important Information

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