-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
Still don't know why anyone would assume that an Axis Aligned bounding box could be anything other than aligned to axis.
-
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?
-
Maybe figure out what class name that is? Literally everything gets passed a world object at some point...
-
a problem with getLastDamageSource() method
Draco18s replied to BlueKnight009's topic in Modder Support
-
In your IDE, under Referenced Libraries.
-
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.
-
[1.16.5] Possible to modify tags at runtime?
Draco18s replied to electro1574's topic in Modder Support
You don't know how data packs work, do you? The tag json files are config files. -
How can i fix Exception in thread "main" in 1.16.5?
Draco18s replied to klimooss123's topic in Modder Support
By the way, for next time, your error is not "exception in thread main," it is: -
https://lmgtfy.app/?q=rgb+color+as+integer
-
Alright then. How would you express a color as an integer?
-
That's the name of the parameter, what's it's Type
-
What is the signature of the method you're calling. It should tell you.
-
Cough default: event.setCanceled(true); Cough
-
So... renormalize the vector... https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization
-
Or, more sensibly: vec = player.getLookVec vec.y = 0
-
No: Why are you pushing the Z and Y values in the wrong order?
-
👀
-
Capabilities
-
I don't know, maybe the client can't kill entities, because the server controls that?
-
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
-
[1.16.5]Attaching an inventory to an item
Draco18s replied to Skelyvelocirap's topic in Modder Support
ItemStackHandler#insert and ItemStackHandler#Extract -
[Solved][1.16.5] A question about Blockstates JSON files
Draco18s replied to MonkeyKnight's topic in Modder Support
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 } }