-
Notifications
You must be signed in to change notification settings - Fork 0
/
cement.lua
40 lines (37 loc) · 1.24 KB
/
cement.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
local S = minetest.get_translator("unified_recipes")
-- If we can burn cement from chalk and clay we will do that
if (minetest.registered_craftitems["darkage:chalk_powder"] ~= nil) and
(minetest.registered_craftitems["default:clay_lump"] ~= nil) then
unified_recipes.purge_recipes({"basic_materials:wet_cement"})
minetest.register_craftitem("unified_recipes:cement_base", {
description = S("Cement Base - needs to be burned"),
inventory_image = "basic_materials_wet_cement.png^[colorize:#5c4b2e:100",
})
minetest.register_craftitem("unified_recipes:dry_cement", {
description = S("Dry Cement"),
inventory_image = "basic_materials_wet_cement.png^[brighten",
})
minetest.register_craft({
type = "shapeless",
output = "unified_recipes:cement_base",
recipe = {
"default:clay_lump",
"darkage:chalk_powder",
},
})
minetest.register_craft({
type = "cooking",
output = "unified_recipes:dry_cement",
recipe = "unified_recipes:cement_base",
cooktime = 5
})
minetest.register_craft({
type = "shapeless",
output = "basic_materials:wet_cement",
recipe = {
"unified_recipes:dry_cement",
"bucket:bucket_water"
},
replacements = {{'bucket:bucket_water', 'bucket:bucket_empty'},},
})
end