Posted January 20, 201411 yr 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?
January 20, 201411 yr 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.
January 21, 201411 yr 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?
January 22, 201411 yr 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.