Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sear_Heat

Members
  • Joined

  • Last visited

  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. Sear_Heat replied to Sear_Heat's topic in Modder Support
    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. Sear_Heat replied to Sear_Heat's topic in Modder Support
    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. Sear_Heat replied to Sear_Heat's topic in Modder Support
    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. Sear_Heat replied to Sear_Heat's topic in Modder Support
    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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.