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.

Featured Replies

Posted

Hello every one, I'm making a mod on something that I always hated about minecraft, it's day/night cycle, I mean 20 minutes it's something like 1/72 of a real day, I've never have played any other sandbox with that little time, it gives little importance to the day or night cause at the end we just end ignoring them as they pass too quickly, it's like if you where to prepare for breakfast and when you have finished you already have to go to dinner and when you should be scared by monsters at nigh it really doesn't matter, they simply don't have the time to do nothing.

So in order to modify this i started modifying time on 1.6.4 on this ones

 

calculateCelestialAngle(long par1, float par3) //it calculates position of the sun correlating to a number of ticks

public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)// its the \time set

 

But I have an issue with beds, they don't wake you up when they should and I can't found where minecraft fast forward the time to pass the night, also I can't found where hunger gets reduced.

I'm new on modding minecraft so I don't know where all that stuff it's on 1.6.4 and 1.7.2 ( including the things I modified on 1.6.4 ) , could someone tell me please?

 

This is just a guess from my limited time spent modding but I would say that most of this would be handled in entity player not the bed itself, go have a hunt around that area.

  • Author

thanks, after looking a looot i found that it actually it's on WorldServer and DemoWorldManager, but now I got an other trouble with 1.7.2, I can't modify on that version the minecraft code, just add new classes and packages, how I can modify that? or there is no way yet?

  • Author

thanks!, well i wanna to change the number of ticks that the day has, in order to do this i have to change the /time set night command and the number of ticks that the bed jumps over the night so nothing became weird the only way i found to do this was to change in 1.6.4 this lines:

 

calculateCelestialAngle(long par1, float par3) //it calculates position of the sun correlating to a number of ticks

 

public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)// its the \time set

 

public void tick()//here also its the number of ticks that a player jumps when its sleeping in an if

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.