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.

poopoodice

Members
  • Joined

Everything posted by poopoodice

  1. Set the render type of the block in your client setup using RenderTypeLookup.setRenderLayer(block, rendertype);
  2. You can't guarantee that other mods inherits from vanilla classes, I'll say use tags
  3. ITextComponent.applyTextStyle() in 1.15
  4. Either way of registering should work, and I've never use DeferredRegistrer before but it shouldn't be different from others like items and blocks. Same if you are using registry events.
  5. ForgeRegistries.ENCHANTMENTS
  6. I'm not so sure about this either but when I last check the version with forge bot in discord it is 20200723-1.16.1
  7. I'm not so sure about this either but when I last check the version with forge bot in discord it is 20200723-1.16.1
  8. You can use setStyle to set the text's style or just use for example applyTextStyle(TextFormatting.RED)
  9. You can add things like StringTextComponent, TranslationTextComponent.. etc that inherits from ITextComponent to the list, see how vanilla does it. If you are using the event (for some special reasons?) you can use event.getToolTip() to get the list of tooltips which got from addInformation(), and use List.add() to add new tips just like above.
  10. You can't do that on client.
  11. I think you should be able to do it with Slot.onTake()
  12. It allows you to add data on vanilla entities more flexible as well.
  13. You need to set the size of your entity type, and call setPosition() which eventually sets the bounding box of the entity.
  14. They basically "attaches" extra data that is accessible from other mods, capability can also be apply on the entities that aren't created by you.
  15. The classes should always starts with a capital letter, and you have an extra comma here "heart_block,"
  16. Don't send the packet each tick, send it when changes were made or when needed. context.getSender() gives a ServerPlayerEntity, use Minecraft.getInstance().player to get the client player
  17. Show your main class as well
  18. 1. Show your code 2. Full crash log
  19. Check its comment // Forge: Use supplier method instead use the one above it
  20. BlockEvent.BreakEvent https://mcforge.readthedocs.io/en/latest/events/intro/
  21. If you mean item model properties: https://mcforge.readthedocs.io/en/latest/models/overrides/ ItemModelsProperties.java
  22. You don't really need a packet just to sync a float, just convert it to int (maybe times it by 100, I don't know) and use trackInt() or trackIntArray() in Container.

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.