# bounty

Fork of [csirolli/luanti_bounty_mod](https://codeberg.org/csirolli/luanti_bounty_mod) with stylized nametags.

Bounty mod for MTG. Originally written by **Bas808** in May of 2014, modified by CSirolli in May of 2018. My GitHub repo was lost, so I had to start over in December of 2024. Original concept and code can be found here: https://forum.minetest.net/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.

## 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.

## Rewards

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
