mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-27 03:00:20 +01:00
river water check for soy sauce recipe
This commit is contained in:
parent
9440fe2e5a
commit
9a08e2978a
@ -42,15 +42,26 @@ minetest.register_node("farming:soy_sauce", {
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
-- river water availability check
|
||||
local bucket_water
|
||||
|
||||
if minetest.get_mapgen_setting("mgname") == "valleys"
|
||||
or minetest.get_modpath("ethereal") then
|
||||
bucket_water = "bucket:bucket_river_water"
|
||||
else
|
||||
bucket_water = "bucket:bucket_water"
|
||||
end
|
||||
|
||||
-- soy sauce recipe
|
||||
minetest.register_craft( {
|
||||
output = "farming:soy_sauce",
|
||||
recipe = {
|
||||
{"group:food_soy", "group:food_salt", "group:food_soy"},
|
||||
{"", "group:food_juicer", ""},
|
||||
{"", "bucket:bucket_river_water", "vessels:glass_bottle"}
|
||||
{"", bucket_water, "vessels:glass_bottle"}
|
||||
},
|
||||
replacements = {
|
||||
{"bucket:bucket_river_water", "bucket:bucket_empty"},
|
||||
{bucket_water, "bucket:bucket_empty"},
|
||||
{"group:food_juicer", "farming:juicer"}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user