[Mod] Clock Mod [0.1] [clock]

User avatar
Mitroman
Member
 
Posts: 62
Joined: Thu Apr 03, 2014 19:47
GitHub: Mitroman
In-game: Mitroman15

[Mod] Clock Mod [0.1] [clock]

by Mitroman » Thu Apr 03, 2014 20:50

This is my first Mod. It adds a clock into the game. When you leftclick (holding the clock) it will say the "time": Midnight, Midday, ... .

Crafting:
[ ] [G] [ ]
[G] [S] [G]
[ ] [G] [ ]
G = gold ingot
S = steel ingot

Depends: default

License: CC-BY-SA 3.0 (DE)

Download (ZIP):
0.1v https://github.com/Mitroman/Clock-Mod/archive/master.zip

Code: https://github.com/Mitroman/Clock-Mod

Bugs:
- It could be possible that the clock nothing say because I could forget to programm this time.

Screenshot:
https://github.com/Mitroman/Clock-Mod/blob/master/screenshot.png?raw=true

Ideas, help, ... would be good :)
Last edited by Mitroman on Sat Apr 05, 2014 16:48, edited 1 time in total.
My mods: Magican, Killer, Clock, Match, Cake.
My Txp: BLoXTxp.
My slogan: EVERYTHING IS AWESOME ;)

If I make any mistakes in english, please tell me so I can correct my mistakes.
 

User avatar
hoodedice
Member
 
Posts: 1372
Joined: Sat Jul 06, 2013 06:33

by hoodedice » Thu Apr 03, 2014 20:52

Your title should be formatted as:

[MOD] Clock mod [0.1] [clock]

And we need a screenshot.

BTW, code is short and sweet. I'll try out your mod later.
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build
 

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

by Evergreen » Thu Apr 03, 2014 21:49

Very nice! Very simple code and idea, I like it.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
Bas080
Member
 
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080

by Bas080 » Fri Apr 04, 2014 05:59

This is a good and server friendly solution. For better time of day gradient add the
https://en.wikipedia.org/wiki/Four_Times_of_the_Day

Absolutley not necessary, but some people like to have diamond watches. Blang blang.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Fri Apr 04, 2014 11:31

Hmm that clock is not very useful because I can see the current time when I look out of a window.
Still a nice beginning with modding.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
mcfan
Member
 
Posts: 120
Joined: Wed Mar 26, 2014 15:02

by mcfan » Fri Apr 04, 2014 11:41

But it is good for when your mining - and... it is somewhat like MC.
Love MINECRAFT... will settle for Minetest
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Fri Apr 04, 2014 12:02

I would like to see a mod that permanently reminders the time somewhere on the screen instead. Could be done in C++ (preferred for accuracy) or Lua. You may say it's cheating, but there are various other ways (glitches, asking people, calculating time...) to get the time of day already.
 

User avatar
hoodedice
Member
 
Posts: 1372
Joined: Sat Jul 06, 2013 06:33

by hoodedice » Fri Apr 04, 2014 13:00

mcfan wrote:But it is good for when your mining - and... it is somewhat like MC.


Please note that we are NOT trying to make a Minecraft clone here. Just saying.
Calinou wrote:I would like to see a mod that permanently reminders the time somewhere on the screen instead. Could be done in C++ (preferred for accuracy) or Lua. You may say it's cheating, but there are various other ways (glitches, asking people, calculating time...) to get the time of day already.


Hmm, do you think this culd be done with the current HUD API?
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Fri Apr 04, 2014 13:35

Calinou wrote:You may say it's cheating, but there are various other ways (glitches, asking people, calculating time...) to get the time of day already.
Look at the sun / moon. *Walks off.*

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
mimilus
Member
 
Posts: 75
Joined: Thu Mar 06, 2014 09:08
GitHub: mimilus
IRC: Mimilus

by mimilus » Fri Apr 04, 2014 14:35

Maybe you could look here : https://github.com/Pitriss/overridemodpack/tree/master/hudclock

Works with 0.4.9
Last edited by mimilus on Fri Apr 04, 2014 14:36, edited 1 time in total.
minetest 0.4.9
Ubuntu 12.04
 

User avatar
pop_harte
Member
 
Posts: 27
Joined: Sun Mar 23, 2014 07:39

by pop_harte » Fri Apr 04, 2014 17:07

good mod but i only play xanadu
 

User avatar
Mitroman
Member
 
Posts: 62
Joined: Thu Apr 03, 2014 19:47
GitHub: Mitroman
In-game: Mitroman15

by Mitroman » Sat Apr 05, 2014 13:06

hoodedice wrote:Your title should be formatted as:

[MOD] Clock mod [0.1] [clock]

And we need a screenshot.

BTW, code is short and sweet. I'll try out your mod later.


Thanks. :)
I will add a screenshot.
My mods: Magican, Killer, Clock, Match, Cake.
My Txp: BLoXTxp.
My slogan: EVERYTHING IS AWESOME ;)

If I make any mistakes in english, please tell me so I can correct my mistakes.
 

User avatar
Mitroman
Member
 
Posts: 62
Joined: Thu Apr 03, 2014 19:47
GitHub: Mitroman
In-game: Mitroman15

by Mitroman » Sat Apr 05, 2014 13:19

Krock wrote:Hmm that clock is not very useful because I can see the current time when I look out of a window.
Still a nice beginning with modding.


Yeah. But when you are mining and you want know the time without going out so... :).
My mods: Magican, Killer, Clock, Match, Cake.
My Txp: BLoXTxp.
My slogan: EVERYTHING IS AWESOME ;)

If I make any mistakes in english, please tell me so I can correct my mistakes.
 

User avatar
Mitroman
Member
 
Posts: 62
Joined: Thu Apr 03, 2014 19:47
GitHub: Mitroman
In-game: Mitroman15

by Mitroman » Sat Apr 05, 2014 13:20

mimilus wrote:Maybe you could look here : https://github.com/Pitriss/overridemodpack/tree/master/hudclock

Works with 0.4.9


Yeah. But this is my first mod, so I am not the best mod-make of the world xD. :)
My mods: Magican, Killer, Clock, Match, Cake.
My Txp: BLoXTxp.
My slogan: EVERYTHING IS AWESOME ;)

If I make any mistakes in english, please tell me so I can correct my mistakes.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Sat Apr 05, 2014 20:49

hoodedice wrote:
mcfan wrote:But it is good for when your mining - and... it is somewhat like MC.


Please note that we are NOT trying to make a Minecraft clone here. Just saying.
Calinou wrote:I would like to see a mod that permanently reminders the time somewhere on the screen instead. Could be done in C++ (preferred for accuracy) or Lua. You may say it's cheating, but there are various other ways (glitches, asking people, calculating time...) to get the time of day already.


Hmm, do you think this culd be done with the current HUD API?


Yes, but very inefficient, especially if you want an accurate clock. You would have to update it often.
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 45 guests

cron