mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-11-10 20:30:31 +01:00
better mineclone support
This commit is contained in:
parent
f3a7e9350f
commit
09b06ea72a
8
init.lua
8
init.lua
|
@ -12,7 +12,7 @@ local S = minetest.get_translator("farming")
|
|||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20240811",
|
||||
version = "20240812",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {
|
||||
type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
|
||||
|
@ -735,7 +735,7 @@ end
|
|||
|
||||
-- recipe item list and alternatives
|
||||
|
||||
dofile(farming.path .. "/items_list.lua")
|
||||
dofile(farming.path .. "/item_list.lua")
|
||||
|
||||
-- important items
|
||||
|
||||
|
@ -816,8 +816,8 @@ ddoo("ginger.lua", farming.ginger)
|
|||
|
||||
-- register food items, non-food items, recipes and stairs
|
||||
|
||||
dofile(farming.path .. "/items_non_food.lua")
|
||||
dofile(farming.path .. "/items_food.lua")
|
||||
dofile(farming.path .. "/item_non_food.lua")
|
||||
dofile(farming.path .. "/item_food.lua")
|
||||
dofile(farming.path .. "/item_recipes.lua")
|
||||
dofile(farming.path .. "/item_stairs.lua")
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ local S = minetest.get_translator("farming")
|
|||
local a = farming.recipe_items
|
||||
|
||||
-- Flour
|
||||
|
||||
minetest.register_craftitem("farming:flour", {
|
||||
description = S("Flour"),
|
||||
inventory_image = "farming_flour.png",
|
||||
|
@ -10,6 +11,9 @@ minetest.register_craftitem("farming:flour", {
|
|||
})
|
||||
|
||||
-- Bread
|
||||
|
||||
if not farming.mcl then
|
||||
|
||||
minetest.register_craftitem("farming:bread", {
|
||||
description = S("Bread"),
|
||||
inventory_image = "farming_bread.png",
|
||||
|
@ -18,6 +22,7 @@ minetest.register_craftitem("farming:bread", {
|
|||
})
|
||||
|
||||
farming.add_eatable("farming:bread", 5)
|
||||
end
|
||||
|
||||
-- Garlic bulb
|
||||
|
||||
|
@ -124,6 +129,8 @@ end
|
|||
|
||||
-- Chocolate cookie
|
||||
|
||||
if not farming.mcl then
|
||||
|
||||
minetest.register_craftitem("farming:cookie", {
|
||||
description = S("Cookie"),
|
||||
inventory_image = "farming_cookie.png",
|
||||
|
@ -131,6 +138,7 @@ minetest.register_craftitem("farming:cookie", {
|
|||
})
|
||||
|
||||
farming.add_eatable("farming:cookie", 2)
|
||||
end
|
||||
|
||||
-- Bar of of dark chocolate (thx to Ice Pandora for her deviantart.com chocolate tutorial)
|
||||
minetest.register_craftitem("farming:chocolate_dark", {
|
|
@ -3,6 +3,8 @@ local a = farming.recipe_items
|
|||
|
||||
-- flour recipes
|
||||
|
||||
if not farming.mcl then
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:flour",
|
||||
recipe = {
|
||||
|
@ -11,6 +13,7 @@ minetest.register_craft({
|
|||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:flour",
|
||||
|
@ -62,12 +65,15 @@ minetest.register_craft({
|
|||
|
||||
-- bread
|
||||
|
||||
if not farming.mcl then
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 15,
|
||||
output = "farming:bread",
|
||||
recipe = "farming:flour"
|
||||
})
|
||||
end
|
||||
|
||||
-- sliced bread
|
||||
|
||||
|
@ -213,12 +219,15 @@ minetest.register_craft( {
|
|||
|
||||
-- chocolate cookie
|
||||
|
||||
if not farming.mcl then
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "farming:cookie 8",
|
||||
recipe = {
|
||||
{"group:food_wheat", "group:food_cocoa", "group:food_wheat" }
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- chocolate block
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user