[mod] Bounty [bounty]

User avatar
Posts: 129
Joined: Mon Jan 15, 2018 21:46
Location: Florida, USA
GitHub: ChristianSirolli
IRC: CSirolli
In-game: CSirolli

[mod] Bounty [bounty]

by csirolli » Sat May 12, 2018 03:54

bounty 0.1
Bounty mod for Minetest. Originally written by Bas808 in May of 2014, modified by CSirolli in May of 2018. Original concept and code can be found here: viewtopic.php?f=9&t=9355

This mod can be used for placing bounties on players. Bounties are placed or removed in increments of 20 points. If a player with a bounty is killed, that player drops a reward, which the killer can collect.

Github: https://github.com/ChristianSirolli/bounty

Chat Commands
Using the chat command `/bounty <player_name>` adds a 20 point bounty to that player.

The chat command `/forgive <player_name>` removes 20 points from the player's bounty.

The third chat command is `/bounties` and is used for displaying all bounties on players.

Whenever a player with a bounty is killed, they drop different items depending on how large the bounty is. Here is a table showing this relationship:

Points = Reward
20 = "default:wood 50"
40 = "default:cobble 50"
60 = "default:stone 40"
100 = "default:steel_ingot 2"
200 = "default:steel_ingot 5"

These values and items can be changed in the `init.lua` file.

To Do
* Require users with special privs to use chat commands
* Lower bounty on one player if they kill/capture another player with bounty
* Allow for capturing

Code: LGPLv2.1+

Mod dependencies: default

* version 0.1 - https://github.com/ChristianSirolli/bou ... master.zip
Jesus is the only Way to heaven, the only saving Truth, and the only Life that is worth living.

Return to WIP Mods

Who is online

Users browsing this forum: Army_bloodcore, Hume2 and 8 guests