Update recipes to use groups

Modifies all crafting recipes to use groups instead of fixed items, including adding a new crafting recipe to craft glasses of water using water sources

Special thanks to @mruncreative for showing insterest and inspiring me to do this changes (Resolves #14)
This commit is contained in:
Joaquin Villalba 2024-06-03 20:13:56 -03:00 committed by GitHub
parent 84008fa3e2
commit d1415aebff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,9 +7,9 @@ else
minetest.register_craft({
output = "claycrafter:compressed_dirt",
recipe = {
{"default:dirt", "default:dirt", "default:dirt"},
{"default:dirt", "default:dirt", "default:dirt"},
{"default:dirt", "default:dirt", "default:dirt"}
{"group:dirt", "group:dirt", "group:dirt"},
{"group:dirt", "group:dirt", "group:dirt"},
{"group:dirt", "group:dirt", "group:dirt"}
}
})
minetest.register_node("claycrafter:compressed_dirt", {
@ -47,12 +47,24 @@ minetest.register_node("claycrafter:glass_of_water", {
minetest.register_craft({
output = "claycrafter:glass_of_water 8",
recipe = {
{"vessels:drinking_glass", "vessels:drinking_glass", "vessels:drinking_glass"},
{"vessels:drinking_glass", "bucket:bucket_water", "vessels:drinking_glass"},
{"vessels:drinking_glass", "vessels:drinking_glass", "vessels:drinking_glass"}
{"group:vessel", "group:vessel", "group:vessel"},
{"group:vessel", "group:water_bucket", "group:vessel"},
{"group:vessel", "group:vessel", "group:vessel"}
},
replacements = {
{"bucket:bucket_water", "bucket:bucket_empty"},
{"group:water_bucket", "bucket:bucket_empty"},
}
})
minetest.register_craft({
output = "claycrafter:glass_of_water 8",
recipe = {
{"group:vessel", "group:vessel", "group:vessel"},
{"group:vessel", "group:water", "group:vessel"},
{"group:vessel", "group:vessel", "group:vessel"}
},
replacements = {
{"group:water_bucket", "bucket:bucket_empty"},
}
})
@ -60,7 +72,7 @@ minetest.register_craft({
output = "claycrafter:claycrafter",
recipe = {
{"group:wood", "default:steel_ingot", "group:wood"},
{"group:wood", "default:glass", "group:wood"},
{"default:stick", "bucket:bucket_water", "default:stick"}
{"group:wood", "group:glass", "group:wood"},
{"group:stick", "group:water_bucket", "group:stick"}
}
})