forked from mtcontrib/claycrafter
Add compatibility with dirt_compressed node from moreblocks
This commit is contained in:
parent
c8c4e41cae
commit
feb2efb6bc
@ -200,10 +200,13 @@ minetest.register_abm({
|
|||||||
--
|
--
|
||||||
-- Cooking
|
-- 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 cooktime = minetest.get_item_group(inv:get_stack("fuel", 1):get_name(), "h2o")
|
||||||
local cookable = true
|
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
|
cookable = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
vessels
|
vessels
|
||||||
default
|
default
|
||||||
bucket
|
bucket
|
||||||
|
moreblocks?
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
|
if minetest.get_modpath("moreblocks") then
|
||||||
|
minetest.register_alias("claycrafter:compressed_dirt", "moreblocks:dirt_compressed")
|
||||||
|
else
|
||||||
minetest.register_node("claycrafter:compressed_dirt", {
|
minetest.register_node("claycrafter:compressed_dirt", {
|
||||||
description = "Compressed Dirt",
|
description = "Compressed Dirt",
|
||||||
tiles = {"claycrafter_compressed_dirt.png"},
|
tiles = {"claycrafter_compressed_dirt.png"},
|
||||||
groups = {crumbly = 1, oddly_breakable_by_hand = 1, soil = 1, cracky =1}
|
groups = {crumbly = 1, oddly_breakable_by_hand = 1, soil = 1, cracky =1}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craftitem("claycrafter:glass_of_water", {
|
minetest.register_craftitem("claycrafter:glass_of_water", {
|
||||||
description = "Glass of Water",
|
description = "Glass of Water",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if not minetest.get_modpath("moreblocks") then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "claycrafter:compressed_dirt",
|
output = "claycrafter:compressed_dirt",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -6,6 +7,7 @@ minetest.register_craft({
|
|||||||
{"default:dirt", "default:dirt", "default:dirt"}
|
{"default:dirt", "default:dirt", "default:dirt"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "claycrafter:glass_of_water 8",
|
output = "claycrafter:glass_of_water 8",
|
||||||
|
Loading…
Reference in New Issue
Block a user