Go to file
luk3yx 51981a388a Fix broken link 2024-07-05 14:48:58 +12:00
.github/workflows Add luacheck, fix bugs, add unified_money support 2023-08-08 16:35:12 +12:00
.luacheckrc Add luacheck, fix bugs, add unified_money support 2023-08-08 16:35:12 +12:00
LICENSE.md Fork into money3 2019-05-23 16:47:11 +12:00
README.md Fix broken link 2024-07-05 14:48:58 +12:00
config.lua Fix settings code 2022-11-27 15:40:08 +13:00
convertval.lua Add luacheck, fix bugs, add unified_money support 2023-08-08 16:35:12 +12:00
core.lua Add money3.delete() 2023-08-08 22:11:13 +12:00
depends.txt Fork into money3 2019-05-23 16:47:11 +12:00
income.lua Add luacheck, fix bugs, add unified_money support 2023-08-08 16:35:12 +12:00
init.lua Add canonical_name function for unified_money 2023-08-14 20:40:47 +12:00
lockedsign.lua first commit 2014-02-14 22:46:44 -06:00
migration.lua Add luacheck, fix bugs, add unified_money support 2023-08-08 16:35:12 +12:00
mod.conf Check for um_plugin_playername 2023-08-13 19:49:21 +12:00
settingtypes.txt Add a configurable income amount. 2019-07-25 14:25:54 +12:00

README.md

money3

This is a fork of money2 that uses more modern APIs such as mod storage and is fully backwards compatible with money2 (you can upgrade from money2 nicely, however you can't downgrade again).

Before installing

By default, players can convert gold and silver ingots into money using /convert gold and /convert silver. To disable this, add money3.convert_items = nil to minetest.conf.

Players need the "money" privilege to be able to use /money and receive payments. You should consider adding money to the default_privs setting in minetest.conf.

Config settings

These can be set in config.lua or minetest.conf.

  • money3.initial_amount: The amount of money new players get. Default: 0.
  • money3.currency_name: The text appended to the currency when displaying it. Default: cr.
  • money3.enable_income: Pays players money (by default 10cr) every in-game day. Default: true if creative mode is disabled, otherwise false. If you are using the currency mod, it is probably a good idea to set currency.income_enabled to false.
  • money3.income_amount: Changes the amount of income players get paid. If income is not enabled, this does nothing.
  • money3.convert_items: A lua table (that can also be nil to disable) similar to the following (default) one:
{
    gold = { item = "default:gold_ingot", dig_block="default:stone_with_gold",
        desc='Gold', amount=75, minval=25 },
    silver = { item = "moreores:silver_ingot",
        dig_block="moreores:mineral_silver", desc='Silver', amount = 27,
        minval=7}
}