decebaldecebal
Members-
Posts
47 -
Joined
-
Last visited
Converted
-
Gender
Male
-
URL
http://entirecraft.com
-
Location
Romania
decebaldecebal's Achievements
Tree Puncher (2/8)
2
Reputation
-
Hello, I recently finished updating my mod to 1.8 but now I do not know how to compile it.I get weird errors from the command "gradlew build". F:\Java Coding\Forge\Forge 1.8>gradlew build **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : snapshot_20141130 **************************** :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 F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AdvancedCoalRefiner.java:125: error: inconvertible types if(!((boolean)state.getValue(KEEPINV))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AdvancedCoalRefiner.java:180: error: inconvertible types if(((boolean) state.getValue(FORMED))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AdvancedCoalRefiner.java:182: error: inconvertible types if(((boolean) state.getValue(KEEPINV))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AdvancedOreRefiner.java:69: error: inconvertible types if(!world.isRemote && ((boolean)state.getValue(CORE))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AdvancedOreRefiner.java:159: error: inconvertible types if(!((boolean) state.getValue(CORE))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AdvancedOreRefiner.java:188: error: inconvertible types if(state.getBlock() == GAMod.advancedorerefiner && !((boolean) s tate.getValue(CORE))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AdvancedOreRefiner.java:230: error: inconvertible types if(((boolean) state.getValue(FORMED))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AdvancedOreRefiner.java:232: error: inconvertible types if(((boolean) state.getValue(CORE))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AtomExtractor.java:102: error: inconvertible types if(((boolean) state.getValue(ACTIVE))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AtomExtractor.java:200: error: inconvertible types if (!((boolean)state.getValue(KEEPINV))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AtomExtractor.java:244: error: inconvertible types if (((boolean)state.getValue(KEEPINV))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\AtomExtractor.java:246: error: inconvertible types if (((boolean)state.getValue(ACTIVE))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\CoalRefiner.java:104: error: inconvertible types if (((boolean)state.getValue(ACTIVE))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\CoalRefiner.java:190: error: inconvertible types if (!((boolean)state.getValue(KEEPINV))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\CoalRefiner.java:233: error: inconvertible types if (((boolean)state.getValue(KEEPINV))) ^ required: boolean found: Comparable F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks \Machines\CoalRefiner.java:235: error: inconvertible types if (((boolean)state.getValue(ACTIVE))) ^ required: boolean found: Comparable Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 16 errors 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: 9.829 secs F:\Java Coding\Forge\Forge 1.8> Also this is my build.gradle file.I have a plugin for NEI and I put as a dependency all the jars that NEI uses, but they are the dev version and I am not sure if I need the source as a dependency or not. 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 = "2.0" group= "com.entirecraft" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "geoactivity" minecraft { version = "1.8-11.14.1.1334" runDir = "eclipse" // 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 allways work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20141130" } dependencies { compile files ( // comma-separated list of all jars goes here: "libs/CodeChickenCore-1.8-1.0.5.34-dev.jar", "libs/CodeChickenLib-1.8-1.1.2.133-dev.jar", "libs/NotEnoughItems-1.8-1.0.5.82-dev.jar" ) // 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 // 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, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } Can somebody please tell me what is wrong and how can I export my mod properly? Thank you.
-
Hello, I recently began updating my mod for 1.8 and now I am trying to update my multiblock.It works perfectly except for one thing: if I try to change the state of the block in the world, the tile entity in that position in the world is going to change, and all that I modified in my initial tile entity will go to waste.I did try and validate the tile and then use world.setTileEntity to set the original tile back in the world but with no luck. Here is the function that changes the block state.It worked perfectly in 1.7 and it is almost the same, except with setBlockState instead of setBlockMetadata. public static void setState(boolean formed, World world, BlockPos pos, ACRTileE core) { IBlockState state = world.getBlockState(pos); TileEntity tile = world.getTileEntity(pos); keepInv = true; if(formed) { world.setBlockState(pos, state.withProperty(FORMED, true), 2); } else { world.setBlockState(pos, state.withProperty(FORMED, false), 2); } keepInv = false; //world.setBlockState(pos, world.getBlockState(pos).withProperty(KEEPINV, false), 2); if (tile != null) { tile.validate(); world.setTileEntity(pos, tile); //((ACRTileE)tile).setCore(core); } } There are some comments because I tried puting the keepinv in a property (I did this with some other block) and I commented it here to see where the problem lies.If the lines that contain world.setBlockState are deleted or commented, the multiblock works PERFECTLY, but it doesn't change the texture which is to be expected... I really do not know what is going on here and why the tile entity is different(which it is because I tested it with that core variable and set the core to the new tile entity after using world.setBlockState which kind of worked, but my core was now a tile entity that had no block associated to it because it didn't exist in the world anymore).
-
- 1
-
[1.7.2/1.6.4]GeoActivity - expanding the Minecraft Earth [v1.4]
decebaldecebal replied to decebaldecebal's topic in Mods
Just wanted to let you guys know that I have updated the mod to MC 1.7.2. -
[1.7.2/1.6.4]GeoActivity - expanding the Minecraft Earth [v1.4]
decebaldecebal replied to decebaldecebal's topic in Mods
There is a link in the main post to the official wiki that contains every detail about this mod. You can also check this mod out on PlanetMC. -
[1.7.2/1.6.4]GeoActivity - expanding the Minecraft Earth [v1.4]
decebaldecebal replied to decebaldecebal's topic in Mods
I almost forgot about this topic The mod is now fully released and includes A LOT of stuff since I updated this post.Check it out! -
I have used a custom development environment until now, following Pahimar's tutorials, but I am unsure how to set that up with the new Gradle system.If somebody managed to get it working please PM me. Well that was completely unrelated to the topic. To get on topic, I managed to install Forge using the new Gradle system by I couldn't find the usual MC classes.Then I downloaded the MCP beta version for 1.7.2 but I am not sure how to get the decompiled classes in the Forge workspace.I know I have to use MCP to decompile and deobfuscate MC, but what do I need to do after that?
-
[1.7.2/1.6.4]GeoActivity - expanding the Minecraft Earth [v1.4]
decebaldecebal replied to decebaldecebal's topic in Mods
New version now out!This addressed some small problems and bugs.Also with this new version comes the new Official Wiki! -
[1.7.2/1.6.4]GeoActivity - expanding the Minecraft Earth [v1.4]
decebaldecebal replied to decebaldecebal's topic in Mods
New version now out! Fixed some bugs, changes some recipes and added new cool stuff! -
[FIXED] New furnace not rendering in inventory properly.
decebaldecebal replied to ISQUISHALL's topic in Modder Support
You can change your getIcon() function and add this check: if (meta == 0 && side == 3) return iconFront; The meta is 0 when it is in your inventory only and that side you want the texture to be rendered on is 3. -
Block texture not updating based on TileEntity variable
decebaldecebal replied to decebaldecebal's topic in Modder Support
Yes, I know it should, I have used it other times, but this time it doesn't.I even tried to put it in the updateEntity function and it still does not work... -
Block texture not updating based on TileEntity variable
decebaldecebal replied to decebaldecebal's topic in Modder Support
I can safely confirm that after trying this multiple times, it DOES NOT WORK. -
Block texture not updating based on TileEntity variable
decebaldecebal replied to decebaldecebal's topic in Modder Support
I already tried to mark the block for update, but it did not work.With packets it works but another block has to be updated near it so the packet is sent... -
Hello, So I have made a multiblock structure that works perfectly.Now the only problem I have is to change the when the multiblock is formed. Well let me explain you...I use this function to change the texture: @SideOnly(Side.CLIENT) @Override public Icon getBlockTexture(IBlockAccess access, int x, int y, int z, int side) { ACRTileE tile_entity = (ACRTileE) access.getBlockTileEntity(x, y, z); if(tile_entity.isValid) if(side==tile_entity.formedSide) return iconFront; return blockIcon; } When the multiblock is formed, the variable isValid inside the tile entity is set to true and the formedSide variable is set to the metadata of the last block used to form the structure so the textures is displayed on the correct side.THIS WORKS.When the multiblock is formed, the texture on that side changes. The problem is that when one of the multiblock's blocks is destroyed, the variable isValid is set to false so that should update the blocks texture to the default one, but it does not work.I marked the blocks for update but it still does not work... EDIT: I kind of resolved the problem using Packets, but the block texture only updates if a block near that block receives a block update... And also, I wanted to send the packet using PacketDispatcher.sendPacketToAllAround(X, Y, Z, range, dimensionId, packet) from my TileEntity but I couldn't find a way to get the dimensionId from anywhere.
-
Well at the moment I have not set up GitHub, but when I will come from vacation I will set up one. Also, the multiblock works perfectly!I've managed to fix it myself and I know have some more understanding of multiblocks. If anyone else wants to do a multi block, this tutorial helped me very much: http://minalien.com/tutorial-multi-block-structures-in-minecraft/