[Mod] PvP-Button [1.1] [pvpbutton]

User avatar
Phiwari123
Member
 
Posts: 111
Joined: Sat Aug 02, 2014 07:50
Location: Germany
In-game: Phiwari123

[Mod] PvP-Button [1.1] [pvpbutton]

by Phiwari123 » Fri Aug 28, 2015 15:35

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)

+ Screenshots

Current Version: 1.1.2
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
Attachments
pvpbutton-ver1.1.2.zip
(2.97 KiB) Downloaded 73 times
minetest-pvpbutton-ver1.1.zip
(3.11 KiB) Downloaded 35 times
Last edited by Phiwari123 on Fri Sep 09, 2016 07:55, edited 10 times in total.
Fantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
 

User avatar
TenPlus1
Member
 
Posts: 2197
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1
 

User avatar
DS-minetest
Member
 
Posts: 969
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [Mod] PvP-Button [1.0] [pvpbutton]

by DS-minetest » Sun Aug 30, 2015 08:39

it would be nice, pvp is only be enabled if both players activate pvp
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
Phiwari123
Member
 
Posts: 111
Joined: Sat Aug 02, 2014 07:50
Location: Germany
In-game: Phiwari123

Re: [Mod] PvP-Button [1.0] [pvpbutton]

by Phiwari123 » Sun Aug 30, 2015 10:38

You mean that both have to have PvP enabled to fight? That's a good idea, i will look into that and update the mod...

Edit: Okay, i updated it. Look in the first post for more information!
Fantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
 

User avatar
Napiophelios
Member
 
Posts: 917
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Napiophelios » Sun Aug 30, 2015 19:54

Just a couple of suggestions:
add support for us inventory++ users with an inventory_plus button image
(just throw an image named : inventory_plus_pvp.png into the texture folder)

when pvp is disabled I dont think the green lettered hud display is neccessary
when pvp is enabled I think the red letters is fitting but I dont like the little image with it
it just kinda looks out of place.

anyway I like the mod,there was just enough room for one more button in my inventory
and this one is a nice addition.

Thanks, keep up the good work :)
Last edited by Napiophelios on Fri Sep 08, 2017 00:49, edited 1 time in total.
 

User avatar
Phiwari123
Member
 
Posts: 111
Joined: Sat Aug 02, 2014 07:50
Location: Germany
In-game: Phiwari123

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Phiwari123 » Mon Aug 31, 2015 05:55

Napiophelios wrote:add support for us inventory++ users with an inventory_plus button image
(just throw an image named : inventory_plus_pvp.png into the texture folder)

when pvp is disabled I dont think the green lettered hud display is neccessary
when pvp is enabled I think the red letters is fitting but I dont like the little image with it
it just kinda looks out of place.


Thanks for these suggestions! I will implement those changes in the next version.
Also I might remove the chat-message that is sent to one when enabling/disabling PvP since the red letters in the upper right corner are somehow already well visible and additional messages (à la "PvP was enabled.") are probably just unnecessary. But I'll see!

Also, any other ideas or suggestions for improvement are always welcome :)
Fantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
 

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

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Minetestforfun » Mon Aug 31, 2015 12:13

Great idea and mod !

In my point of view, you need to add a cooldown between two PVP switch to avoid some status abuse ;) (the cooldown can be 30sec)
 

User avatar
Phiwari123
Member
 
Posts: 111
Joined: Sat Aug 02, 2014 07:50
Location: Germany
In-game: Phiwari123

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Phiwari123 » Mon Aug 31, 2015 12:30

Minetestforfun wrote:In my point of view, you need to add a cooldown between two PVP switch to avoid some status abuse ;) (the cooldown can be 30sec)


Good idea, will add that for the next version :D
Fantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
 

User avatar
Clouds
Member
 
Posts: 102
Joined: Sat Aug 01, 2015 01:58
In-game: Cloud

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Clouds » Tue Sep 01, 2015 01:22

Finally a pvp regulator... I believe a lot of server owners have been looking for something like this for quite some time now.
 

User avatar
Phiwari123
Member
 
Posts: 111
Joined: Sat Aug 02, 2014 07:50
Location: Germany
In-game: Phiwari123

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Phiwari123 » Wed Sep 02, 2015 17:50

Minetestforfun wrote:Great idea and mod !

In my point of view, you need to add a cooldown between two PVP switch to avoid some status abuse ;) (the cooldown can be 30sec)


Thanks for this idea! I will look into that and probably add this in the next version.

The current update contains just the shortening of the code suggested by Napiophelios.
Fantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
 

User avatar
Clouds
Member
 
Posts: 102
Joined: Sat Aug 01, 2015 01:58
In-game: Cloud

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Clouds » Thu Sep 03, 2015 23:55

It would be nice if you added support unified_inventory as almost no server uses inventory_plus anymore.
 

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

User avatar
benrob0329
Member
 
Posts: 1233
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by benrob0329 » Fri Sep 04, 2015 23:36

Please don't drop support for inventory_plus or ++ though because some of us still use it.

