[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
Location: world
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice

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: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
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.
Back from the dead!
 

User avatar
Bas080
Member
 
Posts: 398
Joined: Mon May 21, 2012 15:54
Location: Netherlands
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
Developer
 
Posts: 4152
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
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.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
mcfan
Member
 
Posts: 120
Joined: Wed Mar 26, 2014 15:02
Location: Out in MC land

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
Moderator
 
Posts: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
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
Location: world
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice

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: 4518
Joined: Mon Oct 03, 2011 17:58
Location: Blender Scene
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.*
viewtopic.php?f=10&t=19056 Solar Plains Dev Server
 

User avatar
mimilus
Member
 
Posts: 75
Joined: Thu Mar 06, 2014 09:08
Location: France
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
Moderator
 
Posts: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
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 4 guests