mirror of
https://repo.or.cz/minetest_wateringcan.git
synced 2024-10-06 09:53:06 +02:00
Add support for desert sand soil
This commit is contained in:
parent
2db0f17ada
commit
5695bdc351
@ -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. ;-)
|
||||
|
2
init.lua
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user