clock mod

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

clock mod

by 12Me21 » Thu Apr 25, 2013 19:28

I want to make a clock mod, but I need some way of detecting the time, rounding it to the nearest 1000, then making the right clock node appear over the old one.
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Thu Apr 25, 2013 20:46

To quote kaeza
kaeza wrote:Use minetest.env:get_timeofday()
The number is 0-1 (0=midnight, 0.5=12:00, 0.75=18:00, etc).
See my testclock here for a way to convert to the HH:MM:SS format.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Thu Apr 25, 2013 21:03

oh, I see
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Thu Apr 25, 2013 21:38

I almost finished, but now it says
"17:38:26: ERROR[ServerThread]: Map::setNode(): Not allowing to place CONTENT_IGNORE while trying to replace "clock:clock_12" at (-21,10,-857) (block (-2,0,-54))
17:38:26: ERROR[main]: Map::setNode(): Not allowing to place CONTENT_IGNORE while trying to replace "clock:clock_12" at (-21,10,-857) (block (-2,0,-54))"
all the time.
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Thu Apr 25, 2013 21:41

Can you copy the code here? Use the code tags.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Thu Apr 25, 2013 21:45

I will, but do you know what is causing the errors?
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Thu Apr 25, 2013 22:25

fixed:
http://ompldr.org/vaTgyYw/clock.zip
(when clocks update, there is no way to keep them facing the same direction, so your clocks may face a different direction after updating.)
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Thu Apr 25, 2013 22:29

This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Thu Apr 25, 2013 22:30

Hmm, I tried it and I'm kind of confused. Let me give a go at making a clock mod.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 


Return to WIP Mods

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron