[Mod] Damage Inverter [nopvp]

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

[Mod] Damage Inverter [nopvp]

by everamzah » Thu Jul 14, 2016 21:13

Description: Invert any damage dealt within a 5 node radius of "nopvp:nopvp" node.
License: WTFPL
Download: GitHub or master.zip

Image

There's no recipe. Effective with mobs, too.
Attachments
Screenshot_2016-07-14_17-08-51.png
Screenshot_2016-07-14_17-08-51.png (41.72 KiB) Viewed 794 times
 

User avatar
D00Med
Member
 
Posts: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

Re: [Mod] Damage Inverter [nopvp]

by D00Med » Thu Jul 14, 2016 22:15

That is really cool and funny, and I haven't even tried it yet. Does it invert negative damage too?
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] Damage Inverter [nopvp]

by everamzah » Thu Jul 14, 2016 23:03

I probably named it wrong. It doesn't turn negative damage into positive damage (healing). Instead it applies the hitter's damage to the hitter. So if a mob or player hits you for 1 damage near the nopvp node, the puncher will lose 1 HP, and you will lose none.
 

User avatar
D00Med
Member
 
Posts: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

Re: [Mod] Damage Inverter [nopvp]

by D00Med » Fri Jul 15, 2016 00:09

Oh ok, still it's a good idea.
but it gives me an idea for a tool... if a sword was made with negative damage groups, it could be a healing weapon...
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Damage Inverter [nopvp]

by DS-minetest » Fri Jul 15, 2016 16:23

nice mod, good for spawns on servers
@D00Med once i already saw a healing staff on a server
maybe a nurse mod, a mob with negative damage
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
D00Med
Member
 
Posts: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

Re: [Mod] Damage Inverter [nopvp]

by D00Med » Fri Jul 15, 2016 20:57

Oh ok. In my subgame there are healing fairies.
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

Byakuren
Member
 
Posts: 441
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri

Re: [Mod] Damage Inverter [nopvp]

by Byakuren » Sat Jul 16, 2016 06:57

Could be good for strategy. Make two hallways separated by a 1-node thick wall, and dig out the part of the wall level with the player's head. Then place a nopvp block such that only one of the hallways is covered by it. You can then wait in the protected hallway and attack players moving through the unprotected hallway.
Every time a mod API is left undocumented, a koala dies.
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] Damage Inverter [nopvp]

by Fixerol » Wed Nov 09, 2016 16:38

 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron