Page 1 of 1

[Mod] Duel [duel]

Posted: Tue Nov 01, 2016 23:10
by red-001
This mod adds a duel system to minetest. It's still very much a work in progress. Currently it only allows one duel at a time between two players. You can challenge a player to a duel using the /duel chat command. You can leave a duel using the /duel_abandon chat command.
Features
  • The mod saves the contents of the inventory and the position of the players before the duel starts and restores it at the end
  • Both players are granted the same items at the start of each duel. By default this is a steel sword.
  • The items granted to the players can be changed by setting the duel_items setting. It uses the same syntax as initial_stuff.
  • Bones aren't placed when a player dies in a duel
Planned Features
  • Add reward/punishment for losing or winning
  • Make it easier to set spawn positions for duels
  • Save player position to disk and auto-restore inventory and position after a server crash
  • Allow multiple arenas for duels, so that multiple duels can occur at the same time
  • Allow for team-based combat
  • Allow spectators?
  • Add formspecs?
[/list]
License
This mod is released under the MIT License
Download
Browse the Github repository
Download form Github

Re: [Mod] Duel [duel]

Posted: Wed Nov 02, 2016 00:11
by bigfoot
I love this mod! I think you should add a thing so that when a player loses, they should not see the "you died" screen, but should just be only spectators until they type /leave.

I think that you should have a HUD item saying the nearest alive player and your opponent's health. Another thing: As well as teleporting players to the duel arena, set their yaw and pitch.

May I help you develop this mod?

Re: [Mod] Duel [duel]

Posted: Wed Nov 02, 2016 00:21
by red-001
bigfoot547 wrote:I think you should add a thing so that when a player loses, they should not see the "you died" screen
I don't think it really possible to disable the death formspec.
bigfoot547 wrote: I think that you should have a HUD item saying the nearest alive player and your opponent's health.
Nice Idea, will add it if I figure out how to do it.
bigfoot547 wrote: May I help you develop this mod?
Sure, just make a pull request. But be aware that the mod is still in early development so large parts of the code may be rewritten.

Re: [Mod] Duel [duel]

Posted: Wed Nov 02, 2016 08:05
by red-001
Update: You can now leave a duel early using the /duel_abandon chat command

Re: [Mod] Duel [duel]

Posted: Wed Nov 02, 2016 08:07
by Desour
nice mod!
Spoiler
I've tidied up the BBcode of your first post:

Code: Select all

This mod adds a duel system to minetest. It's still very much a work in progress. Currently it only allows one duel at a time between two players. You can challenge a player to a duel using the [color=#0040FF]/duel [/color]chat command.
[b][size=150]Features[/size][/b]
[list]
[*] The mod saves the contents of the inventory and the position of the players before the duel starts and restores it at the end
[*] Both players are granted the same items at the start of each duel. By default this is a steel sword.
[*] The items granted to the players can be changed by setting the  [color=#0040FF]duel_items [/color] setting. It uses the same syntax as [color=#0040FF]initial_stuff[/color].
[*] Bones aren't placed when a player dies in a duel
 [/list]
[b][size=125]TODO list [/size][/b]
[list]
[*] Restore player data on shutdown and leave player
[*] Save player position to disk and auto-restore inventory and position after a server crash
[*] Add chat command for leaving a duel[/list]
[b][size=125]Planned Features[/size][/b]
[list]
[*] Add reward/punishment for losing or winning
[*] Make it easier to set spawn positions for duels
[*] Allow multiple arenas for duels, so that multiple duels can occur at the same time
[*] Allow for team-based combat
[*] Add formspecs?[/list]
[size=150]License[/size]
This mod is released under the [url=https://github.com/red-001/duel/blob/master/LICENSE]MIT License[/url] 
[size=150]Download[/size]
[url=https://github.com/red-001/duel]Browse the Github repository[/url]
[url=https://github.com/red-001/duel/archive/master.zip]Download form Github[/url]

Re: [Mod] Duel [duel]

Posted: Wed Nov 02, 2016 22:21
by red-001
Update: Leaving the game while in a duel will now cause the other player to win. Player inventories are now restored on shutdown.

Re: [Mod] Duel [duel]

Posted: Fri Mar 31, 2017 21:09
by Nabi
in my server this mod crash xd
is a very nice mod
can you fix it?

Re: [Mod] Duel [duel]

Posted: Fri Mar 31, 2017 22:00
by red-001
Should be fixed, could you try again with the latest version?

Re: [Mod] Duel [duel]

Posted: Mon Apr 03, 2017 15:42
by azekill_DIABLO
DS-minetest wrote: ive tidied up the BBcode of your first post:
I have tidied your post

Code: Select all

[size=120]I've tidied up the [url=https://forum.minetest.net/faq.php?mode=bbcode]BBcode[/url] of [url=https://forum.minetest.net/viewtopic.php?f=9&t=15821#p238529]your first post[/url][/size]
:)

Re: [Mod] Duel [duel]

Posted: Thu Apr 06, 2017 19:57
by Fixer
Nice for PVP on servers.

Re: [Mod] Duel [duel]

Posted: Tue Nov 06, 2018 15:32
by Samson1
Is the mod still being worked on? I really like it. ;)

Re: [Mod] Duel [duel]

Posted: Thu Nov 08, 2018 03:56
by dawgdoc
Samson1 wrote:Is the mod still being worked on? I really like it. ;)
The last commit to the github repository was in March 2017.