Posted 28 April 2014 - 10:32 PM
Ok, ComputerCraft have os.time() and os.day().
os.day() return the Amount of Minecraft Days that the World Exists
I need the Following:
>A Variable will Store os.day() [local currentDay = os.day()]
>A Calc: The Var / 30 (Month) and Store it in Another Variable
(It will return a Decimal Result)
>Remove the Decimal (As if the Calc give 4,(anything) this will be 4)
With this i'm gonna use this to Expand my Code.
Not done yet (Will be a SuperClock Program)
os.day() return the Amount of Minecraft Days that the World Exists
I need the Following:
>A Variable will Store os.day() [local currentDay = os.day()]
>A Calc: The Var / 30 (Month) and Store it in Another Variable
(It will return a Decimal Result)
>Remove the Decimal (As if the Calc give 4,(anything) this will be 4)
With this i'm gonna use this to Expand my Code.
while true do
util.clear() --Myself API for term.clear and setPos 1 1
local exactDay = os.day()
local calc1 = <Help1>
local calc2 = <Help2>
local currentMonth = calc2 + 1
local calc3 = currentMonth * 30
local currentDay = exactDay - currentMonth
Not done yet (Will be a SuperClock Program)