Jump to content

Mortimer Kerman

Members
  • Posts

    8
  • Joined

  • Last visited

Converted

  • Location
    On Miller, chased by a giant wave with 1.3g.

Recent Profile Visitors

1301 profile views

Mortimer Kerman's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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.
  2. 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
  3. 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)
  4. 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; }
  5. I know it's not great. But could you just answer my question without judging, please?
  6. 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.
  7. 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.
×
×
  • Create New...

Important Information

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