Jump to content

Sear_Heat

Members
  • Posts

    41
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • URL
    http://fcnetworks.enjin.com
  • Personal Text
    I like trains!1

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Sear_Heat's Achievements

Tree Puncher

Tree Puncher (2/8)

-1

Reputation

  1. Ok, but what is LivingHurtEvent? I can't seem to find a class or a (static) method by that name.
  2. What code should I add to a projectile to make it give a hit player a potion effect?
  3. This should fix it. First, you should try changing your block file code to "public static BlockDarklandPortal darklandPortal = new BLockDarklandPortal()" I have previously had trouble with methods in parenthesis before itself. Then, for your code: public BlockDarklandPortal() { super("darklandPortal", Material.portal, false); this.setTickRandomly(true); setBlockName("darklandPortal"); setBlockTextureName( [YOURMODSCLASS].MODID + ":" +"textures/portals/darklandPortal.png"); setCreativeTab(CreativeTabs.tabBlock); GameRegistry.registerBlock(this, "darklandPortal"); } where [YOURMODSCLASS] would be replaced by whatever file contains your mod's mod ID (MODID). Note that I added .png to the end of your filename. Also, if you still have trouble but it is looking in the correct folder, make sure png is not capitalized (PNG). I have learned the hard way that that will break the texture.
  4. I did. I actually solved the button problem by doing *gasp* nothing. I just tried gradlew building it again and it worked fine. Weird.
  5. I think I see the problem. I did not use drawButton, only this.buttonList.add.
  6. How are buttons in a GUI set up? Simple question, but I'm confused. Also, I have a deadline in 4 hours. [move][/move]
  7. Ok. But... [move]THIS ARTICLE CAME VERY CLOSE TO BEING A HOT TOPIC![/move]
  8. Bump. Sorry I'm bumping so much but I have to fix this by 2:00 Pacific time. That's 5 hours till deadline.
  9. You have to be patient. For me it takes 5 minutes saying "Verifying Application Requirements..." before it actually starts up.
  10. Wuppy's setup is a great setup, It makes everything a whole crapload easier. I've tried both ways. Also, I've heard the normal setup does not work for some people due to eclipse freaking out.
  11. It fixed it... partially. The GUI will open and close now, but buttons don't do ANYTHING. So.. How do I set the texture of a button?, and How do I see if it is working?
  12. BUUUUMP
  13. This video helped me:
  14. Looks like you need a common(server) proxy called CommonProxy in net.HogansCraft.mod.proxy. Here is some example code: package net.HogansCraft.mod.proxy; public class CommonProxy { }
  15. If I were you, I wouldn't do that. Really. I strongly advise against it. However, if you must; There is editable code. This is how you get to it: In eclipse, look for the "build" folder. Navigate to "tmp", then to "recompSrc". Inside there, there is a huge repository of editable files. The Minecraft folders are located in recompSrc's "net", then "minecraft" folders. I don't know whether these are the actually running files when you start Minecraft in eclipse, or if it is the folders in forgeSrc in "Referenced Libraries" that contains uneditable code. Either way, the code in recompSrc is fully editable.
×
×
  • Create New...

Important Information

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