Jump to content

PlasmaBlazer

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by PlasmaBlazer

  1. Just a simple question, I just can't seem to find the answer. If anyone can help by telling me how to check if a button was left/right clicked that would be great
  2. Ah, sorry for the confusion its my fault, just forgot I need to make a special slot, Thanks! I just thought slot automatically checked the IInventory isItemValidForSlot but I just made my own slot that does that
  3. FIX: https://github.com/PlasmaBlazer/ElectronicEngineering/blob/dev/src/main/java/com/plasmablazer/electroniceng/inventory/SlotIInventory.java I have used this SlotIInventory class instead of Slot In my isItemValidForSlot I have it set so that you can only place blueprints in slot 0, however in the gui it is letting you place any item in that slot, does anyone know why? TileEntity - https://github.com/PlasmaBlazer/ElectronicEngineering/blob/dev/src/main/java/com/plasmablazer/electroniceng/tileentity/TileResearchTable.java GUIContainer - https://github.com/PlasmaBlazer/ElectronicEngineering/blob/dev/src/main/java/com/plasmablazer/electroniceng/inventory/ContainerResearchTable.java GUI - https://github.com/PlasmaBlazer/ElectronicEngineering/blob/dev/src/main/java/com/plasmablazer/electroniceng/client/gui/inventory/GuiResearchTable.java Project - https://github.com/PlasmaBlazer/ElectronicEngineering
  4. If anyone can help with my problem that would be great. In the TESR I want to set one of the entity items shown to whats in one of the slots of the tile entity, it works but you have to open the GUI of the tile entity for it to work, can anyone suggest a way I can do it so that it shows when the world is loaded? I'm sorry if the TESR code is bad, it's my first time using TESR and OpenGL. TESR Code - http://pastebin.com/PC3RC94P Github - https://github.com/PlasmaBlazer/ElectronicEngineering NOTE: I think it may be a syncing issue between client/server is there a way to force inventory slots to sync on world load?
  5. I can't find a way to create a highlight and tooltip over the area in the image. If anyone can help that would be great. Image of GUI - http://imgur.com/x6sINUH Github Repository - https://github.com/PlasmaBlazer/ElectronicEngineering
  6. Whenever I try to update forge to 1.8-11.14.4.1563 I get this error log when I run gradlew setupDecompWorkspace: E:\Users\JWBen\Projects\Minecraft\ElectronicEngineering REBUILD>gradlew setupDecompWorkspace **************************** Powered By MCP: http://modcoderpack.com/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : snapshot_20141130 **************************** :extractMcpData UP-TO-DATE :getVersionJson :extractUserDev Download http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.8-11.14.4.1577/forge-1.8-11.14.4.1577.pom Download http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.8-11.14.4.1577/forge-1.8-11.14.4.1577-userdev.jar :genSrgs FAILED FAILURE: Build failed with an exception. * What went wrong: Some problems were found with the configuration of task ':genSrgs'. > File 'C:\Users\JWBen\.gradle\caches\minecraft\net\minecraftforge\forge\1.8-11.14.4.1577\unpacked\conf\packaged.srg' specified for property 'inSrg' does not exist. > File 'C:\Users\JWBen\.gradle\caches\minecraft\net\minecraftforge\forge\1.8-11.14.4.1577\unpacked\conf\packaged.exc' specified for property 'inExc' does not exist. * 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: 19.567 secs Does anybody know what is going on, and if so how to fix it?
  7. Now this isn't a problem/issue that I am having, but just something I'm unsure about. Does anyone know the difference between: FMLCommonHandler.instance().bus().register(); MinecraftForge.EVENT_BUS.register(); Also, which one should be used when registering events as at the moment I use FMLCommonHandler.instance().bus().register(); however I have seen other people use MinecraftForge.EVENT_BUS.register();
  8. The "gradlew setupDecompWorkspace --refresh-dependencies" didn't work, it gave this error message:
  9. Recently I have had a problem with my Dev environment as IntelliJ cannot find the GradleStart class, therefore it won't run the mod. I'm not sure what has happened as it occurred randomly and I have never had this problem before. When I try to run the minecraft client I get this message. If you wish to see the project here is the GitHub: https://github.com/PlasmaBlazer/ElectronicEngineering/tree/dev Any help would be appreciated. Thanks, -Plasma Solution:
  10. When updating form 1.7.10 to 1.8 I have being struggling when it comes to registering the texures for one of my items. My item has multiple textures base on MetaData but only the first texture is rendered. I was wonderinbg if any one knew a fix. Code for Item: http://pastebin.com/W3TtHNbb Registry Code: http://pastebin.com/vGaKKw0k Fix : ModelBakery.addVariantName(item, list of textureNames...) then register the textures like in the pastebin post
  11. Managed to solve the problem, it was actually being caused by the NBTTagCompound not being declared properly, DERP!
  12. So for my mod I want to remove the item form the players inventory with onItemRightClick() but whenever I try this the game crashes. I have looked all over the internet and in the minecraftForge classes to find out how to do this but everything I try dosent work, here is the code for the method: @Override public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { if(stack.getItemDamage()==2 && this.getResearch()!=null && player.getEntityData().getTag(this.getResearch())==null) { PlayerResearch.addResearch(player, this.getResearch()); stack.stackSize--; } return stack; } Any help would be appreciated
×
×
  • Create New...

Important Information

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