From 5695bdc351f1d661395569b6e1ef3eb5e1c5dd31 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 25 Jul 2016 19:58:23 +0200 Subject: [PATCH] Add support for desert sand soil --- README.md | 2 +- init.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c4a4da9..c211bae 100644 --- a/README.md +++ b/README.md @@ -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 can’t become wet; you’d simply waste your water. ;-) diff --git a/init.lua b/init.lua index 3552ea2..3f45c98 100644 --- a/init.lua +++ b/init.lua @@ -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)