[Mod] Clock Mod [0.1] [clock]

Post Reply
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 » Post

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] [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/a ... 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/b ... g?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: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

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
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

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
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

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: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

by Krock » Post

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.
Look, I programmed a bug for you. >> 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 » Post

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: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

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

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

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.*

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

by mimilus » Post

Maybe you could look here : https://github.com/Pitriss/overridemodp ... r/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 » Post

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 » Post

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 » Post

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 » Post

mimilus wrote:Maybe you could look here : https://github.com/Pitriss/overridemodp ... r/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: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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.

Post Reply

Who is online

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