
-
How to calculate motion from distance and height
Yeah, it's exactly this. I've used this in many of my projects, and it's working perfectly to change gravity strength and air resistance accurately.
-
[1.8] Editing day lenght - can it be unsafe? (+question)
yes I know, but at least if in the future someone is looking for a clear and concise answer he will easily have what he was looking for, instead of messages with dozens of lines
-
[1.8] Editing day lenght - can it be unsafe? (+question)
I put this here for future visits: If you are under 1.16, you can put this in your WorldProvider: @Override public float calculateCelestialAngle (long worldTime, float partialTicks) { return (world.getWorldTime () / (1.0F / 24.0F) - 6000.0F) / 24000.0F; } (the 1.0F value is the value to change to change the day lenght, normal day lenght is 24.0F)
-
[1.16.1] [Solved] Help with new Dimension system
Hello, I also have a problem about the new dimension system. Before 1.16, it was possible to calculate the celestial angle into the WorldProvider using CalculateCelestialAngle(). But now, it's only possible to set a specific and unchangeable hour into the dimension .json files. Or, I want to calculate the celestial angle with a formula including world.getworldtime to get a longer (or shorter) day/night cycle, but it's impossible to import this kind of values into a .json. It worked before 1.16, but now I don't know how to do this. Any ideas? PS: This was the code used in 1.15 and before: @Override public float calculateCelestialAngle (long worldTime, float partialTicks) { return (world.getWorldTime () / (1.0F / 24.0F) - 6000.0F) / 24000.0F; }
-
Helmet slot damage detection problem
I know it's not great. But could you just answer my question without judging, please?
-
Helmet slot damage detection problem
-
Helmet slot damage detection problem
Hello, I'm new to mod programming, and I have a problem: I'd like to set a variable "Mask" to a number that depends on the damage of a piece of armor (the helmet). I almost finished the code, but the checker I put did not work. Could someone help me to correct the problem? Thank you in advance. Sorry for the gross mistakes. Line to be corrected: MineterstellarModVariables.mask = (double) (((itemstack)).getDamage()); The name of armor is: mineterstellar.item.ItemSpacesuit ItemSpacesuit.helmet PS: My mod is for 1.14.
-
Mortimer Kerman changed their profile photo
-
Helmet slot damage detection problem
Hello, I'm new to mod programming, and I have a problem: I'd like to set a variable "Mask" to a number that depends on the damage of a piece of armor (the helmet). I almost finished the code, but the checker I put did not work. Could someone help me to correct the problem? Thank you in advance. Sorry for the gross mistakes. Line to be corrected: MineterstellarVariables.mask = (double) (itemstack.getItemDamage()); The name of armor is: mineterstellar.item.ItemSpacesuit ItemSpacesuit.helmet PS: My mod is for 1.12.
IPS spam blocked by CleanTalk.