Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. Still don't know why anyone would assume that an Axis Aligned bounding box could be anything other than aligned to axis.
  2. 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?
  3. Maybe figure out what class name that is? Literally everything gets passed a world object at some point...
  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. You don't know how data packs work, do you? The tag json files are config files.
  6. By the way, for next time, your error is not "exception in thread main," it is:
  7. 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.
  8. Alright then. How would you express a color as an integer?
  9. That's the name of the parameter, what's it's Type
  10. What is the signature of the method you're calling. It should tell you.
  11. Cough default: event.setCanceled(true); Cough
  12. So... renormalize the vector... https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization
  13. Or, more sensibly: vec = player.getLookVec vec.y = 0
  14. No: Why are you pushing the Z and Y values in the wrong order?
  15. This is basic OOP, you need a reference to the object that has the capability.
  16. I don't know, maybe the client can't kill entities, because the server controls that?
  17. 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
  18. ItemStackHandler#insert and ItemStackHandler#Extract
  19. 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 } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.