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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. http://lmgtfy.com/?q=distance+between+points
  2. itemRender(magGlass,0,"ItemMagGlass.json"); HEAVY SIGH just use Item#getRegistryName(). It comes pre prefixed with your mod ID. You also don't need the ".json" the resource location class handles that for you already.
  3. If there is, I'm not aware of it. The right-click method has always given me a little bit of trouble keeping things synced (dates back to the first time I started using it), so the only way to be absolutely sure is to use packets.
  4. The particles on an actual entity, like a player originate at the bottom middle of the feet on something like a player using the posX, Y, and Z that I mentioned before. I can statically add to the previous comments, like doing poxY + 0.5F ( to move it up a bit) and posX + 1.0F (to shift it over), but those are static. When a player or skeleton turns around, the particles stay in the same static place. I wanted to see if there is a way to rotate that particle with where the entity (in this case, skeletons) look to keep it centered in the forehead. This post boils down to, "yes, I want them to originate at an offset, and that offset rotates."
  5. Ok, if it has if(!world.isRemote), then it should only run on the server and do nothing on the client at all, even if the method this is contained in was client-side-only (in which case, nothing would happen on the server either, because it would be unaware and the if-statement prevents the client from doing anything at all).
  6. Do you have a json blockstate file?
  7. 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.
  8. The right click method runs client side. If you log out and log back in, you'll find that the block was not destroyed.
  9. I have an IDE that formats static in italics, so I don't have that problem.
  10. And this is why you always change that...
  11. 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).
  12. 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).
  13. 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).
  14. 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.
  15. http://stackoverflow.com/questions/17671234/is-there-a-complete-list-of-jvm-exit-codes
  16. 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.
  17. It's a return value from main. Generally speaking "0" means "everything's fine" while other values are some variant of an error.
  18. 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.
  19. 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?"
  20. Did you change the folder name too?
  21. Post your code, we're not psychic.
  22. Change this: new ModelResourceLocation("renewabilitymod:chain_mail#normal"); to new ModelResourceLocation(chainMail.getRegistryName());
  23. 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.
  24. Lets only do this on the client because the server has control over everything. Why? Raisins.
  25. drawself is being called from public final void draw(int mx, int my) in Pane

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.