Mod Description
The mod is currently not under development due to another project, however it will be continued in the future. Scroll down for a version supporting unified inventory. The normal version is under the "Download" section.This is my first mod. It adds a PvP-button to the player's inventory. By pressing the button a player can disable/enable PvP for him-/herself and decide like that whether he/she wants to be attackable by others or not. (For use on servers)
Spoiler
The PvP-Button as it appears in the inventory.
PvP is enabled for yourself (you can take damage by other players and can attack players who have PvP enabled for themselves)
License: LGPL 2.1 or later
Download: Attachment at the end of this post.
Installation & Download
Install this mod by extracting the archive and pasting the folder into your mods-directory.
Dependencies: inventory_plus needs to be installed in order to use this mod.
Updates
Ver. 1.1.2: Code has been shortened.Ver. 1.1: Players now can only fight against each other if BOTH of them have PvP enabled for themselves.
Plans for future versions: PvP-Request