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. Do you have a json blockstate file?
  2. Particles are explicitly rendered such that they always face the camera. Unless you mean that you want them to originate at an offset, and that offset rotates.
  3. The right click method runs client side. If you log out and log back in, you'll find that the block was not destroyed.
  4. I have an IDE that formats static in italics, so I don't have that problem.
  5. And this is why you always change that...
  6. The event is for when any block generates drops. Do note that event.player may be null (which for natural leaf decay would be true).
  7. His leggings slot isn't empty: check the player model, you can see the armor. What's going on is that one of the armor layers is not finding a model/texture (and in the case of leggings, both appear to be missing).
  8. Rather than drawing exactly at the coordinates (e.g. (1, 1, 1 ) draw slightly offset (e.g. 1.001, 1.001, 1.001 ). You'll want to draw larger than the block and you don't care if that direction is towards or away from the camera (if it's away, then it's behind, and won't draw anyway).
  9. You need to draw the string during drawGuiContainerForegroundLayer and drawGuiContainerForegroundLayer only. If it is dependent on a button being "pressed" you need to save that state elsewhere and reference it during drawGuiContainerForegroundLayer to draw your string.
  10. http://stackoverflow.com/questions/17671234/is-there-a-complete-list-of-jvm-exit-codes
  11. I think, but I am not sure, that you are running into Z-Fighting: the lines you are drawing occur in the same z-depth (distance from the camera) as the objects you're drawing them "over" so the GPU can't correctly sort their order.
  12. It's a return value from main. Generally speaking "0" means "everything's fine" while other values are some variant of an error.
  13. Betcha it's this part here: Item.getItemFromBlock(block) Just because you called GameRegistry.register on a block does not mean your block has an item.
  14. Yeah, except that the documentation for git's command line is ass. It was written by people to say "look at how smart I am, can YOU understand this?"
  15. Did you change the folder name too?
  16. Post your code, we're not psychic.
  17. Change this: new ModelResourceLocation("renewabilitymod:chain_mail#normal"); to new ModelResourceLocation(chainMail.getRegistryName());
  18. When I did this, I did it with a custom button. https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/industry/client/GuiContainerFilter.java#L56 https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/industry/client/GuiContainerFilter.java#L224-L233 Might not've been the best solution, but it worked.
  19. Lets only do this on the client because the server has control over everything. Why? Raisins.
  20. drawself is being called from public final void draw(int mx, int my) in Pane
  21. Post your block registration code, in full, along with JSON files.
  22. http://www.minecraftforge.net/forum/index.php/topic,41630.msg221131.html#msg221131
  23. That is the proper way. @Deprecated means "do not invoke this" not "this is not used."
  24. Why are you using Minecraft.getMinecraft().theWorld ? This is both client side only and unnecessary as a world object was passed to the method already: onItemRightClick(ItemStack item, World world, EntityPlayer player)
  25. Unlocalized names are purely for display, so yes, they still exist and don't point back to something else.

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.