diff --git a/mods/PLAYER/mcl_starting_inventory/init.lua b/mods/PLAYER/mcl_starting_inventory/init.lua index fa823810d..dbb469cbd 100644 --- a/mods/PLAYER/mcl_starting_inventory/init.lua +++ b/mods/PLAYER/mcl_starting_inventory/init.lua @@ -3,9 +3,12 @@ --- --- Copyright notice created for the license to be valid. (MIT 3) -local stuff_string = minetest.settings:get("starting_inv_contents") or - "mcl_tools:pick_iron,mcl_tools:axe_iron,mcl_tools:shovel_iron," .. - "mcl_torches:torch 32,mcl_core:cobble 64" +local give_inventory = minetest.settings:get("starting_inv_contents", false) + +local stuff_string +if give_inventory then + stuff_string = "mcl_tools:pick_iron,mcl_tools:axe_iron,mcl_tools:shovel_iron,mcl_torches:torch 32,mcl_core:cobble 32" +end mcl_starting_inventory = { items = {} diff --git a/mods/PLAYER/mcl_starting_inventory/mod.conf b/mods/PLAYER/mcl_starting_inventory/mod.conf index d79c6e0af..de938b831 100644 --- a/mods/PLAYER/mcl_starting_inventory/mod.conf +++ b/mods/PLAYER/mcl_starting_inventory/mod.conf @@ -1,3 +1,3 @@ name = mcl_starting_inventory -description = Mineclone 2 mod, Starting Chest. (Gives starter chest to players.) -depends = mcl_core, mcl_chests +description = Mineclone 2 mod, Starting Inventory +depends = mcl_core, mcl_tools, diff --git a/settingtypes.txt b/settingtypes.txt index c183da7ed..fe93771c6 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -231,8 +231,8 @@ mcl_extended_pet_control (Extended pet control) bool true # Enable hamburgers for villagers to follow mcl_enable_hamburger (Enable Hamburger) bool true -# Starting inventory contents (given directly to the new player) type: string -starting_inv_contents (player starter pack) string "mcl_tools:pick_iron,mcl_tools:axe_iron,mcl_tools:shovel_iron,mcl_torches:torch 32,mcl_core:cobble 64" +# Starting Inventory contents (given directly to the new player) type: string +starting_inv_contents (Player Starter Pack) bool false [Debugging] # If enabled, this will show the itemstring of an item in the description.