Page 1 of 1

[Mod] Solar Mana [solarmana] (WIP)

PostPosted: Sat Apr 04, 2015 20:16
by Ben
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!

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

PostPosted: Sun Apr 05, 2015 00:55
by Don
That's cool.

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

PostPosted: Sun Apr 05, 2015 07:14
by TenPlus1
+1

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

PostPosted: Sun Apr 05, 2015 07:52
by Krock
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.

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

PostPosted: Sun Apr 05, 2015 10:35
by Hybrid Dog
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

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

PostPosted: Sun Apr 05, 2015 20:59
by Ben
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).

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

PostPosted: Mon Apr 13, 2015 20:32
by Minetestforfun
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...)

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

PostPosted: Tue Apr 14, 2015 20:19
by Ben
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 ;-)

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

PostPosted: Mon Apr 20, 2015 20:15
by Ben
Version 0.3.1 released

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

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

PostPosted: Fri Jul 10, 2015 20:02
by Ben
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"?

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

PostPosted: Wed Mar 09, 2016 20:18
by Wuzzy
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.

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

PostPosted: Thu Mar 10, 2016 18:27
by azekill_DIABLO
cool!! maybe add weapons in addition

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

PostPosted: Thu Mar 10, 2016 20:12
by prof-turbo
Mithril on minetestforfun servers... Too expensive :p