food/food_basic/settings.lua
sys4 2ef2d1762e Version 2.4
* Add customizable settings for changing basic ingredients from
  Minetest settings,
* Rework item replacements in some crafting recipes,
* Disable some redundant items when farming or mobs mod is loaded,
* Improve recent version of farming_redo support,
* Some crafting recipes are slightly changed,
* Fix warnings at load time.

Tested with minetest_game, farming_redo and mobs_animal.
2021-03-11 21:01:56 +01:00

17 lines
1.1 KiB
Lua

food.bing = {} -- List of basic ingredients defined from Minetest settings
local settings = minetest.settings
food.bing["desert_sand"] = settings:get("basic_food_desert_sand") or "default:desert_sand"
food.bing["sand"] = settings:get("basic_food_sand") or "default:sand"
food.bing["dry_shrub"] = settings:get("basic_food_dry_shrub") or "default:dry_shrub"
food.bing["dirt"] = settings:get("basic_food_dirt") or "default:dirt"
food.bing["apple"] = settings:get("basic_food_apple") or "default:apple"
food.bing["cactus"] = settings:get("basic_food_cactus") or "default:cactus"
food.bing["bucket_water"] = settings:get("basic_food_bucket_water") or "bucket:bucket_water"
food.bing["bucket_river_water"] = settings:get("basic_food_bucket_river_water") or "bucket:bucket_river_water"
food.bing["bucket_empty"] = settings:get("basic_food_bucket_empty") or "bucket:bucket_empty"
food.bing["papyrus"] = settings:get("basic_food_papyrus") or "default:papyrus"
food.bing["clay"] = settings:get("basic_food_clay") or "default:clay_lump"
food.bing["cup"] = settings:get("basic_food_cup") or "vessels:drinking_glass"