aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crafting.lua30
-rw-r--r--craftitems.lua56
-rw-r--r--shop.lua9
-rw-r--r--textures/minegeld.pngbin3563 -> 1514 bytes
-rw-r--r--textures/minegeld_10.pngbin3509 -> 1526 bytes
-rw-r--r--textures/minegeld_1000.pngbin0 -> 1838 bytes
-rw-r--r--textures/minegeld_1000_10_4.pngbin0 -> 2034 bytes
-rw-r--r--textures/minegeld_1000_animal_extinction.pngbin0 -> 2064 bytes
-rw-r--r--textures/minegeld_1000_antishroom.pngbin0 -> 2044 bytes
-rw-r--r--textures/minegeld_1000_bamboobayvillage.pngbin0 -> 11392 bytes
-rw-r--r--textures/minegeld_1000_chiculata.pngbin0 -> 1975 bytes
-rw-r--r--textures/minegeld_1000_chile.pngbin0 -> 9997 bytes
-rw-r--r--textures/minegeld_1000_corona.pngbin0 -> 1962 bytes
-rw-r--r--textures/minegeld_1000_crane.pngbin0 -> 9719 bytes
-rw-r--r--textures/minegeld_1000_diamond_mine.pngbin0 -> 11665 bytes
-rw-r--r--textures/minegeld_1000_donation_box.pngbin0 -> 1621 bytes
-rw-r--r--textures/minegeld_1000_dummy_texture.pngbin0 -> 1926 bytes
-rw-r--r--textures/minegeld_1000_e231.pngbin0 -> 1755 bytes
-rw-r--r--textures/minegeld_1000_gabriel.pngbin0 -> 1752 bytes
-rw-r--r--textures/minegeld_1000_green_beast.pngbin0 -> 2166 bytes
-rw-r--r--textures/minegeld_1000_gtsb.pngbin0 -> 1923 bytes
-rw-r--r--textures/minegeld_1000_hrs.pngbin0 -> 2138 bytes
-rw-r--r--textures/minegeld_1000_iso_map.pngbin0 -> 2050 bytes
-rw-r--r--textures/minegeld_1000_lazamonument.pngbin0 -> 9770 bytes
-rw-r--r--textures/minegeld_1000_marinated_tomatoes.pngbin0 -> 2444 bytes
-rw-r--r--textures/minegeld_1000_meat.pngbin0 -> 1852 bytes
-rw-r--r--textures/minegeld_1000_melinka.pngbin0 -> 10071 bytes
-rw-r--r--textures/minegeld_1000_mese_miracle.pngbin0 -> 2057 bytes
-rw-r--r--textures/minegeld_1000_nadine.pngbin0 -> 1828 bytes
-rw-r--r--textures/minegeld_1000_nadinetopia.pngbin0 -> 2009 bytes
-rw-r--r--textures/minegeld_1000_och_noe.pngbin0 -> 1852 bytes
-rw-r--r--textures/minegeld_1000_origin.pngbin0 -> 9932 bytes
-rw-r--r--textures/minegeld_1000_patatas_importancia.pngbin0 -> 2059 bytes
-rw-r--r--textures/minegeld_1000_pathv7.pngbin0 -> 2098 bytes
-rw-r--r--textures/minegeld_1000_pickled_eggs2.pngbin0 -> 10417 bytes
-rw-r--r--textures/minegeld_1000_pitchfork_torch_all.pngbin0 -> 2991 bytes
-rw-r--r--textures/minegeld_1000_raja.pngbin0 -> 9452 bytes
-rw-r--r--textures/minegeld_1000_respects.pngbin0 -> 10521 bytes
-rw-r--r--textures/minegeld_1000_smacker.pngbin0 -> 2011 bytes
-rw-r--r--textures/minegeld_1000_spnmain.pngbin0 -> 1896 bytes
-rw-r--r--textures/minegeld_1000_trisiston.pngbin0 -> 1978 bytes
-rw-r--r--textures/minegeld_1000_unknown_item.pngbin0 -> 1897 bytes
-rw-r--r--textures/minegeld_1000_wallmapu.pngbin0 -> 10420 bytes
-rw-r--r--textures/minegeld_1000_wiki.pngbin0 -> 1757 bytes
-rw-r--r--textures/minegeld_1000_wirecard.pngbin0 -> 16597 bytes
-rw-r--r--textures/minegeld_1000_xnihilo.pngbin0 -> 1953 bytes
-rw-r--r--textures/minegeld_5.pngbin3365 -> 1503 bytes
-rw-r--r--textures/minegeld_bundle.pngbin5092 -> 2739 bytes
48 files changed, 58 insertions, 37 deletions
diff --git a/crafting.lua b/crafting.lua
index ab1374c..0aeb4a2 100644
--- a/crafting.lua
+++ b/crafting.lua
@@ -43,41 +43,21 @@ minetest.register_craft({
minetest.register_craft({
type = "shapeless",
- output = "currency:minegeld 5",
- recipe = {"currency:minegeld_5"},
+ output = "currency:minegeld 9",
+ recipe = {"currency:minegeld_bundle"},
})
minetest.register_craft({
type = "shapeless",
- output = "currency:minegeld_10 5",
- recipe = {"currency:minegeld_50"},
-})
-minetest.register_craft({
- type = "shapeless",
- output = "currency:minegeld_50",
- recipe = {"currency:minegeld_10", "currency:minegeld_10", "currency:minegeld_10", "currency:minegeld_10", "currency:minegeld_10"},
-})
+ output = "currency:minegeld 5",
+ recipe = {"currency:minegeld_5"},
-minetest.register_craft({
- type = "shapeless",
- output = "currency:minegeld_bundle",
- recipe = {
- "group:minegeld",
- "group:minegeld",
- "group:minegeld",
- "group:minegeld",
- "group:minegeld",
- "group:minegeld",
- "group:minegeld",
- "group:minegeld",
- "group:minegeld"
- },
})
+
minetest.register_craft({
type = "fuel",
recipe = "currency:minegeld_bundle",
burntime = 1,
})
-
diff --git a/craftitems.lua b/craftitems.lua
index 521195f..d1d3bb8 100644
--- a/craftitems.lua
+++ b/craftitems.lua
@@ -13,22 +13,62 @@ minetest.register_craftitem("currency:minegeld_5", {
description = S("5 MineGeld Note"),
inventory_image = "minegeld_5.png",
stack_max = 30000,
- groups = {minegeld = 1}
+ groups = {minegeld = 5}
})
minetest.register_craftitem("currency:minegeld_10", {
description = S("10 MineGeld Note"),
inventory_image = "minegeld_10.png",
stack_max = 30000,
- groups = {minegeld = 1}
+ groups = {minegeld = 10}
})
-minetest.register_craftitem("currency:minegeld_50", {
- description = S("50 MineGeld Note"),
- inventory_image = "minegeld_50.png",
- stack_max = 30000,
- groups = {minegeld = 1}
-})
+
+local function register_comm_currency(texture, description)
+ minetest.register_craftitem("currency:"..texture, {
+ description = description,
+ inventory_image = texture..".png",
+ stack_max = 20,
+ groups = {minegeld = 1000}
+ })
+end
+
+register_comm_currency("minegeld_1000_gabriel", "1000 MineGeld Note, Featuring Gabriel")
+register_comm_currency("minegeld_1000_nadine", "1000 MineGeld Note, Featuring Nadine")
+register_comm_currency("minegeld_1000_smacker", "1000 MineGeld Note, Featuring Smacker")
+register_comm_currency("minegeld_1000_och_noe", "1000 MineGeld Note, Featuring Och Nö")
+register_comm_currency("minegeld_1000_melinka", "1000 MineGeld Note, Featuring Melinka Town")
+register_comm_currency("minegeld_1000_corona", "1000 MineGeld Note, Featuring Coronavirus")
+register_comm_currency("minegeld_1000_mese_miracle", "1000 MineGeld Note, Featuring Mese Fairy Miracle")
+register_comm_currency("minegeld_1000_e231", "1000 MineGeld Note, Featuring E231 train")
+register_comm_currency("minegeld_1000_origin", "1000 MineGeld Note, Featuring Origin")
+register_comm_currency("minegeld_1000_raja", "1000 MineGeld Note, Featuring Raja")
+register_comm_currency("minegeld_1000_lazamonument", "1000 MineGeld Note, Featuring Laza's monument")
+register_comm_currency("minegeld_1000_nadinetopia", "1000 MineGeld Note, Featuring Nadinetopia")
+register_comm_currency("minegeld_1000_trisiston", "1000 MineGeld Note, Featuring Trisiston Town Hall")
+register_comm_currency("minegeld_1000_bamboobayvillage", "1000 MineGeld Note, Featuring Bamboo Bay village")
+minetest.register_alias("currency:minegeld_1000_BambooBayVillage", "currency:minegeld_1000_bamboobayvillage")
+register_comm_currency("minegeld_1000_patatas_importancia", "1000 MineGeld Note, Featuring Patatas a la Importancia")
+register_comm_currency("minegeld_1000_10_4", "1000 MineGeld Note, Featuring 10-4 bugs")
+register_comm_currency("minegeld_1000_animal_extinction", "1000 MineGeld Note, Commemorating animal extinction")
+register_comm_currency("minegeld_1000_chiculata", "1000 MineGeld Note, Commemorating Thunder22's transsubstatiation into Chiculata")
+register_comm_currency("minegeld_1000_chile", "1000 MineGeld Note, Featuring the flag of Chile")
+register_comm_currency("minegeld_1000_crane", "1000 MineGeld Note, Featuring a crane")
+register_comm_currency("minegeld_1000_green_beast", "1000 MineGeld Note, Featuring MkII chainsaw")
+register_comm_currency("minegeld_1000_diamond_mine", "1000 Minegeld Note, Featuring 'Mine Diamonds'")
+register_comm_currency("minegeld_1000_gtsb", "1000 Minegeld Note, Commemorating the Great Train Service Breakdown")
+register_comm_currency("minegeld_1000_hrs", "1000 Minegeld Note, Featuring Heretic Russian Salad")
+register_comm_currency("minegeld_1000_iso_map", "1000 Minegeld Note, Featuring the isometric map render")
+register_comm_currency("minegeld_1000_marinated_tomatoes", "1000 Minegeld Note, Featuring marinated tomatoes")
+register_comm_currency("minegeld_1000_meat", "1000 Minegeld Note, Commemorating the Chronic Meat Shortage")
+register_comm_currency("minegeld_1000_pathv7", "1000 Minegeld Note, Commemorating the pathv7 path generator")
+register_comm_currency("minegeld_1000_pickled_eggs2", "1000 Minegeld Note, Featuring Pickled Eggs")
+register_comm_currency("minegeld_1000_respects", "1000 Minegeld Note, Instructing to press F to pay respects")
+register_comm_currency("minegeld_1000_spnmain", "1000 Minegeld Note, Featuring Spawn Main Station")
+register_comm_currency("minegeld_1000_unknown_item", "1000 Minegeld Note, Featuring an Unknown Item")
+register_comm_currency("minegeld_1000_wiki", "1000 Minegeld note, Commemorating the wiki")
+register_comm_currency("minegeld_1000_wirecard", "1000 Minegeld note, Commemorating the Wirecard Scandal")
+register_comm_currency("minegeld_1000_xnihilo", "1000 Minegeld note, Commemorating X Nihilo")
minetest.register_craftitem("currency:minegeld_bundle", {
description = S("Bundle of random Minegeld notes"),
diff --git a/shop.lua b/shop.lua
index 301a08c..2cbb94f 100644
--- a/shop.lua
+++ b/shop.lua
@@ -195,13 +195,14 @@ minetest.register_on_player_receive_fields(function(sender, formname, fields)
end
end
if can_exchange then
+ local it
for i, item in pairs(wants) do
- pinv:remove_item("customer_gives",item)
- minv:add_item("customers_gave",item)
+ it = pinv:remove_item("customer_gives",item)
+ minv:add_item("customers_gave",it)
end
for i, item in pairs(gives) do
- minv:remove_item("stock",item)
- pinv:add_item("customer_gets",item)
+ it = minv:remove_item("stock",item)
+ pinv:add_item("customer_gets",it)
end
minetest.chat_send_player(name,S("Exchanged!"))
else
diff --git a/textures/minegeld.png b/textures/minegeld.png
index 79e36ff..b727d39 100644
--- a/textures/minegeld.png
+++ b/textures/minegeld.png
Binary files differ
diff --git a/textures/minegeld_10.png b/textures/minegeld_10.png
index acdb05e..038f7a2 100644
--- a/textures/minegeld_10.png
+++ b/textures/minegeld_10.png
Binary files differ
diff --git a/textures/minegeld_1000.png b/textures/minegeld_1000.png
new file mode 100644
index 0000000..db7143e
--- /dev/null
+++ b/textures/minegeld_1000.png
Binary files differ
diff --git a/textures/minegeld_1000_10_4.png b/textures/minegeld_1000_10_4.png
new file mode 100644
index 0000000..7959bd0
--- /dev/null
+++ b/textures/minegeld_1000_10_4.png
Binary files differ
diff --git a/textures/minegeld_1000_animal_extinction.png b/textures/minegeld_1000_animal_extinction.png
new file mode 100644
index 0000000..b3a34a7
--- /dev/null
+++ b/textures/minegeld_1000_animal_extinction.png
Binary files differ
diff --git a/textures/minegeld_1000_antishroom.png b/textures/minegeld_1000_antishroom.png
new file mode 100644
index 0000000..31ec8b4
--- /dev/null
+++ b/textures/minegeld_1000_antishroom.png
Binary files differ
diff --git a/textures/minegeld_1000_bamboobayvillage.png b/textures/minegeld_1000_bamboobayvillage.png
new file mode 100644
index 0000000..86da5b5
--- /dev/null
+++ b/textures/minegeld_1000_bamboobayvillage.png
Binary files differ
diff --git a/textures/minegeld_1000_chiculata.png b/textures/minegeld_1000_chiculata.png
new file mode 100644
index 0000000..3862394
--- /dev/null
+++ b/textures/minegeld_1000_chiculata.png
Binary files differ
diff --git a/textures/minegeld_1000_chile.png b/textures/minegeld_1000_chile.png
new file mode 100644
index 0000000..9f7c90b
--- /dev/null
+++ b/textures/minegeld_1000_chile.png
Binary files differ
diff --git a/textures/minegeld_1000_corona.png b/textures/minegeld_1000_corona.png
new file mode 100644
index 0000000..a2ec280
--- /dev/null
+++ b/textures/minegeld_1000_corona.png
Binary files differ
diff --git a/textures/minegeld_1000_crane.png b/textures/minegeld_1000_crane.png
new file mode 100644
index 0000000..6193bea
--- /dev/null
+++ b/textures/minegeld_1000_crane.png
Binary files differ
diff --git a/textures/minegeld_1000_diamond_mine.png b/textures/minegeld_1000_diamond_mine.png
new file mode 100644
index 0000000..bdf33e7
--- /dev/null
+++ b/textures/minegeld_1000_diamond_mine.png
Binary files differ
diff --git a/textures/minegeld_1000_donation_box.png b/textures/minegeld_1000_donation_box.png
new file mode 100644
index 0000000..1199730
--- /dev/null
+++ b/textures/minegeld_1000_donation_box.png
Binary files differ
diff --git a/textures/minegeld_1000_dummy_texture.png b/textures/minegeld_1000_dummy_texture.png
new file mode 100644
index 0000000..4a6314a
--- /dev/null
+++ b/textures/minegeld_1000_dummy_texture.png
Binary files differ
diff --git a/textures/minegeld_1000_e231.png b/textures/minegeld_1000_e231.png
new file mode 100644
index 0000000..12bea68
--- /dev/null
+++ b/textures/minegeld_1000_e231.png
Binary files differ
diff --git a/textures/minegeld_1000_gabriel.png b/textures/minegeld_1000_gabriel.png
new file mode 100644
index 0000000..9cc640d
--- /dev/null
+++ b/textures/minegeld_1000_gabriel.png
Binary files differ
diff --git a/textures/minegeld_1000_green_beast.png b/textures/minegeld_1000_green_beast.png
new file mode 100644
index 0000000..9c70ac5
--- /dev/null
+++ b/textures/minegeld_1000_green_beast.png
Binary files differ
diff --git a/textures/minegeld_1000_gtsb.png b/textures/minegeld_1000_gtsb.png
new file mode 100644
index 0000000..af17849
--- /dev/null
+++ b/textures/minegeld_1000_gtsb.png
Binary files differ
diff --git a/textures/minegeld_1000_hrs.png b/textures/minegeld_1000_hrs.png
new file mode 100644
index 0000000..1028e6a
--- /dev/null
+++ b/textures/minegeld_1000_hrs.png
Binary files differ
diff --git a/textures/minegeld_1000_iso_map.png b/textures/minegeld_1000_iso_map.png
new file mode 100644
index 0000000..064d429
--- /dev/null
+++ b/textures/minegeld_1000_iso_map.png
Binary files differ
diff --git a/textures/minegeld_1000_lazamonument.png b/textures/minegeld_1000_lazamonument.png
new file mode 100644
index 0000000..9f15a72
--- /dev/null
+++ b/textures/minegeld_1000_lazamonument.png
Binary files differ
diff --git a/textures/minegeld_1000_marinated_tomatoes.png b/textures/minegeld_1000_marinated_tomatoes.png
new file mode 100644
index 0000000..b991b45
--- /dev/null
+++ b/textures/minegeld_1000_marinated_tomatoes.png
Binary files differ
diff --git a/textures/minegeld_1000_meat.png b/textures/minegeld_1000_meat.png
new file mode 100644
index 0000000..c6f31df
--- /dev/null
+++ b/textures/minegeld_1000_meat.png
Binary files differ
diff --git a/textures/minegeld_1000_melinka.png b/textures/minegeld_1000_melinka.png
new file mode 100644
index 0000000..3ca58e9
--- /dev/null
+++ b/textures/minegeld_1000_melinka.png
Binary files differ
diff --git a/textures/minegeld_1000_mese_miracle.png b/textures/minegeld_1000_mese_miracle.png
new file mode 100644
index 0000000..ab154fe
--- /dev/null
+++ b/textures/minegeld_1000_mese_miracle.png
Binary files differ
diff --git a/textures/minegeld_1000_nadine.png b/textures/minegeld_1000_nadine.png
new file mode 100644
index 0000000..8ef807b
--- /dev/null
+++ b/textures/minegeld_1000_nadine.png
Binary files differ
diff --git a/textures/minegeld_1000_nadinetopia.png b/textures/minegeld_1000_nadinetopia.png
new file mode 100644
index 0000000..19380d3
--- /dev/null
+++ b/textures/minegeld_1000_nadinetopia.png
Binary files differ
diff --git a/textures/minegeld_1000_och_noe.png b/textures/minegeld_1000_och_noe.png
new file mode 100644
index 0000000..5140819
--- /dev/null
+++ b/textures/minegeld_1000_och_noe.png
Binary files differ
diff --git a/textures/minegeld_1000_origin.png b/textures/minegeld_1000_origin.png
new file mode 100644
index 0000000..fc2e2e8
--- /dev/null
+++ b/textures/minegeld_1000_origin.png
Binary files differ
diff --git a/textures/minegeld_1000_patatas_importancia.png b/textures/minegeld_1000_patatas_importancia.png
new file mode 100644
index 0000000..4befe81
--- /dev/null
+++ b/textures/minegeld_1000_patatas_importancia.png
Binary files differ
diff --git a/textures/minegeld_1000_pathv7.png b/textures/minegeld_1000_pathv7.png
new file mode 100644
index 0000000..9a1b813
--- /dev/null
+++ b/textures/minegeld_1000_pathv7.png
Binary files differ
diff --git a/textures/minegeld_1000_pickled_eggs2.png b/textures/minegeld_1000_pickled_eggs2.png
new file mode 100644
index 0000000..1f22c1e
--- /dev/null
+++ b/textures/minegeld_1000_pickled_eggs2.png
Binary files differ
diff --git a/textures/minegeld_1000_pitchfork_torch_all.png b/textures/minegeld_1000_pitchfork_torch_all.png
new file mode 100644
index 0000000..e450d51
--- /dev/null
+++ b/textures/minegeld_1000_pitchfork_torch_all.png
Binary files differ
diff --git a/textures/minegeld_1000_raja.png b/textures/minegeld_1000_raja.png
new file mode 100644
index 0000000..db3cc2b
--- /dev/null
+++ b/textures/minegeld_1000_raja.png
Binary files differ
diff --git a/textures/minegeld_1000_respects.png b/textures/minegeld_1000_respects.png
new file mode 100644
index 0000000..31ed3ff
--- /dev/null
+++ b/textures/minegeld_1000_respects.png
Binary files differ
diff --git a/textures/minegeld_1000_smacker.png b/textures/minegeld_1000_smacker.png
new file mode 100644
index 0000000..5fc91d3
--- /dev/null
+++ b/textures/minegeld_1000_smacker.png
Binary files differ
diff --git a/textures/minegeld_1000_spnmain.png b/textures/minegeld_1000_spnmain.png
new file mode 100644
index 0000000..43ec187
--- /dev/null
+++ b/textures/minegeld_1000_spnmain.png
Binary files differ
diff --git a/textures/minegeld_1000_trisiston.png b/textures/minegeld_1000_trisiston.png
new file mode 100644
index 0000000..c129072
--- /dev/null
+++ b/textures/minegeld_1000_trisiston.png
Binary files differ
diff --git a/textures/minegeld_1000_unknown_item.png b/textures/minegeld_1000_unknown_item.png
new file mode 100644
index 0000000..0813ccb
--- /dev/null
+++ b/textures/minegeld_1000_unknown_item.png
Binary files differ
diff --git a/textures/minegeld_1000_wallmapu.png b/textures/minegeld_1000_wallmapu.png
new file mode 100644
index 0000000..2bf53c1
--- /dev/null
+++ b/textures/minegeld_1000_wallmapu.png
Binary files differ
diff --git a/textures/minegeld_1000_wiki.png b/textures/minegeld_1000_wiki.png
new file mode 100644
index 0000000..3286738
--- /dev/null
+++ b/textures/minegeld_1000_wiki.png
Binary files differ
diff --git a/textures/minegeld_1000_wirecard.png b/textures/minegeld_1000_wirecard.png
new file mode 100644
index 0000000..a6eeecd
--- /dev/null
+++ b/textures/minegeld_1000_wirecard.png
Binary files differ
diff --git a/textures/minegeld_1000_xnihilo.png b/textures/minegeld_1000_xnihilo.png
new file mode 100644
index 0000000..e11d76c
--- /dev/null
+++ b/textures/minegeld_1000_xnihilo.png
Binary files differ
diff --git a/textures/minegeld_5.png b/textures/minegeld_5.png
index 5c66ac6..659f02d 100644
--- a/textures/minegeld_5.png
+++ b/textures/minegeld_5.png
Binary files differ
diff --git a/textures/minegeld_bundle.png b/textures/minegeld_bundle.png
index c6b339d..3fdc659 100644
--- a/textures/minegeld_bundle.png
+++ b/textures/minegeld_bundle.png
Binary files differ