Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bitchange
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
bitchange
Commits
73161dbd
Commit
73161dbd
authored
11 years ago
by
SmallJoker
Browse files
Options
Downloads
Patches
Plain Diff
Cleanups
parent
a1891dbe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+3
-1
3 additions, 1 deletion
README.md
config.default.txt
+7
-7
7 additions, 7 deletions
config.default.txt
init.lua
+14
-5
14 additions, 5 deletions
init.lua
moreores.lua
+2
-2
2 additions, 2 deletions
moreores.lua
with
26 additions
and
15 deletions
README.md
+
3
−
1
View file @
73161dbd
...
...
@@ -2,7 +2,9 @@ Bitchange
=========
A currency mod for Minetest.
When you use this mod the first time, then get sure to copy the "config.default.txt" to "config.txt".
Read more at the forums topic and 'HELP_ME.txt' for more information.
Forum link: https://forum.minetest.net/viewtopic.php?id=7821
...
...
This diff is collapsed.
Click to expand it.
config.default.txt
+
7
−
7
View file @
73161dbd
...
...
@@ -7,17 +7,17 @@ bitchange_enable_exchangeshop = true
bitchange_enable_moneychanger = true
bitchange_enable_warehouse = false
-- Set this variable to
the modnam
e
o
f
the other
currency
mod.
--
Let it empty if no other currency is installed.
-- Set this variable to
fals
e
i
f
you have a supported
currency
enabled
--
and if you want to disable the exchanging/converting point - the bank
-- Supported: money (by kotolegokot), money2 (by Bad Command), currency (by Dan Duncombe)
bitchange_
bank_type
=
""
bitchange_
enable_bank
=
true
-- Tin converting/generation
bitchange_use_moreores_tin = false -- Activate
using
bitchange_need_generate_tin = false -- Generate
only
if needed
bitchange_use_moreores_tin = false -- Activate
support
bitchange_need_generate_tin = false -- Generate if needed
-- Zinc converting/generation
bitchange_use_technic_zinc = false -- Activate
using
bitchange_need_generate_zinc = false -- Generate
only
if needed
bitchange_use_technic_zinc = false -- Activate
support
bitchange_need_generate_zinc = false -- Generate if needed
-- Pipeworks support
bitchange_exchangeshop_pipeworks = false
...
...
This diff is collapsed.
Click to expand it.
init.lua
+
14
−
5
View file @
73161dbd
...
...
@@ -15,11 +15,20 @@ end
if
(
bitchange_enable_warehouse
)
then
dofile
(
mod_path
..
"/warehouse.lua"
)
end
if
(
bitchange_bank_type
~=
""
)
then
if
(
minetest
.
get_modpath
(
bitchange_bank_type
)
~=
nil
)
then
dofile
(
mod_path
..
"/bank_"
..
bitchange_bank_type
..
".lua"
)
else
print
(
"[BitChange] Bank: Type or mod not found or enabled: "
..
bitchange_bank_type
)
if
(
bitchange_enable_bank
)
then
local
loaded_bank
=
""
if
(
minetest
.
get_modpath
(
"money"
)
~=
nil
)
then
loaded_bank
=
"money"
dofile
(
mod_path
..
"/bank_"
..
loaded_bank
..
".lua"
)
elseif
(
minetest
.
get_modpath
(
"money2"
)
~=
nil
)
then
loaded_bank
=
"money2"
dofile
(
mod_path
..
"/bank_"
..
loaded_bank
..
".lua"
)
elseif
(
minetest
.
get_modpath
(
"currency"
)
~=
nil
)
then
loaded_bank
=
"currency"
dofile
(
mod_path
..
"/bank_"
..
loaded_bank
..
".lua"
)
end
if
(
loaded_bank
~=
""
)
then
print
(
"[BitChange] Bank loaded: "
..
loaded_bank
)
end
end
...
...
This diff is collapsed.
Click to expand it.
moreores.lua
+
2
−
2
View file @
73161dbd
...
...
@@ -2,7 +2,7 @@
--License: WTFPL
if
(
bitchange_use_moreores_tin
)
then
if
(
bitchange_need_generate_tin
)
then
if
(
bitchange_need_generate_tin
and
not
minetest
.
get_modpath
(
"moreores"
)
)
then
minetest
.
register_node
(
":moreores:mineral_tin"
,
{
description
=
"Tin Ore"
,
tiles
=
{
"default_stone.png^moreores_mineral_tin.png"
},
...
...
@@ -63,7 +63,7 @@ if (bitchange_use_moreores_tin) then
end
if
(
bitchange_use_technic_zinc
)
then
if
(
bitchange_need_generate_zinc
)
then
if
(
bitchange_need_generate_zinc
and
not
minetest
.
get_modpath
(
"technic_worldgen"
)
)
then
minetest
.
register_node
(
":technic:mineral_zinc"
,
{
description
=
"Zinc Ore"
,
tile_images
=
{
"default_stone.png^technic_mineral_zinc.png"
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment