1
0
mirror of https://github.com/Dragonop/claycrafter.git synced 2025-07-13 17:00:19 +02:00

4 Commits

6 changed files with 19 additions and 6 deletions

View File

@ -5,6 +5,7 @@ Dependencies:
Default
Vessels
Bucket
moreblocks (optional)
claycrafter.lua is derivated from furnace.lua (minetest_game) by PilzAdam and Amaz1.
Edited by everamzah to work for this mod.

View File

@ -200,10 +200,13 @@ minetest.register_abm({
--
-- Cooking
--
local compressed_dirt = "claycrafter:compressed_dirt"
if minetest.get_modpath("moreblocks") then
compressed_dirt = "moreblocks:dirt_compressed"
end
local cooktime = minetest.get_item_group(inv:get_stack("fuel", 1):get_name(), "h2o")
local cookable = true
if inv:get_stack("src", 1):get_name() ~= "claycrafter:compressed_dirt" then
if inv:get_stack("src", 1):get_name() ~= compressed_dirt then
cookable = false
end

View File

@ -5,3 +5,5 @@ local modpath = minetest.get_modpath("claycrafter")
dofile(modpath .. "/items.lua")
dofile(modpath .. "/recipes.lua")
dofile(modpath .. "/claycrafter.lua")
minetest.log("action", "[claycrafter] loaded.")

View File

@ -1,8 +1,12 @@
minetest.register_node("claycrafter:compressed_dirt", {
if minetest.get_modpath("moreblocks") then
minetest.register_alias("claycrafter:compressed_dirt", "moreblocks:dirt_compressed")
else
minetest.register_node("claycrafter:compressed_dirt", {
description = "Compressed Dirt",
tiles = {"claycrafter_compressed_dirt.png"},
groups = {crumbly = 1, oddly_breakable_by_hand = 1, soil = 1, cracky =1}
})
})
end
minetest.register_node("claycrafter:glass_of_water", {
description = ("Glass of Water"),

View File

@ -1,4 +1,5 @@
name = claycrafter
description = This mod introduces the Claycrafter, which converts Compressed Dirt to Clay using Glasses of Water.
depends = vessels, default, bucket
optional_depends = moreblocks
author = Dragonop

View File

@ -1,11 +1,13 @@
minetest.register_craft({
if not minetest.get_modpath("moreblocks") then
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"}
}
})
})
end
minetest.register_craft({
output = "default:dirt 9",