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. So you can't go open the vanilla source files and poke around for a few minutes identifying functions that you know take a world object and see what it was renamed to?
  2. Maybe figure out what class name that is? Literally everything gets passed a world object at some point...
  3. In your IDE, under Referenced Libraries.
  4. I'm sure there are a host of places in the vanilla code where it checks for things like this, why not search around. Additionally, as EntityPlayer is a subclass, the method you want may be in one of its parent classes.
  5. 1) I am pretty sure you can't 2) Something something documentation.
  6. You don't know how data packs work, do you? The tag json files are config files.
  7. By the way, for next time, your error is not "exception in thread main," it is:
  8. https://lmgtfy.app/?q=rgb+color+as+integer
  9. It always has, just that a handful of methods (mostly UI) would assume a 256x256 texture and take pixel based coordinates. It converted to 0-1 UV coordinates internally before doing the actual blitting, though.
  10. Alright then. How would you express a color as an integer?
  11. That's the name of the parameter, what's it's Type
  12. What is the signature of the method you're calling. It should tell you.
  13. Cough default: event.setCanceled(true); Cough
  14. So... renormalize the vector... https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization
  15. Or, more sensibly: vec = player.getLookVec vec.y = 0
  16. No: Why are you pushing the Z and Y values in the wrong order?
  17. This is basic OOP, you need a reference to the object that has the capability.
  18. I don't know, maybe the client can't kill entities, because the server controls that?
  19. IIRC the example is bad and won't actually compile. This worked, and should still be mostly valid for 1.16: https://github.com/Draco18s/ReasonableRealism/blob/033da26f8ba4bcd25b0911aa9775764f12d7dbbe/src/main/java/com/draco18s/harderores/HarderOres.java#L106
  20. ItemStackHandler#insert and ItemStackHandler#Extract
  21. There are better ways of handling multiple properties now instead of listing them all out. https://minecraft.fandom.com/wiki/Model#Block_states https://mcforge.readthedocs.io/en/latest/models/blockstates/introduction/ { "when": { "east": "true" }, "apply": { "model": "oak_fence_side", "y": 90, "uvlock": true } }
  22. There's only two units when dealing with rotations: - Degrees - Radians Three, if you want to count degrees(-180,180) and degrees(0,360) as different.

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.