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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. Try moving your blockstate file. To a folder called minecraft (where your modid would be), but in your project. IE assets.minecraft.blockstates, but inside your project. Instead of assets.modid.blockstates. Item.getItemFromBlock doesn't respect substitution aliasing.
  2. Two things come to my mind that must be done. Substitute the enchantments so they can have higher levels. And the second override ContainerEnchantment using ContainerEvent.Open by calling your open event. Edit: To add a event to forge you need to go to there github (search for it) and then submit a pull request you should be able to find how to do that on their github.
  3. No, CPW, and Lex have both said that it works.
  4. Could you post all relevant code or better yet github link?
  5. Did you set the model location with ModelLoader?
  6. Oops I meant to say substitute it, though I don't know if that will work? (Never done any substituting, at least while the system is working).
  7. This may seem really obvious and stupid, but did you try turning it off and back on again? (Note you usually need to restart after editing environment variables).
  8. Im pretty sure it needs to point to the bin folder aswell.
  9. Yes you need to register the ItemBlock.
  10. I assume you are using a model and that model should have a setRotation method. Just have your Entity or renderer have a rotation.
  11. In your IDE you can look for classes that extend the Event class from forge.
  12. If by project do you mean the forge one? If so you also need to setup it's build path to export everything. Under build path, then order and export.
  13. You could also make another entity that is rendered as a proper laser. And damage the player when it comes into contact with it.
  14. Spin as in around the center? Or as in orbit?
  15. If you did it the way I did you need to download and install gradle. Copy over the build gradle file make a few edits so it can find your code. Then in the folder with the build file open command prompt/terminal and run the file with gradle. More information http://www.minecraftforge.net/forum/index.php?topic=15232.0
  16. I do that which allows me to have multiple workspaces so I can group my mods by "categories" you can still have multiple "mods" in one forge workspace. And a forge workspace is using the setup workspace forge provides after gradlew eclipse/intelij
  17. Yes as the forge source should never change unless updated.
  18. That's actually the first thing I tried. I assumed I could add a new field to my tile entity and pass the parameter into the constructor when returning a new tile entity in createNewTileEntity (in my container's block class). Why can't the constructor have any parameters? If I used a setter, when and where would I invoke it? It can have a constructor with parameters, but it must have one with none because when the game is loaded it must instantiate them from world data.
  19. Well obviously that is a yes but your constructor can't have any parameters, so a setter would work.
  20. That is a few versions old I hope jablear can get time to update his tutorials as they are are big help, but IUpdatePlayerListBox does't exist anymore and that method doesn't either. IUpdatePlayerListBox might be known as ITickable now, and is used to add the update method to a TE.
  21. By post update I mean postinit You could do it in preInit if you wanted to. I don't think all oredict entries would be registered by preinit You could do that just for vanilla and use the event for the rest.
  22. What did func_174903_ do where was it located what where the parameters?
  23. By post update I mean postinit You could do it in preInit if you wanted to.
  24. Depends on what you mean post update?
  25. Tried in both OreRegisterEventhandler and in the main mod file. @Mod.EventBusSubscriber public class OreRegisterEventhandler { @SubscribeEvent public static void OreRegisterEvent(OreDictionary.OreRegisterEvent e) { String name = e.getName(); System.out.println("This doesn't get printed ever "+name); @Mod(modid = modname.MODID, version = modname.VERSION) @Mod.EventBusSubscriber public class modname { // init functions and stuff... @SubscribeEvent public static void OreRegisterEvent(OreDictionary.OreRegisterEvent e) { String name = e.getName(); System.out.println("This also doesn't get printed "+name); The problem now that I am looking at this class is that the method that registers vanilla is called as soon as a static{} gets called.

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.