I like the fact that it doesn't override the default inventory, so the new shift click function worked out of the box.
 

User avatar
Clouds
Member
 
Posts: 102
Joined: Sat Aug 01, 2015 01:58
In-game: Cloud

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Clouds » Sat Sep 05, 2015 01:45

benrob0329 wrote:Please don't drop support for inventory_plus or ++ though because some of us still use it.

I like the fact that it doesn't override the default inventory, so the new shift click function worked out of the box.


There is no need to drop support just add additional support.
 

User avatar
Phiwari123
Member
 
Posts: 111
Joined: Sat Aug 02, 2014 07:50
Location: Germany
In-game: Phiwari123

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Phiwari123 » Sat Sep 05, 2015 08:23

The question is if it is better to make one version that supports both, or to make two different versions?
Fantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
 

User avatar
Napiophelios
Member
 
Posts: 917
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Napiophelios » Sat Sep 05, 2015 22:37

Phiwari123 wrote:The question is if it is better to make one version that supports both, or to make two different versions?


Well I dont use unified inventory (its very laggy for me) but seems like it would be best to just add support for it in the same mod. 3-D armor has support for both Inventory Plus and Unified Inventory, maybe get some ideas from that.
 

User avatar
Phiwari123
Member
 
Posts: 111
Joined: Sat Aug 02, 2014 07:50
Location: Germany
In-game: Phiwari123

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Phiwari123 » Sun Sep 06, 2015 07:21

Okay, that seems like a good solution then.
Fantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
 

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

User avatar
Phiwari123
Member
 
Posts: 111
Joined: Sat Aug 02, 2014 07:50
Location: Germany
In-game: Phiwari123

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Phiwari123 » Thu Sep 17, 2015 12:54

It might take some more days until i release the update that supports both, because I didn't have much time the last few days and probably will have time at the weekend. Also I will try to implement all (or many) of the other suggestions you made ;)
Fantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
 

Dorje
Member
 
Posts: 109
Joined: Sun Oct 04, 2015 21:19
Location: South Africa, Cape Town, Observatory, MINECRAFT!
In-game: gryphon + MajesticBird

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Dorje » Thu Oct 08, 2015 00:28

This may be a old post/topic but i had an idea for making a mod like this xD
Give me some EXTREME HARDCORE xD

i have to say this sad thing viewtopic.php?f=3&t=13458&p=195719#p195719
 

User avatar
Samson1
Member
 
Posts: 93
Joined: Wed Apr 01, 2015 19:41
IRC: Samson1
In-game: Samson1

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Samson1 » Tue Oct 27, 2015 13:17

Very good mod! I think it should have a command and an option to disable the button so that you could enable PvP for you or some other player like:
/give "playername" PvP


Thanks for the mod!
MT name: Samson1

MC name: MoJo4000
 

User avatar
Mg
Member
 
Posts: 86
Joined: Sun Mar 02, 2014 20:49
Location: Periodic Table
GitHub: LeMagnesium
IRC: ElectronLibre Mg
In-game: Mg

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Mg » Sat Apr 23, 2016 12:32

*bumps that thread innocently*

Sooo, I was asked a while ago (about thirty minutes ago) to add that mod into MinetestForFun's Skyblock Server, when I realized that it didn't have support for Unified Inventory (which we use). Consequently, I coded support for U_inv, and realized as I read the thread that a support for both was requested. Now, I'll be clear, as far as I've been able to see, Inventory+ is broken in my configuration (MT-0.4.13-dev and MTGame-0.4.13-dev), so I just copied the code which was used previously.

So that version should be able to detect and support either u_inv or inv+.

How to get it to work:
Step 1: Download
Step 2: Unzip into the mod directory
Step 3: Profit.
Attachments
pvpbutton.zip
PvPButton V1.3 with support of u_inv and inv+
(3.5 KiB) Downloaded 28 times
"[...] Manganese and Mercury, Molybdenum, Magnesium [...]"
Mods I shared : metatools, ignore, PvPButton with U_inv support
You can look for more in my GitHub repositories
Tox ID : D878DF75D369C10DC0D3A1A782636EA242AE64FD687EDBADCB679AFACA78910BCEAAECF825E0
Currently developper for MinetestForFun server .
 

User avatar
Palige
Member
 
Posts: 101
Joined: Sun Nov 23, 2014 14:39
GitHub: paly2
IRC: Upsilon
In-game: Upsilon

Re: [Mod] PvP-Button [1.1] [pvpbutton]

by Palige » Wed Apr 27, 2016 15:30

Thank you for this nice mod, I use it on my server ! (I modified it to make it compatible with unified_inventory, sorry @Mg, I hadn't seen your post... https://github.com/paly2/Mynetest-serve ... /pvpbutton)
Sorry for my english : I am french...

Some of my minetest stuff:
MoreMesecons
Throwing Redo
PvP-Plus
A few other things

I'm hosting the Eurythmia server
 


Return to WIP Mods



Who is online

Users browsing this forum: Astrobe and 4 guests