Start conversion only with explicit setting
This commit is contained in:
parent
f2cc55d47c
commit
bfbb32cc93
15
README.md
15
README.md
@ -12,15 +12,18 @@ and turn them into the new machines from `easyvend`. This is useful if
|
|||||||
you want to switch a world from `vendor` to `easyvend`.
|
you want to switch a world from `vendor` to `easyvend`.
|
||||||
|
|
||||||
**WARNING**: This feature is experimental! It is advised to backup your world
|
**WARNING**: This feature is experimental! It is advised to backup your world
|
||||||
before doing this. This feature is also incomplete;
|
before doing this. This feature is also incomplete; items are currently
|
||||||
|
**not** transformed in the process.
|
||||||
|
|
||||||
### Conversion process
|
### Conversion process
|
||||||
To transform all nodes from the `vendor` mod, enable the `easyvend` mod
|
To transform all nodes from the `vendor` mod, disable the `vendor` mod (if
|
||||||
and disable the `vendor` mod, then load the world. Now all nodes from
|
it is not already disabled), enable the setting `easyvend_convert_vendor`
|
||||||
the vendor mod will be replaced by the new machines from `easyvend`.
|
and start or restart the game.
|
||||||
|
|
||||||
If you run a server, inform players of the change after loading the world with
|
Now all nodes from the `vendor` mod will be replaced with `easyvend` ones.
|
||||||
the new nodes.
|
|
||||||
|
If you run a server, you should inform players of this change because a few
|
||||||
|
machines might need a reconfiguration.
|
||||||
|
|
||||||
### Details
|
### Details
|
||||||
The machine configuration will be kept in the process and the machines will
|
The machine configuration will be kept in the process and the machines will
|
||||||
|
@ -1030,8 +1030,8 @@ minetest.register_abm({
|
|||||||
-- Legacy support for vendor mod:
|
-- Legacy support for vendor mod:
|
||||||
-- Transform the world and items to use the easyvend nodes/items
|
-- Transform the world and items to use the easyvend nodes/items
|
||||||
|
|
||||||
-- For safety reasons, vendor mod must be disabled before legacy mode goes on
|
-- For safety reasons, only do this when player requested so
|
||||||
if minetest.get_modpath("vendor") == nil then
|
if minetest.setting_getbool("easyvend_convert_vendor") == true then
|
||||||
-- Replace vendor nodes
|
-- Replace vendor nodes
|
||||||
minetest.register_lbm({
|
minetest.register_lbm({
|
||||||
name = "easyvend:replace_vendor",
|
name = "easyvend:replace_vendor",
|
||||||
|
@ -3,3 +3,16 @@
|
|||||||
# depositing machines give this item in return for items.
|
# depositing machines give this item in return for items.
|
||||||
# Default: Gold Ingot.
|
# Default: Gold Ingot.
|
||||||
easyvend_currency (Currency item for vending and depositing machines) string default:gold_ingot
|
easyvend_currency (Currency item for vending and depositing machines) string default:gold_ingot
|
||||||
|
|
||||||
|
[Experimental settings]
|
||||||
|
# This setting is EXPERIMENTAL!
|
||||||
|
# Enable this option if you want to switch a world from using Bad_Command_'s
|
||||||
|
# Vending Machines [vendor] mod to using the Easy Vending Machines [easyvend]
|
||||||
|
# mod.
|
||||||
|
# When you load the world the next time, this will replace all vending and
|
||||||
|
# depositing machines from [vendor] with the [easyvend] machines while keeping
|
||||||
|
# their configuration.
|
||||||
|
# Since this option is experimental, it is recommended that you backup your
|
||||||
|
# world before converting it.
|
||||||
|
easyvend_convert_vendor (Convert machines from Vending Machines mod) bool false
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user