Jump to content

Recommended Posts

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?

 

Posted

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?

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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