[Mod] Duel [duel]

Post Reply
red-001
Member
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

[Mod] Duel [duel]

by red-001 » Post

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
Last edited by red-001 on Wed Nov 02, 2016 22:22, edited 5 times in total.

User avatar
bigfoot
Member
Posts: 203
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot
Location: Somewhere between polar bears and penguins.

Re: [Mod] Duel [duel]

by bigfoot » Post

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?

red-001
Member
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [Mod] Duel [duel]

by red-001 » Post

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.

red-001
Member
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [Mod] Duel [duel]

by red-001 » Post

Update: You can now leave a duel early using the /duel_abandon chat command

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] Duel [duel]

by Desour » Post

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]
Last edited by Desour on Mon Apr 03, 2017 16:00, edited 1 time in total.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

red-001
Member
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [Mod] Duel [duel]

by red-001 » Post

Update: Leaving the game while in a duel will now cause the other player to win. Player inventories are now restored on shutdown.

User avatar
Nabi
Member
Posts: 10
Joined: Wed Feb 01, 2017 17:06
In-game: sam7777
Location: South America

Re: [Mod] Duel [duel]

by Nabi » Post

in my server this mod crash xd
is a very nice mod
can you fix it?

red-001
Member
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [Mod] Duel [duel]

by red-001 » Post

Should be fixed, could you try again with the latest version?

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Duel [duel]

by azekill_DIABLO » Post

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]
:)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: [Mod] Duel [duel]

by Fixer » Post

Nice for PVP on servers.

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

Re: [Mod] Duel [duel]

by Samson1 » Post

Is the mod still being worked on? I really like it. ;)

dawgdoc
Member
Posts: 260
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: [Mod] Duel [duel]

by dawgdoc » Post

Samson1 wrote:Is the mod still being worked on? I really like it. ;)
The last commit to the github repository was in March 2017.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests