group updates and simplecrafting_lib recipe support
This commit is contained in:
parent
a031a5efc7
commit
d6e84e586b
@ -136,7 +136,7 @@ dfcaverns.register_seed = function(name, description, image, stage_one, grow_tim
|
||||
wield_image = image,
|
||||
drawtype = "signlike",
|
||||
paramtype2 = "wallmounted",
|
||||
groups = {seed = 1, snappy = 3, attached_node = 1, flammable = 2, dfcaverns_cookable = 1},
|
||||
groups = {seed = 1, snappy = 3, attached_node = 1, flammable = 2, dfcaverns_cookable = 1, digtron_on_place=1},
|
||||
_dfcaverns_next_stage = stage_one,
|
||||
_dfcaverns_next_stage_time = grow_time,
|
||||
paramtype = "light",
|
||||
|
@ -27,25 +27,6 @@ local register_cooking_recipes = function(prefix, item, name, returns)
|
||||
on_use = minetest.item_eat(8),
|
||||
groups = {food = 8},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dfcaverns:"..item.."_biscuit",
|
||||
recipe = {"group:dfcaverns_cookable", prefix..":"..item},
|
||||
replacements = returns
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dfcaverns:"..item.."_stew",
|
||||
recipe = {"group:dfcaverns_cookable", "group:dfcaverns_cookable", prefix..":"..item},
|
||||
replacements = returns
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dfcaverns:"..item.."_roast",
|
||||
recipe = {"group:dfcaverns_cookable", "group:dfcaverns_cookable", "group:dfcaverns_cookable", prefix..":"..item},
|
||||
replacements = returns
|
||||
})
|
||||
|
||||
if minetest.get_modpath("simplecrafting_lib") then
|
||||
simplecrafting_lib.register("cooking", {
|
||||
@ -78,6 +59,25 @@ local register_cooking_recipes = function(prefix, item, name, returns)
|
||||
},
|
||||
cooktime = 15.0,
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dfcaverns:"..item.."_biscuit",
|
||||
recipe = {"group:dfcaverns_cookable", prefix..":"..item},
|
||||
replacements = returns
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dfcaverns:"..item.."_stew",
|
||||
recipe = {"group:dfcaverns_cookable", "group:dfcaverns_cookable", prefix..":"..item},
|
||||
replacements = returns
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dfcaverns:"..item.."_roast",
|
||||
recipe = {"group:dfcaverns_cookable", "group:dfcaverns_cookable", "group:dfcaverns_cookable", prefix..":"..item},
|
||||
replacements = returns
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -64,7 +64,7 @@ minetest.register_node("dfcaverns:plump_helmet_spawn", {
|
||||
tiles = {
|
||||
"dfcaverns_plump_helmet_cap.png",
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, digtron_on_place=1},
|
||||
_dfcaverns_next_stage = "dfcaverns:plump_helmet_1",
|
||||
_dfcaverns_next_stage_time = plump_helmet_grow_time,
|
||||
drawtype = "nodebox",
|
||||
@ -96,7 +96,7 @@ minetest.register_node("dfcaverns:plump_helmet_1", {
|
||||
"dfcaverns_plump_helmet_cap.png",
|
||||
"dfcaverns_plump_helmet_cap.png^[lowpart:5:dfcaverns_plump_helmet_stem.png",
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 1},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 1, digtron_on_place=1},
|
||||
_dfcaverns_next_stage = "dfcaverns:plump_helmet_2",
|
||||
_dfcaverns_next_stage_time = plump_helmet_grow_time,
|
||||
drawtype = "nodebox",
|
||||
@ -132,7 +132,7 @@ minetest.register_node("dfcaverns:plump_helmet_2", {
|
||||
"dfcaverns_plump_helmet_cap.png",
|
||||
"dfcaverns_plump_helmet_cap.png^[lowpart:15:dfcaverns_plump_helmet_stem.png",
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 2},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 2, digtron_on_place=1},
|
||||
_dfcaverns_next_stage = "dfcaverns:plump_helmet_3",
|
||||
_dfcaverns_next_stage_time = plump_helmet_grow_time,
|
||||
drawtype = "nodebox",
|
||||
@ -166,7 +166,7 @@ minetest.register_node("dfcaverns:plump_helmet_3", {
|
||||
"dfcaverns_plump_helmet_cap.png",
|
||||
"dfcaverns_plump_helmet_cap.png^[lowpart:35:dfcaverns_plump_helmet_stem.png",
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 3},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 3, digtron_on_place=1},
|
||||
_dfcaverns_next_stage = "dfcaverns:plump_helmet_4",
|
||||
_dfcaverns_next_stage_time = plump_helmet_grow_time,
|
||||
drawtype = "nodebox",
|
||||
@ -200,7 +200,7 @@ minetest.register_node("dfcaverns:plump_helmet_4", {
|
||||
"dfcaverns_plump_helmet_cap.png",
|
||||
"dfcaverns_plump_helmet_cap.png^[lowpart:40:dfcaverns_plump_helmet_stem.png",
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 4},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 4, digtron_on_place=1},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
@ -251,7 +251,7 @@ minetest.register_node("dfcaverns:plump_helmet_4_picked", {
|
||||
"dfcaverns_plump_helmet_cap.png",
|
||||
"dfcaverns_plump_helmet_cap.png^[lowpart:40:dfcaverns_plump_helmet_stem.png",
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 4},
|
||||
groups = {snappy = 3, flammable = 2, plant = 1, attached_node = 1, light_sensitive_fungus = 11, dfcaverns_cookable = 1, plump_helmet = 1, food = 4, digtron_on_place=1},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
@ -207,11 +207,24 @@ if minetest.get_modpath("bucket") then
|
||||
S("Dwarven Syrup Bucket")
|
||||
)
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dfcaverns:dwarven_syrup_bucket",
|
||||
recipe = {"bucket:bucket_empty", "dfcaverns:sugar", "dfcaverns:sugar", "dfcaverns:sugar"},
|
||||
})
|
||||
if minetest.get_modpath("simplecrafting_lib") then
|
||||
simplecrafting_lib.register("cooking", {
|
||||
input = {
|
||||
["bucket:bucket_empty"] = 1,
|
||||
["dfcaverns:sugar"] = 3,
|
||||
},
|
||||
output = {
|
||||
["dfcaverns:dwarven_syrup_bucket"] = 1,
|
||||
},
|
||||
cooktime = 5.0,
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dfcaverns:dwarven_syrup_bucket",
|
||||
recipe = {"bucket:bucket_empty", "dfcaverns:sugar", "dfcaverns:sugar", "dfcaverns:sugar"},
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("dynamic_liquid") then
|
||||
dynamic_liquid.liquid_abm("dfcaverns:dwarven_syrup_source", "dfcaverns:dwarven_syrup_flowing", 5)
|
||||
|
@ -36,7 +36,7 @@ minetest.register_node("dfcaverns:blood_thorn", {
|
||||
"dfcaverns_blood_thorn_side.png", "dfcaverns_blood_thorn_side.png", "dfcaverns_blood_thorn_side.png", "dfcaverns_blood_thorn_side.png"},
|
||||
paramtype2 = "facedir",
|
||||
paramtype = "light",
|
||||
groups = {choppy = 3, flammable = 2, light_sensitive_fungus = 11},
|
||||
groups = {choppy = 3, tree = 1, flammable = 2, light_sensitive_fungus = 11},
|
||||
_dfcaverns_dead_node = "dfcaverns:blood_thorn_dead",
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
@ -50,7 +50,7 @@ minetest.register_node("dfcaverns:blood_thorn_dead", {
|
||||
tiles = {"dfcaverns_blood_thorn_top.png^[multiply:#804000", "dfcaverns_blood_thorn_top.png^[multiply:#804000",
|
||||
"dfcaverns_blood_thorn_side.png^[multiply:#804000"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy = 3, flammable = 2},
|
||||
groups = {choppy = 3, tree = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
after_dig_node = blood_thorn_after_dig,
|
||||
|
@ -18,7 +18,7 @@ minetest.register_node("dfcaverns:tunnel_tube", {
|
||||
paramtype2 = "facedir",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
groups = {choppy = 3, oddly_breakable_by_hand=1, flammable = 2},
|
||||
groups = {choppy = 3, tree = 1, oddly_breakable_by_hand=1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user