Add support for desert sand soil

This commit is contained in:
Wuzzy 2016-07-25 19:58:23 +02:00
parent 2db0f17ada
commit 5695bdc351
2 changed files with 3 additions and 1 deletions

@ -22,7 +22,7 @@ The watering can uses the “tool wear” bar to indicate how much water is left
The watering can itself does *not* wear off and does not get destroyed by usage (it just becomes empty).
Currently, the watering can supports the Farming mod (from `minetest_game`) and the Pedology mod.
For the Farming mod, you can use the watering can on soil to wetten it.
For the Farming mod, you can use the watering can on soil or desert sand soil to wetten it.
For the Pedology mod, you can increase the wetness level of ground blocks by 1, but the maximum wetness you can reach is 2 to avoid creating mud lakes only with a watering can. ;-)
Anything else currently cant become wet; youd simply waste your water. ;-)

@ -41,6 +41,8 @@ minetest.register_tool("wateringcan:wateringcan_water", {
watered = false
elseif name == "farming:soil" and minetest.get_modpath("farming") ~= nil then
minetest.set_node(pos, { name = "farming:soil_wet" })
elseif name == "farming:desert_sand_soil" and minetest.get_modpath("farming") ~= nil then
minetest.set_node(pos, { name = "farming:desert_sand_soil_wet" })
elseif minetest.get_item_group(name, "sucky") > 0 and minetest.get_item_group(name, "wet") < 2 and minetest.get_modpath("pedology") ~= nil then
pedology.wetten(pos)