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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. flag is only ever set to true for the chestplate, which when removed, this code is no longer run. Remove this conditional.
  2. Your methods do jack diddly squat. They are empty. They need to not be empty.
  3. public static void register(IForgeRegistry<Item> registry) { //something goes here maybe? I dunno. Maybe something to register my items? }
  4. if(item instanceof ItemAxe) { //now it works for mod axes too
  5. >> No code posted > Help not available
  6. Oh jesus fucking christ on a crutch. Use item.getRegistryName() instead of all of this garbage Also, you have a NullPointerException, which none of the above suggestions will fix. Your problem is here: @EventHandler public void preInit(FMLPreInitializationEvent event) { Utils.getLogger().info("Pre Initialization"); Utils.getLogger().info("Loading Proxies..."); proxy.registerRenders(); } @EventHandler public void Init(FMLInitializationEvent event) { ModItems.init(); ModItems.register(); Utils.getLogger().info("Initialization"); } You're registering your renderers before you ever create your item. Fuck. How are you people this incompetent? Of course you got a NPE, this wasn't even a hard problem to figure out. All you had to do was look at the order in which you were doing things and realize that they were WRONG. On top of that, you should be using the Registry events anyway!
  7. logger.info("Is debug enabled? " + mc.gameSettings.showDebugInfo);
  8. Does it work?
  9. 1) What is the error? 2) What version of Minecraft are you modding for? 3) Where do you call registerRenders()?
  10. Instead of adding a dummy recipe, add a new recipe.
  11. Oh gosh, leaving an exercise to the reader about writing in the length of the string first! The horror!
  12. The ByteBufUtils are awesome, and definitely a better choice. But in terms of "here's what's in front of me, how can I solve this problem?" I could do it.
  13. Knowing two things: 1) How to use my IDE 2) That strings are characters and characters are bytes I worked this out on my own: buf.writeBytes(("this is a string").getBytes());
  14. You'd have to track them yourself. My suggestion would be to create a new advancement that uses the same system as Adventuring Time, but which has ALL the biomes in it.
  15. Your original code had you trying to register an item named logo. In this code you're trying to register a block named Block1 (which doesn't exist).
  16. (I'll point out that Minecraft practices were better than what I was doing before because I was never taught any sort of organizational schema...)
  17. Actually, its the items that are 16 pixels. An actual slot graphic is 18x18. The 1 pixel border that gives the slot some "depth" extends beyond the 16x16 bounds. But otherwise you're correct.
  18. Here's a hint. You're working in a language that has access to the file system.
  19. http://files.minecraftforge.net/ is not currently responding
  20. You're doing everything wrong. You need to use the Registry events. http://mcforge.readthedocs.io/en/latest/concepts/registries/#registering-things

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.