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.

Mortimer Kerman

Members
  • Joined

  • Last visited

  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. Mortimer Kerman changed their profile photo
  8. 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.

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.