Commit Graph

29 Commits

Author SHA1 Message Date
Sys Quatre 15cc8e129c Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-20 15:02:16 +02:00
orbea 1059546344
Add a setting to disable the random fire chance. (#18) 2020-06-04 20:46:16 +02:00
Sys Quatre 2040363297 Merge branch 'master' of yunohost.local:minetest-mods/lightning into nalc-1.2-dev 2019-12-22 13:39:44 +01:00
Panquesito7 01f2b9c89d Use mod.conf for dependencies and description 2019-10-16 09:18:50 -07:00
Thomas Rudin 2183978c6f add .travis.yml 2019-10-16 09:18:16 -07:00
Thomas Rudin 134f1e6371 add lightning.effect_range setting for audio and visuals range limiting 2019-10-16 09:17:52 -07:00
BuckarooBanzay 883a8484b5 fix stored player object, use name instead 2019-10-11 20:20:03 +02:00
BuckarooBanzay 3136adbe00 add .luacheckrc and fix common errors 2019-10-11 20:20:03 +02:00
sys4-fr d091bf8025 Ajoute message de chargement du mod dans le journal "action" 2018-12-26 20:23:26 +01:00
Auke Kok 39bd36cc17 Use particle glow to brighten up the lightning. 2017-02-20 10:49:08 -08:00
Auke Kok d426c601b4 This should make default optional as well 2017-02-20 10:37:13 -08:00
Auke Kok 0f157571a5 This should make fire optional 2017-02-20 10:34:22 -08:00
Auke Kok 4c27fe79b7 Remove flame from creative inventory. 2017-02-20 10:30:08 -08:00
brittm3 1d9dfaa785 Fix player sky race.
Fixes a bug that would leave the player's sky permanently white after
two lightning strikes occur in rapid succession.
2016-11-23 16:43:54 -08:00
Auke Kok 846079370f Fire: omit sounds if sound API not supported by lame fire mods :)
tenplus1's version of the fire mod removes all sound support. This
code makes this mod work if people are using his version of the
fire mod.
2016-03-14 23:16:58 -07:00
Auke Kok 2743d4a1d6 Technically, fire is a required mod at this point. 2016-03-14 07:39:04 -07:00
Auke Kok 065598e92d Damage nearby players.
8 damage will be dealt to any living object (mob or player) in a
radius of 5 nodes of where the lightning strikes.
2016-03-10 17:25:09 -08:00
Auke Kok 7ba1adae2b Don't trigger lightning if mods disable auto at init. 2016-03-10 16:10:16 -08:00
Auke Kok 0cdcb34d6b Fix calculation of pos2.
This needs to always be done, even if passed a pos.
2016-03-10 15:27:22 -08:00
Auke Kok e79965e3e8 Export our API handle "lightning" 2016-03-10 15:03:35 -08:00
Auke Kok b8724822b6 Make the flame with a nodetimer instead.
This is more robust, and won't remove other nodes placed
at the same pos accidentally.
2016-03-10 15:03:35 -08:00
Auke Kok 9bdcdafae2 Allow mods to strike with our code, optionally at a certain pos. 2016-03-10 15:03:35 -08:00
Auke Kok 3c4c9d0e75 Allow random striking to be disabled run-time 2016-03-10 12:02:11 -08:00
Auke Kok 75ad945534 Change flame effect to a temporary flame.
- reduce chance of actual fire by 10.
- reduce chance of nodes getting modified
- adds a "dying flame" node that does not ignite
- lightning by default places the "dying flame"
- "dying flame" node destroys itself within a short period
2016-02-21 15:13:42 -08:00
Auke Kok fa362ba6bc Adding a screenshot for the in-game mod manager. 2016-01-30 15:55:08 -08:00
Auke Kok a18847751a Light up the sky when lightning strikes.
This may delay or not be seen - expected jitter.
2016-01-16 11:55:51 -08:00
Auke Kok 6eb4914dd1 Tweak some stuff, now it's somewhat behaving. 2016-01-13 20:43:28 -08:00
Auke Kok 0ea81f5b0a List all textures. 2016-01-13 09:47:56 -08:00
Auke Kok 0c3ebb99bd Initial checkin. 2016-01-13 09:47:32 -08:00