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. No, it is looking for a container provider, so just pass an instance of it.
  2. You can replace with your own model through ModelBakeEvent.
  3. Make a new instance of your container.
  4. Is the event called? Have you attach the capability to the players?
  5. Override MobEntity#func_230254_b_ and the you can open the container via NetworkHooks.openGui().
  6. Maybe not in Vector3d, but there's one in Vector3f
  7. You've never use ExampleBlock?
  8. Hey! Thanks for the reply. I'm pretty much figured out how to rotate them, but another question has appeared just like what you've said: displacement. Given the quad I'm not sure where can I get the pivot point, although I can manually type the numbers in but I would like them to be more "automatic", is it possible? Thanks. Edit: Also there is a helper class provided by Forge called QuadTransformer.
  9. Set the block's render type to cutout in client setup using RenderTypeLookUp.
  10. Hey, I'm now trying to add an item model's quads in another item model's IBakedModel#getQuads. In order to do the dynamic part I need to be able to rotate the vertexes, which I'm not sure how to start with. Any information is appreciated : )
  11. Why do you keep adding the same entity to the world every tick? Edit: my bad, misread the code.
  12. GameSettings.keyBindAttack. You can get the instance of game settings in Minecraft.
  13. You should not be doing the sitting logic on client.
  14. The code you had copied from is old. The name/signature has changed. Minecraft.getInstance().player;
  15. https://mcforge.readthedocs.io/en/latest/concepts/registries/#deferredregister
  16. Since Item already implements IItemProvider, you can reference them directly, e.g.: //this creates a stack of 5 iron nuggets ItemStack ironNuggets = new ItemStack(Items.IRON_NUGGETS, 5);
  17. There's a list of tooltips provided, you can do whatever you want to it (remove them all, add your custom ones, or even flip them all around...).
  18. You don't need to implement a new IItemProvider as Item already does that... so just use the items in Items.java and create a new ItemStack with it, then add them to the world using World#addEntity.
  19. If you just want to add some simple text to the item use ItemTooltipEvent.
  20. It gives you the coordinate.... you need to render the extra information yourself.
  21. You shouldn't be adding entities on client side, and have you register your entities?

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.