[Mod] Daytime [0.2][daytime]
- 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]
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
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.
Re: [Mod] Daytime [0.1] [daytime]
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
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)
- Linuxdirk
- Member
- Posts: 3218
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: [Mod] Daytime [0.1] [daytime]
You can upload and download almost anything from Github. They provide a download link for branches (or at least for master) as ZIP file.Esteban wrote:I believe Github supports tarballs.
- 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]
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. ;)
- 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]
Thanks to all of you for your comments!
Glad I could help a little.
I thought that too, I was planning to keep a copy as .zip and one as .tar to make everyone happy :bphilipbenr 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. ;)
Glad I could help a little.
- Linuxdirk
- Member
- Posts: 3218
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: [Mod] Daytime [0.1] [daytime]
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 :)Dipity wrote:I was planning to keep a copy as .zip and one as .tar to make everyone happy :b
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 :)
- 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]
Will do that, thanks (: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 :)
Again, thanks for the information - No Windows for me, though :bIf 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 :)
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.
- 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]
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)
- register privilege : http://dev.minetest.net/minetest.register_privilege
- chatcommands : http://dev.minetest.net/minetest.register_chatcommand
(add privs = {timechangr = true} for ex)
My mods : The Cube minigame, Spleef minigame, Unbreakable screwdriver, Warp,Notifying doorbell
Serveur francophone : game.minetest-france.fr:30000 <3
Serveur francophone : game.minetest-france.fr:30000 <3
- 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]
Thanks alot :bindriApollo 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)
Re: [Mod] Daytime [0.1] [daytime]
+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
A list of my mods can be found here
- Hybrid Dog
- Member
- Posts: 2828
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Daytime [0.1] [daytime]
not only .zip is supported, you just need to change the .zip of the download link e.g. to .tar.gzLinuxdirk wrote:You can upload and download almost anything from Github. They provide a download link for branches (or at least for master) as ZIP file.Esteban wrote:I believe Github supports tarballs.
- 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]
+1
But, why should create new privileges? Just use "settime".
But, why should create new privileges? Just use "settime".
Saya dari Indonesia! · Terjemahkan Minetest! · my mods · My nickname in IPA: /es.rif.qi/
- 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]
Umm.. You're completely right.srifqi wrote:But, why should create new privileges? Just use "settime".
I simply didn't think about the default privileges :D
Thanks for pointing out, I will update this in no time.
Who is online
Users browsing this forum: Skamiz Kazzarch and 18 guests