[Mod] Daytime [0.2][daytime]

Post Reply
User avatar
Dipity
New member
Posts: 5
Joined: Fri Nov 21, 2014 05:31
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays
Location: Germany

[Mod] Daytime [0.2][daytime]

by Dipity » Post

Hello everyone, this is my first - and, as such really simple - Mod for minetest.
I just learned some LUA and thought that a quick time changing method was needed in MT.

Description:
It contains four commands:
- /day
- /night
- /dawn
- /dusk

NOTE: The privilege "settime" (from default minetest) is needed to execute these commands.

Which all set the time of day to their respective time.

Changelog:
v0.2: privilege "settime" needed to execute the commands
v0.1: main commands added

License: WTFPL

Dependencies: none

Download:
v0.2:
tar: https://github.com/Dipity/mt-daytime/re ... aytime.tar
zip: https://github.com/Dipity/mt-daytime/re ... aytime.zip

old releases:
v0.1:
tar: https://github.com/Dipity/mt-daytime/re ... aytime.tar
zip: https://github.com/Dipity/mt-daytime/re ... aytime.zip
Last edited by Dipity on Sun Nov 23, 2014 14:52, edited 3 times in total.

User avatar
Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
In-game: Esteban
Contact:

Re: [Mod] Daytime [0.1] [daytime]

by Esteban » Post

I don't know if you haven't noticed, but you can upload stuff as attachments in this forum. From the comments I've seen before, the most recommended are Dropbox and Github. I believe Github supports tarballs. Mediafire is not favored by many due to the use javascript for the page.

EDIT:Thanks for clarifying
Last edited by Esteban on Fri Nov 21, 2014 14:06, edited 1 time in total.
Scan avatar or click here to read a Message of Hope (PDF)

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Daytime [0.1] [daytime]

by Linuxdirk » Post

Esteban wrote:I believe Github supports tarballs.
You can upload and download almost anything from Github. They provide a download link for branches (or at least for master) as ZIP file.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [Mod] Daytime [0.1] [daytime]

by philipbenr » Post

I think that .zips would be the best for universal support. As for the mod, thank you, you saved me a little bit of work I was planning to do. ;)

User avatar
Dipity
New member
Posts: 5
Joined: Fri Nov 21, 2014 05:31
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays
Location: Germany

Re: [Mod] Daytime [0.1] [daytime]

by Dipity » Post

Thanks to all of you for your comments!
philipbenr wrote:I think that .zips would be the best for universal support. As for the mod, thank you, you saved me a little bit of work I was planning to do. ;)
I thought that too, I was planning to keep a copy as .zip and one as .tar to make everyone happy :b
Glad I could help a little.

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Daytime [0.1] [daytime]

by Linuxdirk » Post

Dipity wrote:I was planning to keep a copy as .zip and one as .tar to make everyone happy :b
Just create a free Github account and upload your mod files there for maximum compatibility. Plus: You get versioning and a kind of backup, too :)

If you’re on Windows have a look at their tool or search for one of the available tutorials on how to use Git on Windows :)

User avatar
Dipity
New member
Posts: 5
Joined: Fri Nov 21, 2014 05:31
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays
Location: Germany

Re: [Mod] Daytime [0.1] [daytime]

by Dipity » Post

Just create a free Github account and upload your mod files there for maximum compatibility. Plus: You get versioning and a kind of backup, too :)
Will do that, thanks (:
If you’re on Windows have a look at their tool or search for one of the available tutorials on how to use Git on Windows :)
Again, thanks for the information - No Windows for me, though :b
Got rid of it a few months ago. For good :D

BTT: I'm planning to add privs. Can anyone link me some reference from the dev wiki? I don't seem to find myself.

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] Daytime [0.1] [daytime]

by indriApollo » Post

Here you go :D
- register privilege : http://dev.minetest.net/minetest.register_privilege
- chatcommands : http://dev.minetest.net/minetest.register_chatcommand
(add privs = {timechangr = true} for ex)

User avatar
Dipity
New member
Posts: 5
Joined: Fri Nov 21, 2014 05:31
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays
Location: Germany

Re: [Mod] Daytime [0.1] [daytime]

by Dipity » Post

indriApollo wrote:Here you go :D
- register privilege : http://dev.minetest.net/minetest.register_privilege
- chatcommands : http://dev.minetest.net/minetest.register_chatcommand
(add privs = {timechangr = true} for ex)
Thanks alot :b

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Daytime [0.1] [daytime]

by Don » Post

+1
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
Hybrid Dog
Member
Posts: 2828
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [Mod] Daytime [0.1] [daytime]

by Hybrid Dog » Post

Linuxdirk wrote:
Esteban wrote:I believe Github supports tarballs.
You can upload and download almost anything from Github. They provide a download link for branches (or at least for master) as ZIP file.
not only .zip is supported, you just need to change the .zip of the download link e.g. to .tar.gz

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
srifqi
Member
Posts: 570
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi
Location: Indonesia

Re: [Mod] Daytime [0.2][daytime]

by srifqi » Post

+1

But, why should create new privileges? Just use "settime".
Saya dari Indonesia! · Terjemahkan Minetest! · my mods · My nickname in IPA: /es.rif.qi/

User avatar
Dipity
New member
Posts: 5
Joined: Fri Nov 21, 2014 05:31
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays
Location: Germany

Re: [Mod] Daytime [0.2][daytime]

by Dipity » Post

srifqi wrote:But, why should create new privileges? Just use "settime".
Umm.. You're completely right.
I simply didn't think about the default privileges :D
Thanks for pointing out, I will update this in no time.

Post Reply

Who is online

Users browsing this forum: Skamiz Kazzarch and 18 guests