Jump to content

dstars5

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by dstars5

  1. What prints out, if it helps: 2013-05-23 14:59:53 [iNFO] [sTDOUT] Opening GUI 2013-05-23 14:59:53 [iNFO] [sTDOUT] Opened GUI 2013-05-23 14:59:53 [iNFO] [sTDOUT] Gui Closing 2013-05-23 14:59:53 [iNFO] [sTDOUT] Gui Closing These come from: System.out.println("Opening GUI"); Minecraft.getMinecraft().displayGuiScreen(new GuiInfusionTable(player, world, x, y, z)); System.out.println("Opened GUI"); and public void onCraftGuiClosed(EntityPlayer par1EntityPlayer) { super.onCraftGuiClosed(par1EntityPlayer); System.out.println("Gui Closing"); /* if (!par1EntityPlayer.worldObj.isRemote) { for (int var2 = 0; var2 < 4; ++var2) { ItemStack var3 = this.craftMatrix.getStackInSlotOnClosing(var2); if (var3 != null) { par1EntityPlayer.dropPlayerItem(var3); } } }*/ }
  2. Any code I have now is already posted...
  3. Added, but it is still happening.. Any idea why? The actual code is below.. x, y, and z come from the constructor. public boolean canInteractWith(EntityPlayer entityplayer) { if(entityplayer.worldObj.getBlockId(x, y, z) != StaffCraft.infusionTable.blockID) { return false; } else { return entityplayer.getDistanceSq((double)x + 0.5D, (double)y + 0.5D, (double)z + 0.5D) <= 64D; } }
  4. The code is the exact same other than the IDs. Everywhere that uses the ID is correct (I will check again to be sure). It doesn't crash, I fixed that issue. It DOES open, and prints out "Opening Gui" where I told it to, but it closes right away.
  5. Ah, so it seems somewhere along the way, the ID got changed to a 10, but I forgot to change it elsewhere. Crash is fixed, but now it won't open again, lol.
  6. The ID was actually 10.. Great minds think alike, right? It opens up now, but it crashes. Anyone know why?
  7. Still does it. My code is below. Is there more I need to do? ClientProxy.java ServerProxy.java
  8. Not entirely sure I ever did that... How do you register a gui handler?
  9. Here it is. I have the onUpdate commented out though.
  10. Does anybody know? I really need this for my mod.
  11. It still opens then closes really fast. Do you know why that is happening?
  12. Hey guys, I have a custom block with a custom gui, but whenever I right click the block, the gui appears and then quickly disappears. Why is this happening? Also, when I right click the block with an item in my hand, the item vanishes. All of my code is below.. Can someone help? I have been able to find that it is most likely something returning false, however I can't find anywhere that it doesn't return true. BlockInfusionTable.java GuiInfusionTable.java TileEntityInfusionTable.java ContainerInfusionTable.java
  13. Hey guys, So I have what is essentially a custom snowball. I would like it to create particles when it flies. I looked in the bow class, and it uses the function onUpdate() to create the particles if the arrow is a critical hit. However, when I try using this function in the snowball class, the snowball renders, the particles render properly, but the snowball never moves. Anyone know how to fix this?
  14. Hey guys, I need to make an item which combines 4 textures into 1. As I need a lot of these, I need to do it in the actual code, rather than making a .png for each one. I need it to be like the spawn eggs, where it takes the background and combines it with the overlay. Below is what I have been able to come up with, but it doesn't work. How do I do this? The code. I basically tried to copy it from the spawn egg class, and change it for my needs.
  15. Cool, thank you! One last question, I notice a lot of other mods don't have that same hierarchy. To remove that "mods" folder from the hierarchy, is it as simple as changing to package name? Doesn't really matter, because it is working! But just wondering.
  16. Not entirely sure what you are saying here, but I think I might have missed a step? I first completed the code and found it ran fine. I then ran recompile.bat then reobfuscate.bat. I went into the Reobf folder and found "SpawnEggsPlus" folder with "client" and "common" in it. I went back to my src folder and copied the "textures" folder into the reobf/minecraft/mods/SpawnEggsPlus folder. I then right clicked the SpawnEggsPlus folder and compressed it into zip. I put this zip into the .minecraft/mods folder (So the path looks like .minecraft/mods/SpawnEggsPlus/SpawnEggsPlus with the textures, client, and common folders inside with all of the right code and textures). I am not sure whether I should have a SpawnEggsPlus folder inside the zipped folder of the same name, so the last thing I tried was to put the client, common, and texture folders directly in the zipped folder, but I got the same error. Not sure if that answered your questions or not. Am I doing something wrong here?
  17. Oh, sorry, I did do some searching but obviously not hard enough! My bad.
  18. What do you mean? I have checked to make sure the file structure is the same as that package structure in Eclips.
  19. Hey guys, I recently finished making my mod, and I want to distribute it. The only problem, when I put the recompiled/reobfuscated mod in Minecraft, it crashes on startup (Crash log below). It works fine when I run it in Eclipse. I have checked, checked, and rechecked the file path and it is all fine. I have reinstalled MCP and tried copying my code over, but it still crashes. Does anyone know why this is happening? I would to get this figured out ASAP.
  20. Hello, I was wondering, does Forge have any way to change where the player is looking? Or does anyone know if this can be done? Basically what I need, is to position the players vison in a specific place. Thanks in advance!
×
×
  • Create New...

Important Information

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