Jump to content

Deco

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Deco

  1. KeyHandler? I haven't heard of this before.
  2. I want to make a fishing boat so that when the player is in the fishing boat and presses space, it toggles the fishing net. I want it to output "Fishing net is deployed." Here's what I have so far: https://gist.github.com/anonymous/2fe54ed004bcc9137d26 I don't know where the if statement goes.
  3. Oh. I wish I would have seen this before I made a backup of my files, reinstalled forge and mcp, and copied my files back in. Problem's fixed, though.
  4. Where do I find the code that does the application of PotionEffect? I'm not entirely sure what you're asking, and I'm not using a custom potion effect. Here's the item's class anyways: https://gist.github.com/anonymous/8801abbff03c4f0e36b5 Aight. So I followed all your jazz with breakpoints and such, only to have the game still crash and now the first line of the stack trace reads: 2013-11-07 22:26:50 [iNFO] [sTDOUT] at net.minecraft.potion.PotionHelper.calcPotionLiquidColor(PotionHelper.java:81) Dang. I just set the breakpoint at the previous line, and now I'm back exactly where I was Plus, I know what stepping backwards is, I just don't know how to debug in Eclipse.
  5. Nope. Nothing looks unusual. I checked everything else in that stack trace too. Nothing seemed unusual, and if I did accidentally type something, give an error or look out of place. They do neither.
  6. I was trying to add a food that gives the player instant damage I upon consumption, but I was only able to give the 'harm' effect for one second. When I came back to the project in the morning, the game would run but crash when the world would load. This is the error it gives me: Stack trace? Crash Report? New to this, sorry. https://gist.github.com/anonymous/f6a9c0426f713a7fef53 My main class code: https://gist.github.com/anonymous/1e30ea376d8f3a93573e I'm afraid I may have accidentally messed with some of the default code, but I'm not certain. Any ideas? Also, I don't know what would help you guys help me. Please tell me what you need.
  7. BAH! I'm feeling mixed emotions of extreme thanks and self-reprimand for missing that. I feel like I jumped off the empire state building into an ocean, only to miss by two feet. You're the guy that scrapes me off the pavement and gives me back to my family. ARGH It makes sense! Its not located in that class! BTPHTPHTPH! Thanks very very much.
  8. I'm trying to add a custom tool material without editing the original class, but when I try to use it in an item is says that the new material is not resolved or isn't a field. This is what I have: @EventHandler public void preInit(FMLPreInitializationEvent event) { EnumToolMaterial FRAG = EnumHelper.addToolMaterial("FRAG", 3, 59, 8.0F, 3.0F, 10); fragSword = new ItemFragSword(8003, EnumToolMaterial.FRAG) .setCreativeTab(CreativeTabs.tabCombat).setTextureName("mymod:fragsword").setUnlocalizedName("fragSword"); } Thanks for any help. I hope this isn't too noobish. Edit: I'm having the same problem trying to add items to a custom creative tab. I have the tab working, but items won't recognise it. Eclipse tells me it is "unresolved or not a field", just like the tool material
×
×
  • Create New...

Important Information

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