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. NBT is not relevant, but yes, you will need to save and synchronize just as you always have.
  2. To be compatible with things like hoppers? NBT has nothing to do with anything. IItemStackHandler is also saved to NBT. TileEntities do not operate on NBT at runtime, NBT is for serialization and serialization only.
  3. Nope. I need to update to that method, but I haven't gotten around to it yet.
  4. You're setting awake on the server. You're expecting the client to render something. You need to tell the client that the data has changed.
  5. I'd use an IItemStackHandler (the capability) in order to provide the capability to "handle items" with a single slot containing a 1-size stack of whatever's stored. Then you store an integer normally that actually tracks how many are stored.
  6. They aren't. The obsolete part is the GameRegistry. They've been deprecated in favor of the Registry<T> events.
  7. These are not the same object.
  8. If you don't mind a slightly obsolete method of doing things https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/EasyRegistry.java https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java These classes are proxy/client proxy. It makes registering blocks and items very similar to how it was done in 1.7 Also note that these lines are just a reference back to the main mod class so that static methods can be used instead.
  9. Have you looked at how reeds, doors, cakes, redstone dust, and so on work?
  10. "AL lib: (EE) alc_cleanup" isn't your problem. A clean exit will display that message too. In addition to the above, use a god damn spoiler tag.
  11. I would be more amused if you returned Float.MIN_VALUE (the smallest, positive value representable) instead of 0.
  12. For development? Latest. Recommended is more for players.
  13. Also, you should always register all items and blocks, regardless.
  14. Also, you can use item.getRegistryName() instead "zocrpmod:" + itemName
  15. Step 1: Create a new class Step 2: Use the sustitution/override system to replace the vanilla instance with your own instance
  16. A lot of people post "I have problem" and don't post code or error and expect us to help merely by recognizing a vague description of the problem. So I end up writing a lot of witty retorts.
  17. Ah, yes, I see the problem. On line 109 in your Render class you perform an illegal action. You should do this:
  18. You mean the substitution alias system. That's not override.
  19. 1) GameRegistry.registerItem(item, itemName) is deprecated. That's why it has a line through it, use the new Registry events instead. 2) Minecraft.getMinecraft().getRenderItem().getItemModelMesher()... is bad, use ModelLoader.setCustomModelResourceLocation(...) instead. 3) The error is in getArmorResource of LayerArmorBase which means that you did not correctly override something you needed to.
  20. Awful, awful, terrible, no good, very bad things. But we can't tell, because you haven't posted all of the code involved. Liiiike your AchievementBookItem class where you declare getModelLocation()
  21. Pretty much all of the non-hills biomes. Plains, forest, birch forest, ice plains... Average ground height is considered to be 63.
  22. Note that 65 is "above ground" for most biomes.
  23. 0,0,0 should be bedrock in the overworld, the nether, and similar dimensions. For other dimensions (without a bedrock floor) it's possible although unlikely to be able to place a block there.
  24. Let me see if I read this correctly: ItemNBTHelper.getBlockPos(usedMicrophone, "BoxPos").equals(BlockPos.ORIGIN) If the microphone is brand new, then its BoxPos will be the origin, yes? Ok, so I go to link it, I get the current linkage, it is to the ORIGIN, that returns (!(origin)) which is false, and I dump into the else statement: player.sendMessage(new TextComponentString("You have no source bound to the microphone"));

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.