Skip to content

Commit

Permalink
Update settings, README and locale
Browse files Browse the repository at this point in the history
Settingtypes: change some settings, add barter chest setting

Expand the README and fix locale files
  • Loading branch information
Montandalar committed Aug 1, 2022
1 parent aae1e0a commit 457c1ea
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 35 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
currency
========
# Currency Mod for Minetest

Repo for Currency Mod
Adds a series of banknotes and universal basic income that will give them to
players each period if they have broken or placed nodes.

# Settings
Adds the exchange shop, a chest which can handle trades of up to six items from
both the buyer's side and the seller's side.

Adds the barter table, a table for allow players to trade in a safe fashion
instead of dropping items on the ground. The barter table has an expiry period
if a trade is not completed for a long time, after which it will try to return
the items to the players; the period is configurable.

Settings with default values:
```
# After how much idle-time barter table is reset (seconds)
barter.chest.expireafter 15 * 60
```
# Settings
See `settingtypes.txt`
14 changes: 7 additions & 7 deletions craftitems.lua
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
local S = minetest.get_translator("currency")

minetest.register_craftitem("currency:minegeld", {
description = S("@1 Note", "$1"),
description = S("$@1 Note", "1"),
inventory_image = "aussie_banknotes.png^[sheet:1x7:0,0",
stack_max = 65535,
groups = {minegeld = 1, minegeld_note = 1}
})

minetest.register_craftitem("currency:minegeld_2", {
description = S("@1 Note", "$2"),
description = S("$@1 Note", "2"),
inventory_image = "aussie_banknotes.png^[sheet:1x7:0,1",
stack_max = 65535,
groups = {minegeld = 1, minegeld_note = 1}
})

minetest.register_craftitem("currency:minegeld_5", {
description = S("@1 Note", "$5"),
description = S("$@1 Note", "5"),
inventory_image = "aussie_banknotes.png^[sheet:1x7:0,2",
stack_max = 65535,
groups = {minegeld = 1, minegeld_note = 1}
})

minetest.register_craftitem("currency:minegeld_10", {
description = S("@1 Note", "$10"),
description = S("$@1 Note", "10"),
inventory_image = "aussie_banknotes.png^[sheet:1x7:0,3",
stack_max = 65535,
groups = {minegeld = 1, minegeld_note = 1}
})

minetest.register_craftitem("currency:minegeld_20", {
description = S("@1 Note", "$20"),
description = S("$@1 Note", "20"),
inventory_image = "aussie_banknotes.png^[sheet:1x7:0,4",
stack_max = 65535,
groups = {minegeld = 1, minegeld_note = 1}
})

minetest.register_craftitem("currency:minegeld_50", {
description = S("@1 Note", "$50"),
description = S("$@1 Note", "50"),
inventory_image = "aussie_banknotes.png^[sheet:1x7:0,5",
stack_max = 65535,
groups = {minegeld = 1, minegeld_note = 1}
})

minetest.register_craftitem("currency:minegeld_100", {
description = S("@1 Note", "$100"),
description = S("$@1 Note", "100"),
inventory_image = "aussie_banknotes.png^[sheet:1x7:0,6",
stack_max = 65535,
groups = {minegeld = 1, minegeld_note = 1}
Expand Down
4 changes: 1 addition & 3 deletions locale/currency.de.tr
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ Exchange=Tauschen

### craftitems.lua ###

@1 Minegeld Note=@1-Minegeld-Banknote
@1 Minegeld cent coin=@1-Minegeldcent-Münze
Bundle of random Minegeld notes=Bündel mit beliebigen Minegeld-Banknoten
$@1 Note=@1$-Banknote

### safe.lua ###

Expand Down
4 changes: 1 addition & 3 deletions locale/currency.es.tr
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ Exchange=Trato

### craftitems.lua ###

@1 Minegeld Note=Billete de @1 Minegeld
@1 Minegeld cent coin= Moneda de @1 Minegeld
Bundle of random Minegeld notes=Monton de dinero
$@1 Note=Billete de @1 $

### safe.lua ###

Expand Down
4 changes: 1 addition & 3 deletions locale/currency.fr.tr
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ Exchange=Troquer

### craftitems.lua ###

@1 Minegeld Note=@1 MineGeld
@1 Minegeld cent coin=Pièce de @1 centimes de MineGeld
Bundle of random Minegeld notes=Liasse de Minegeld de diverses valeurs
$@1 Note=Billet de @1 $

### safe.lua ###

Expand Down
4 changes: 1 addition & 3 deletions locale/currency.it.tr
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ Exchange=Scambia

### craftitems.lua ###

@1 Minegeld Note=Banconota da @1 Minegeld
@1 Minegeld cent coin=Moneta da @1 centesimo/i Minegeld
Bundle of random Minegeld notes=Pacchetto di banconote Minegeld casuali
$@1 Note=Banconota da @1 $

### safe.lua ###

Expand Down
4 changes: 1 addition & 3 deletions locale/currency.ms.tr
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ Exchange=Tukar

### craftitems.lua ###

@1 Minegeld Note=Wang @1 MineGeld
@1 Minegeld cent coin=
Bundle of random Minegeld notes=Seberkas wang Minegeld rawak
$@1 Minegeld=Wang $@1

### safe.lua ###

Expand Down
2 changes: 1 addition & 1 deletion locale/currency.ru.tr
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Exchange=Обмен

### craftitems.lua ###

@1 Minegeld Note=Банкнота в @1 MineGeld
@1 Minegeld Note=Банкнота в $1
@1 Minegeld cent coin=
Bundle of random Minegeld notes=Пачка случайных банкнот Minegeld

Expand Down
9 changes: 6 additions & 3 deletions settingtypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
currency.income_enabled (Is currency income enabled?) bool true

# Is income enabled for creative players?
currency.creative_income_enabled (Is income enabled for creative players?) bool true
currency.creative_income_enabled (Is income enabled for creative players?) bool false

# Item that is given as income by the currency mod
currency.income_item (Currency income item) string currency:minegeld_10
currency.income_item (Currency income item) string currency:minegeld_1

# Number of items given as income
currency.income_count (Currency income item) int 1 1 65535

# Length of time (in seconds) between checking if a user should get income
currency.income_period (Currency income period) int 720
currency.income_period (Currency income period) int 1440

# After how much idle-time barter table is reset (seconds)
barter.chest.expire_after (Barter table reset period) int 900 10 10000

0 comments on commit 457c1ea

Please sign in to comment.