[Mod] Solar Mana [solarmana] (WIP)

Post Reply
User avatar
Ben
Member
Posts: 160
Joined: Tue Mar 31, 2015 20:09

[Mod] Solar Mana [solarmana] (WIP)

by Ben » Post

Solar Mana mod

A regeneration controller mod for the mod mana by Wuzzy. Instead of constantly regenerating mana, players need to stand in direct sunlight to regenerate mana.

The definition of "standing in sunlight" is quite simple for now: the player's head needs to be at light level 15. Another variation tries to be more lenient, but is not without problems, so it's commented out in the code.

Since many magic users prefer their homes and offices to actually have a roof, standing on specific node types (currently wooden planks (group:wood) and gold blocks) will also regenerate mana.

Now with support for slower, and negative, regeneration. Just for fun, standing on stone will drain your mana...

Version: 0.4.0
License: LGPL 2.1

Repository: Solar Mana on GitHub

Download: Dependencies: This is my first mod, so any tips and comments, also regarding code style, archive contents or releasing procedure are very welcome!
Last edited by Ben on Fri Jul 10, 2015 19:59, edited 5 times in total.

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

Re: [Mod] Solar Mana [solarmana] (WIP)

by Don » Post

That's cool.
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
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] Solar Mana [solarmana] (WIP)

by TenPlus1 » Post

+1

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Solar Mana [solarmana] (WIP)

by Krock » Post

Afaik, there's only air in Minetest skies. The ozon (O3) protects us from UV light.
My conclusion is: Staying in the sunlight is bad in Minetest.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

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

Re: [Mod] Solar Mana [solarmana] (WIP)

by Hybrid Dog » Post

Krock wrote:Afaik, there's only air in Minetest skies. The ozon (O3) protects us from UV light.
My conclusion is: Staying in the sunlight is bad in Minetest.
And why is VaE's skin brown and not red?
http://minetest.fensta.bplaced.net/#name=VanessaE

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

User avatar
Ben
Member
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Solar Mana [solarmana] (WIP)

by Ben » Post

I've just uploaded another version (0.2.0), which adds mana regeneration while standing on specific nodes. This should make magic users' homes a good place to work in again, and provide a reason to build out your mining base.

Currently, standing on wood planks (from "default", at least) regenerates the same as in sunlight (the default value of '1' from the mana mod), while "default:goldblock" regenerates mana twice as fast.

These node types are mostly placeholders; I'd appreciate any tips as to what nodes would make sense (though I guess gold blocks could use the extra utility, even if it means everyone suddenly has gloriously shining floors in every room).

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] Solar Mana [solarmana] (WIP)

by Minetestforfun » Post

Great work/idea/mod !

I will try it soon, your mod give me many ideas about the mana mod in my server :)

I think it would be better if you post your mod on a git repository (gitlab, github, etc...)

User avatar
Ben
Member
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Solar Mana [solarmana] (WIP)

by Ben » Post

It is on GitHub ;-) I'll add a link to the repository itself, not just the releases.

This mod is paused a bit right now; I'm thinking of writing a patch for Wuzzy's mana mod which allows floating point and negative regeneration, to see if we can get that in. Then you could not only have more fine-tuned regeneration, but also nodes or biomes which sap mana right out of you :-P

Thanks for reminding me, and have fun trying it ;-)

User avatar
Ben
Member
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Solar Mana [solarmana] (WIP)

by Ben » Post

Version 0.3.1 released

Mana regeneration can now depend on node groups, not just individual nodes (thanks Mg!).

User avatar
Ben
Member
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Solar Mana [solarmana] (WIP)

by Ben » Post

Version 0.4.0 released

I recently noticed that the mana mod now supported fractional and negative regeneration, so I've made another release. Now standing on wood or gold will regenerate mana much more slowly; standing on stone, on the other hand, will drain your mana!

(No, the stone thing is not serious. I mean, yes, it's in the code right now, but it makes no sense and will go away once something better is found.)

So, which node types should drain mana? What's good for natural or artificial "magic dampening zones"?

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Solar Mana [solarmana] (WIP)

by Wuzzy » Post

Haha, great idea! I just found this mod now.

For “magic dampening zones” I'd suggest obsidian, obsidian brick and obsidian glass.
I don't think wood should boost mana regeneration, it's too cheap.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Solar Mana [solarmana] (WIP)

by azekill_DIABLO » Post

cool!! maybe add weapons in addition
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
prof-turbo
Member
Posts: 516
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

Re: [Mod] Solar Mana [solarmana] (WIP)

by prof-turbo » Post

Mithril on minetestforfun servers... Too expensive :p

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests