2016-01-17 21:30:50 +01:00
|
|
|
-- the claycrafter is supposed to be some sort of furnace
|
|
|
|
-- that uses compressed dirt and glasses of water to make clay,
|
|
|
|
-- it's not needed to use the mod currently.
|
2016-01-17 13:23:02 +01:00
|
|
|
|
2016-01-15 17:17:40 +01:00
|
|
|
|
2016-01-13 05:04:18 +01:00
|
|
|
--Compressed dirt
|
|
|
|
minetest.register_node("claycrafter:compressed_dirt", {
|
|
|
|
description = "Compressed Dirt",
|
|
|
|
tiles = {"claycrafter_compressed_dirt.png"},
|
|
|
|
groups = {crumbly = 1, oddly_breakable_by_hand = 1}
|
|
|
|
})
|
2016-01-17 21:30:50 +01:00
|
|
|
|
2016-01-13 05:04:18 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "claycrafter:compressed_dirt",
|
|
|
|
recipe = {
|
2016-01-17 21:30:50 +01:00
|
|
|
{"default:dirt", "default:dirt", "default:dirt"},
|
|
|
|
{"default:dirt", "default:dirt", "default:dirt"},
|
|
|
|
{"default:dirt", "default:dirt", "default:dirt"}
|
2016-01-13 05:04:18 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
--Glass of water
|
2016-01-17 13:23:02 +01:00
|
|
|
-- Water glasses, like full buckets of water, might
|
|
|
|
-- should have, stack_max = 1
|
2016-01-13 05:04:18 +01:00
|
|
|
minetest.register_craftitem("claycrafter:glass_of_water", {
|
|
|
|
description = "Glass of Water",
|
2016-01-17 13:23:02 +01:00
|
|
|
inventory_image = "claycrafter_glass_of_water.png",
|
2016-01-17 22:10:18 +01:00
|
|
|
groups = {h2o = 4}, -- How much compressed dirt will turn to clay
|
2016-01-17 13:23:02 +01:00
|
|
|
--stack_max = 1
|
2016-01-13 05:04:18 +01:00
|
|
|
})
|
|
|
|
|
2016-01-17 13:23:02 +01:00
|
|
|
-- Better may be to override the vessels:drinking_glass item
|
|
|
|
-- and allow scooping water just as the bucket does
|
|
|
|
-- (Always wanted to do that.)
|
2016-01-13 05:04:18 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "claycrafter:glass_of_water 8",
|
|
|
|
recipe = {
|
2016-01-17 21:30:50 +01:00
|
|
|
{"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"}
|
|
|
|
},
|
2016-01-13 05:04:18 +01:00
|
|
|
replacements = {
|
2016-01-17 21:30:50 +01:00
|
|
|
{"bucket:bucket_water", "bucket:bucket_empty"},
|
2016-01-13 05:04:18 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-01-17 22:10:18 +01:00
|
|
|
--Craft the claya
|
|
|
|
--[[
|
2016-01-13 05:04:18 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "default:clay 4",
|
|
|
|
recipe = {"claycrafter:compressed_dirt", "claycrafter:glass_of_water"},
|
2016-01-13 09:29:55 +01:00
|
|
|
replacements = {
|
2016-01-17 21:30:50 +01:00
|
|
|
{"claycrafter:glass_of_water", "vessels:drinking_glass"},
|
2016-01-13 09:29:55 +01:00
|
|
|
}
|
2016-01-17 13:23:02 +01:00
|
|
|
})
|
2016-01-17 22:10:18 +01:00
|
|
|
--]]
|
2016-01-17 13:23:02 +01:00
|
|
|
|
2016-01-17 21:30:50 +01:00
|
|
|
-- Keeping this here for reference
|
|
|
|
-- As there are two ways a regular furnace gets fuel time
|
|
|
|
-- One, fron a craft recipe like this with "fuel" or "cooking"
|
|
|
|
-- type, and second from the fuel item group rating.
|
|
|
|
|
|
|
|
-- Block comment follows
|
2016-01-17 13:23:02 +01:00
|
|
|
--[[
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "h2o", -- normal, cooking,or fuel only
|
|
|
|
output = "default:clay",
|
|
|
|
recipe = {"claycrafter:compressed_dirt"},
|
|
|
|
recplacements = {{"claycrafter:glass_of_water"}}
|
|
|
|
})
|
|
|
|
--]]
|
|
|
|
|
|
|
|
dofile(minetest.get_modpath("claycrafter") .. "/claycrafter.lua")
|