Skip 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. You can. ByteBufUtils.writeTag(buffer, nbt); You can also send more than one value in a packet...
  2. You will need to replicate the behavior of the raytrace yourself.
  3. You need to create a block state container. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockAxel.java#L60-L63
  4. Your method needs to be static.
  5. The entire system you're working with in 1.7 has been completely replaced with a new system. Currently supported versions are 1.10.2*, 1.11.2, and 1.12.2 *Officially the supported versions are "current" and "previous" but a lot of the systems are the same between 1.10 and 1.11, so 1.10.2 hasn't quite fallen off the list yet.
  6. 1.7.10 is no longer supported here. Update.
  7. You need to send a list of UUIDs.
  8. You need to use the registry events. Models need to be registered (exactly as you have) but in the ModelRegistryEvent
  9. Oh yeah, making a custom subclass is easy. You just have to override like, two methods. It just so happens that for the most part, there's already ItemMultiTexture (iirc) that already does it.
  10. Minecraft, they're used by wool, planks, etc. They're easy enough to find. Right click -> open type hierarchy. You'll want the one not called "colored" because it inverts the metadata value because Mojang made colors backwards.
  11. This is an event, you do not invoke it yourself. The @SubscribeEvent annotation is what allows the code to be called when the class it is in is correctly registered as an event handler. http://mcforge.readthedocs.io/en/latest/concepts/registries/#registering-things
  12. Wool has subtypes, so does logs and planks. Iron Ore does not.
  13. There are already two subclasses of ItemBlock, one of which should do what you need. The issue is that the ItemBlock class (by default, unless override by a subclass) ignores metadata when placing its block.
  14. You have two Living Hurt events: https://github.com/Insane-96/GalaxiteMod/blob/master/common/net/insane96mcp/galaxite/lib/CustomEventHandler.java#L20-L21 https://github.com/Insane-96/GalaxiteMod/blob/master/common/net/insane96mcp/galaxite/lib/CustomEventHandler.java#L79 I'm going to bet that one of them works and the other doesn't.
  15. Prior to the addition of the registry events, this is the wrong way to do item substitution. You were supposed to use GameRegistry.addSubstitutionAlias which may throw a ExistingSubstitutionException so you had to wrap it in a try...catch block.
  16. This is because the ModelMesher is Mojang's code and must be called at a very specific point during startup, whereas the ModelLoader is Forge supplied so that you (as a modder) can't fuck up.
  17. My comments were less a comment on you than a comment on the people still using ModelMesher. People bitch at me all the time. No joke.
  18. http://www.avajava.com/tutorials/lessons/how-do-i-share-my-code-formatting-settings-with-another-user.html?page=2
  19. A bit? It's been the wrong way for over two and a half years. It was added in Build 1.8 - 11.14.0.1292 (latest is 1.12.2 - 14.23.0.2512) which was released on Jan 29, 2015.
  20. That's a method in the Block class.
  21. Technically that's an option that is disabled by default. doLimitedCrafting Whether players should only be able to craft recipes that they've unlocked first false
  22. override canHarvestBlock

Important Information

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

Account

Navigation

Search

Search

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.