1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-11-14 06:10:44 +01:00

remove certain foods and recipes when using mineclone

This commit is contained in:
tenplus1 2024-08-11 16:54:35 +01:00
parent a9a1b720a3
commit f3a7e9350f
4 changed files with 178 additions and 133 deletions

View File

@ -192,12 +192,15 @@ minetest.register_craft( {
-- cocoa beans -- cocoa beans
minetest.register_craft({ if not farming.mcl then
type = "cooking",
cooktime = 5, minetest.register_craft({
output = "farming:cocoa_beans", type = "cooking",
recipe = "farming:cocoa_beans_raw" cooktime = 5,
}) output = "farming:cocoa_beans",
recipe = "farming:cocoa_beans_raw"
})
end
-- bar of dark chocolate -- bar of dark chocolate
@ -269,10 +272,13 @@ minetest.register_craft({
-- golden carrot -- golden carrot
minetest.register_craft({ if not farming.mcl then
output = "farming:carrot_gold",
recipe = {{"group:food_carrot", "default:gold_lump"}} minetest.register_craft({
}) output = "farming:carrot_gold",
recipe = {{"group:food_carrot", "default:gold_lump"}}
})
end
-- blueberry pie -- blueberry pie
@ -296,13 +302,16 @@ minetest.register_craft({
-- beetroot soup -- beetroot soup
minetest.register_craft({ if not farming.mcl then
output = "farming:beetroot_soup",
recipe = { minetest.register_craft({
{"group:food_beetroot", "group:food_beetroot", "group:food_beetroot"}, output = "farming:beetroot_soup",
{"group:food_beetroot", "group:food_bowl", "group:food_beetroot"} recipe = {
} {"group:food_beetroot", "group:food_beetroot", "group:food_beetroot"},
}) {"group:food_beetroot", "group:food_bowl", "group:food_beetroot"}
}
})
end
-- tomato soup -- tomato soup
@ -885,12 +894,15 @@ minetest.register_craft({
-- baked potato -- baked potato
minetest.register_craft({ if not farming.mcl then
type = "cooking",
cooktime = 10, minetest.register_craft({
output = "farming:baked_potato", type = "cooking",
recipe = "group:food_potato" cooktime = 10,
}) output = "farming:baked_potato",
recipe = "group:food_potato"
})
end
-- potato & cucumber salad -- potato & cucumber salad
@ -1046,36 +1058,47 @@ minetest.register_craft({
-- toasted sunflower seeds -- toasted sunflower seeds
minetest.register_craft({ if not farming.mcl then
type = "cooking",
cooktime = 10, minetest.register_craft({
output = "farming:sunflower_seeds_toasted", type = "cooking",
recipe = "farming:seed_sunflower" cooktime = 10,
}) output = "farming:sunflower_seeds_toasted",
recipe = "farming:seed_sunflower"
})
end
-- sunflower oil -- sunflower oil
minetest.register_craft( { if not farming.mcl then
output = "farming:sunflower_oil",
recipe = { local tmp = "group:food_sunflower_seeds"
{"group:food_sunflower_seeds", "group:food_sunflower_seeds", "group:food_sunflower_seeds"},
{"group:food_sunflower_seeds", "group:food_sunflower_seeds", "group:food_sunflower_seeds"}, minetest.register_craft( {
{"group:food_sunflower_seeds", a.glass_bottle, "group:food_sunflower_seeds"} output = "farming:sunflower_oil",
} recipe = {
}) {tmp, tmp, tmp},
{tmp, tmp, tmp},
{tmp, a.glass_bottle, tmp}
}
})
end
-- sunflower seed bread -- sunflower seed bread
minetest.register_craft({ if not farming.mcl then
output = "farming:sunflower_bread",
recipe = { minetest.register_craft({
{ output = "farming:sunflower_bread",
"group:food_sunflower_seeds_toasted", recipe = {
"group:food_bread", {
"group:food_sunflower_seeds_toasted" "group:food_sunflower_seeds_toasted",
"group:food_bread",
"group:food_sunflower_seeds_toasted"
}
} }
} })
}) end
-- vanilla extract -- vanilla extract
@ -1092,13 +1115,16 @@ minetest.register_craft( {
-- jack 'o lantern -- jack 'o lantern
minetest.register_craft({ if not farming.mcl then
output = "farming:jackolantern",
recipe = { minetest.register_craft({
{"default:torch"}, output = "farming:jackolantern",
{"group:food_pumpkin"} recipe = {
} {"default:torch"},
}) {"group:food_pumpkin"}
}
})
end
-- wooden scarecrow base -- wooden scarecrow base

View File

@ -113,11 +113,14 @@ minetest.register_alias("farming:drinking_cup", "vessels:drinking_glass")
-- Cocoa beans -- Cocoa beans
minetest.register_craftitem("farming:cocoa_beans", { if not farming.mcl then
description = S("Cocoa Beans"),
inventory_image = "farming_cocoa_beans.png", minetest.register_craftitem("farming:cocoa_beans", {
groups = {compostability = 65, food_cocoa = 1, flammable = 2} description = S("Cocoa Beans"),
}) inventory_image = "farming_cocoa_beans.png",
groups = {compostability = 65, food_cocoa = 1, flammable = 2}
})
end
-- Chocolate cookie -- Chocolate cookie
@ -180,13 +183,16 @@ farming.add_eatable("farming:carrot_juice", 4)
-- Golden carrot -- Golden carrot
minetest.register_craftitem("farming:carrot_gold", { if not farming.mcl then
description = S("Golden Carrot"),
inventory_image = "farming_carrot_gold.png",
on_use = minetest.item_eat(10)
})
farming.add_eatable("farming:carrot_gold", 10) minetest.register_craftitem("farming:carrot_gold", {
description = S("Golden Carrot"),
inventory_image = "farming_carrot_gold.png",
on_use = minetest.item_eat(10)
})
farming.add_eatable("farming:carrot_gold", 10)
end
-- Blueberry Pie -- Blueberry Pie
@ -212,13 +218,16 @@ farming.add_eatable("farming:muffin_blueberry", 2)
-- beetroot soup -- beetroot soup
minetest.register_craftitem("farming:beetroot_soup", { if not farming.mcl then
description = S("Beetroot Soup"),
inventory_image = "farming_beetroot_soup.png",
on_use = minetest.item_eat(6, "farming:bowl")
})
farming.add_eatable("farming:beetroot_soup", 6) minetest.register_craftitem("farming:beetroot_soup", {
description = S("Beetroot Soup"),
inventory_image = "farming_beetroot_soup.png",
on_use = minetest.item_eat(6, "farming:bowl")
})
farming.add_eatable("farming:beetroot_soup", 6)
end
-- Tomato soup -- Tomato soup
@ -784,13 +793,16 @@ farming.add_eatable("farming:pineapple_juice", 4)
-- Baked potato -- Baked potato
minetest.register_craftitem("farming:baked_potato", { if not farming.mcl then
description = S("Baked Potato"),
inventory_image = "farming_baked_potato.png",
on_use = minetest.item_eat(6)
})
farming.add_eatable("farming:baked_potato", 6) minetest.register_craftitem("farming:baked_potato", {
description = S("Baked Potato"),
inventory_image = "farming_baked_potato.png",
on_use = minetest.item_eat(6)
})
farming.add_eatable("farming:baked_potato", 6)
end
-- Potato & cucumber Salad -- Potato & cucumber Salad

View File

@ -3,11 +3,14 @@ local S = minetest.get_translator("farming")
-- wooden bowl -- wooden bowl
minetest.register_craftitem("farming:bowl", { if not farming.mcl then
description = S("Wooden Bowl"),
inventory_image = "farming_bowl.png", minetest.register_craftitem("farming:bowl", {
groups = {food_bowl = 1, flammable = 2} description = S("Wooden Bowl"),
}) inventory_image = "farming_bowl.png",
groups = {food_bowl = 1, flammable = 2}
})
end
-- saucepan -- saucepan
@ -189,61 +192,64 @@ minetest.register_node("farming:hemp_rope", {
-- Jack 'O Lantern -- Jack 'O Lantern
minetest.register_node("farming:jackolantern", { if not farming.mcl then
description = S("Jack 'O Lantern (punch to turn on and off)"),
tiles = {
"farming_pumpkin_bottom.png^farming_pumpkin_top.png",
"farming_pumpkin_bottom.png",
"farming_pumpkin_side.png",
"farming_pumpkin_side.png",
"farming_pumpkin_side.png",
"farming_pumpkin_side.png^farming_pumpkin_face_off.png"
},
paramtype2 = "facedir",
groups = {
handy = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2
},
is_ground_content = false,
sounds = farming.node_sound_wood_defaults(),
on_punch = function(pos, node, puncher) minetest.register_node("farming:jackolantern", {
local name = puncher:get_player_name() or "" description = S("Jack 'O Lantern (punch to turn on and off)"),
if minetest.is_protected(pos, name) then return end tiles = {
node.name = "farming:jackolantern_on" "farming_pumpkin_bottom.png^farming_pumpkin_top.png",
minetest.swap_node(pos, node) "farming_pumpkin_bottom.png",
end, "farming_pumpkin_side.png",
_mcl_hardness = 0.8, "farming_pumpkin_side.png",
_mcl_blast_resistance = 1 "farming_pumpkin_side.png",
}) "farming_pumpkin_side.png^farming_pumpkin_face_off.png"
},
paramtype2 = "facedir",
groups = {
handy = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2
},
is_ground_content = false,
sounds = farming.node_sound_wood_defaults(),
minetest.register_node("farming:jackolantern_on", { on_punch = function(pos, node, puncher)
tiles = { local name = puncher:get_player_name() or ""
"farming_pumpkin_bottom.png^farming_pumpkin_top.png", if minetest.is_protected(pos, name) then return end
"farming_pumpkin_bottom.png", node.name = "farming:jackolantern_on"
"farming_pumpkin_side.png", minetest.swap_node(pos, node)
"farming_pumpkin_side.png", end,
"farming_pumpkin_side.png", _mcl_hardness = 0.8,
"farming_pumpkin_side.png^farming_pumpkin_face_on.png" _mcl_blast_resistance = 1
}, })
light_source = minetest.LIGHT_MAX - 1,
paramtype2 = "facedir",
groups = {
handy = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,
not_in_creative_inventory = 1
},
is_ground_content = false,
sounds = farming.node_sound_wood_defaults(),
drop = "farming:jackolantern",
on_punch = function(pos, node, puncher) minetest.register_node("farming:jackolantern_on", {
local name = puncher:get_player_name() or "" tiles = {
if minetest.is_protected(pos, name) then return end "farming_pumpkin_bottom.png^farming_pumpkin_top.png",
node.name = "farming:jackolantern" "farming_pumpkin_bottom.png",
minetest.swap_node(pos, node) "farming_pumpkin_side.png",
end, "farming_pumpkin_side.png",
_mcl_hardness = 0.8, "farming_pumpkin_side.png",
_mcl_blast_resistance = 1 "farming_pumpkin_side.png^farming_pumpkin_face_on.png"
}) },
light_source = minetest.LIGHT_MAX - 1,
paramtype2 = "facedir",
groups = {
handy = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,
not_in_creative_inventory = 1
},
is_ground_content = false,
sounds = farming.node_sound_wood_defaults(),
drop = "farming:jackolantern",
on_punch = function(pos, node, puncher)
local name = puncher:get_player_name() or ""
if minetest.is_protected(pos, name) then return end
node.name = "farming:jackolantern"
minetest.swap_node(pos, node)
end,
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1
})
end
--- Wooden scarecrow base --- Wooden scarecrow base

View File

@ -27,6 +27,7 @@ lucky_block:add_blocks({
{"dro", {"farming:juicer"}, 1}, {"dro", {"farming:juicer"}, 1},
{"dro", {"farming:mixing_bowl"}, 1}, {"dro", {"farming:mixing_bowl"}, 1},
{"dro", {"farming:hoe_bronze"}, 1}, {"dro", {"farming:hoe_bronze"}, 1},
{"dro", {"farming:sunflower_oil", 5},
{"dro", {"farming:hoe_mese"}, 1}, {"dro", {"farming:hoe_mese"}, 1},
{"dro", {"farming:hoe_diamond"}, 1}, {"dro", {"farming:hoe_diamond"}, 1},
{"dro", {"farming:hoe_bomb"}, 10}, {"dro", {"farming:hoe_bomb"}, 10},