forked from mtcontrib/food
Texture fixes and mod support fixes.
This commit is contained in:
parent
98f3be3995
commit
38662b0a19
191
init.lua
191
init.lua
@ -1,96 +1,95 @@
|
|||||||
-- RUBENFOOD MOD
|
-- RUBENFOOD MOD
|
||||||
-- A mod written by rubenwardy that adds
|
-- A mod written by rubenwardy that adds
|
||||||
-- food to the minetest game
|
-- food to the minetest game
|
||||||
-- =====================================
|
-- =====================================
|
||||||
-- >> rubenfood/init.lua
|
-- >> rubenfood/init.lua
|
||||||
-- inits the mod
|
-- inits the mod
|
||||||
-- =====================================
|
-- =====================================
|
||||||
-- [regis-item] Cup
|
-- [regis-item] Cup
|
||||||
-- [craft] Cup
|
-- [craft] Cup
|
||||||
-- [regis-food] Cigerette (-4)
|
-- [regis-food] Cigerette (-4)
|
||||||
-- =====================================
|
-- =====================================
|
||||||
|
|
||||||
print ("Food: Loading mainframe: [Master]")
|
print ("Food: Loading mainframe: [Master]")
|
||||||
|
|
||||||
----------------------Load Files-----------------------------
|
----------------------Load Files-----------------------------
|
||||||
dofile(minetest.get_modpath("food").."/support.lua")
|
dofile(minetest.get_modpath("food").."/support.lua")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("food").."/dairy.lua")
|
dofile(minetest.get_modpath("food").."/dairy.lua")
|
||||||
dofile(minetest.get_modpath("food").."/food/meats.lua")
|
dofile(minetest.get_modpath("food").."/food/meats.lua")
|
||||||
dofile(minetest.get_modpath("food").."/food/sandwich.lua")
|
dofile(minetest.get_modpath("food").."/food/sandwich.lua")
|
||||||
dofile(minetest.get_modpath("food").."/food/baking.lua")
|
dofile(minetest.get_modpath("food").."/food/baking.lua")
|
||||||
dofile(minetest.get_modpath("food").."/food/soup.lua")
|
dofile(minetest.get_modpath("food").."/food/soup.lua")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("food").."/snacks/crumbles.lua")
|
dofile(minetest.get_modpath("food").."/snacks/crumbles.lua")
|
||||||
dofile(minetest.get_modpath("food").."/snacks/cakes.lua")
|
dofile(minetest.get_modpath("food").."/snacks/cakes.lua")
|
||||||
dofile(minetest.get_modpath("food").."/snacks/tarts.lua")
|
dofile(minetest.get_modpath("food").."/snacks/tarts.lua")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("food").."/drinks/juice.lua")
|
dofile(minetest.get_modpath("food").."/drinks/juice.lua")
|
||||||
dofile(minetest.get_modpath("food").."/drinks/hot.lua")
|
dofile(minetest.get_modpath("food").."/drinks/hot.lua")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
----------------------------Cup------------------------------
|
----------------------------Cup------------------------------
|
||||||
|
|
||||||
minetest.register_craftitem("food:mug",{
|
minetest.register_craftitem("food:mug",{
|
||||||
description = "Mug",
|
description = "Mug",
|
||||||
inventory_image = "food_mug.png",
|
inventory_image = "food_mug.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("food:clay_mug",{
|
minetest.register_craftitem("food:clay_mug",{
|
||||||
description = "Clay Mug",
|
description = "Clay Mug",
|
||||||
inventory_image = "food_clay_mug.png",
|
inventory_image = "food_clay_mug.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"food:clay_mug" 1',
|
output = '"food:clay_mug" 1',
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:clay_lump","","default:clay_lump"},
|
{"default:clay_lump","","default:clay_lump"},
|
||||||
{"default:clay_lump","","default:clay_lump"},
|
{"default:clay_lump","","default:clay_lump"},
|
||||||
{"default:clay_lump","default:clay_lump","default:clay_lump"},
|
{"default:clay_lump","default:clay_lump","default:clay_lump"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "food:mug",
|
output = "food:mug",
|
||||||
recipe = "food:clay_mug",
|
recipe = "food:clay_mug",
|
||||||
})
|
})
|
||||||
|
|
||||||
-----------------------------Bowl-------------------------------
|
-----------------------------Bowl-------------------------------
|
||||||
|
|
||||||
minetest.register_craftitem("food:bowl",{
|
minetest.register_craftitem("food:bowl",{
|
||||||
description = "Bowl",
|
description = "Bowl",
|
||||||
inventory_image = "food_bowl.png",
|
inventory_image = "food_bowl.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
-----------------------------Sugar------------------------------
|
-----------------------------Sugar------------------------------
|
||||||
minetest.register_craftitem("food:sugar", {
|
minetest.register_craftitem("food:sugar", {
|
||||||
description = "Sugar",
|
description = "Sugar",
|
||||||
inventory_image = "food_sugar.png",
|
inventory_image = "food_sugar.png",
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"food:sugar" 20',
|
output = '"food:sugar" 20',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'"default:papyrus"'},
|
{'"default:papyrus"'},
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
----------------------------Cigerete----------------------------
|
--------------------------Cactus Slice--------------------------
|
||||||
minetest.register_craftitem("food:cigarette", {
|
minetest.register_craftitem("food:cactus_slice", {
|
||||||
description = "Cigarette",
|
description = "Cactus Slice",
|
||||||
inventory_image = "food_cigar.png",
|
inventory_image = "food_cactus_slice.png",
|
||||||
on_use = minetest.item_eat(-4),
|
on_use = minetest.item_eat(2),
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
minetest.register_craft({
|
output = '"food:cactus_slice" 4',
|
||||||
output = '"food:cigarette" 1',
|
recipe = {
|
||||||
recipe = {
|
{'"default:cactus"'},
|
||||||
{'"default:dry_shrub"','"default:dry_shrub"','"default:dry_shrub"'},
|
|
||||||
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
|
print("Food: Mainframe loaded")
|
||||||
print("Food: Mainframe loaded")
|
|
||||||
|
564
support.lua
564
support.lua
@ -1,282 +1,282 @@
|
|||||||
-- RUBENFOOD MOD
|
-- RUBENFOOD MOD
|
||||||
-- A mod written by rubenwardy that adds
|
-- A mod written by rubenwardy that adds
|
||||||
-- food to the minetest game
|
-- food to the minetest game
|
||||||
-- ======================================
|
-- ======================================
|
||||||
-- >> rubenfood/support.lua
|
-- >> rubenfood/support.lua
|
||||||
-- adds support for other mods
|
-- adds support for other mods
|
||||||
-- ======================================
|
-- ======================================
|
||||||
-- [support]
|
-- [support]
|
||||||
-- ======================================
|
-- ======================================
|
||||||
|
|
||||||
print "Food [Support] - Initialising"
|
print "Food [Support] - Initialising"
|
||||||
|
|
||||||
--NODE_IMPLEMENT() Gets an item from another mod softly
|
--NODE_IMPLEMENT() Gets an item from another mod softly
|
||||||
-- modname: the name of the mod that the item will be got from
|
-- modname: the name of the mod that the item will be got from
|
||||||
-- n_ext: the name of the item that we want to get
|
-- n_ext: the name of the item that we want to get
|
||||||
-- n_int: the name we want to save the item so we can load it as an ingredient
|
-- n_int: the name we want to save the item so we can load it as an ingredient
|
||||||
-- resultfunc: if the mod does not exist, then do this function
|
-- resultfunc: if the mod does not exist, then do this function
|
||||||
function node_implement(modname,n_ext,n_int,resultfunc)
|
function node_implement(modname,n_ext,n_int,resultfunc)
|
||||||
if not minetest.get_modpath(modname) then
|
if not minetest.get_modpath(modname) then
|
||||||
-- Mod is NOT installed
|
-- Mod is NOT installed
|
||||||
resultfunc()
|
resultfunc()
|
||||||
else
|
else
|
||||||
-- Mod IS installed
|
-- Mod IS installed
|
||||||
minetest.register_alias(n_int,n_ext)
|
minetest.register_alias(n_int,n_ext)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print "Food [Support] - Vegetables and Fruit"
|
print "Food [Support] - Vegetables and Fruit"
|
||||||
print "Food [Support] - > Bread and Flour"
|
print "Food [Support] - > Bread and Flour"
|
||||||
|
|
||||||
node_implement("farming","farming:flour","food:flour",function()
|
node_implement("farming","farming:flour","food:flour",function()
|
||||||
node_implement("plantlib","plantlib:wheat","food:wheat",function()
|
node_implement("plantlib","plantlib:wheat","food:wheat",function()
|
||||||
|
|
||||||
end)
|
end)
|
||||||
minetest.register_craftitem("food:flour", {
|
minetest.register_craftitem("food:flour", {
|
||||||
description = "Flour",
|
description = "Flour",
|
||||||
inventory_image = "farming_flour.png",
|
inventory_image = "farming_flour.png",
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"food:flour" 1',
|
output = '"food:flour" 1',
|
||||||
recipe = {
|
recipe = {
|
||||||
{"food:wheat"},
|
{"food:wheat"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
node_implement("farming","farming:bread","food:bread",function()
|
node_implement("farming","farming:bread","food:bread",function()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craftitem("food:bread", {
|
minetest.register_craftitem("food:bread", {
|
||||||
description = "Bread",
|
description = "Bread",
|
||||||
inventory_image = "food_bread.png",
|
inventory_image = "food_bread.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = minetest.item_eat(10),
|
on_use = minetest.item_eat(10),
|
||||||
groups={food=2},
|
groups={food=2},
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "food:dough",
|
output = "food:dough",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"food:flour", "food:flour", "food:flour", "food:flour", "bucket:bucket_water"},
|
recipe = {"food:flour", "food:flour", "food:flour", "food:flour", "bucket:bucket_water"},
|
||||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
|
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "food:bread",
|
output = "food:bread",
|
||||||
recipe = "food:dough",
|
recipe = "food:dough",
|
||||||
cooktime = 10,
|
cooktime = 10,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
node_implement("farming","farming:cake_mix","food:dough",function()
|
node_implement("farming","farming:cake_mix","food:dough",function()
|
||||||
minetest.register_craftitem("food:dough", {
|
minetest.register_craftitem("food:dough", {
|
||||||
description = "Cake Mix",
|
description = "Cake Mix",
|
||||||
inventory_image = "farming_cake_mix.png",
|
inventory_image = "farming_cake_mix.png",
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print "Food [Support] - > Strawberry"
|
print "Food [Support] - > Strawberry"
|
||||||
|
|
||||||
node_implement("farming_plus","farming_plus:strawberry_item","food:strawberry",function()
|
node_implement("farming_plus","farming_plus:strawberry_item","food:strawberry",function()
|
||||||
node_implement("plantlib","plantlib:strawberry","food:strawberry",function()
|
node_implement("plantlib","plantlib:strawberry","food:strawberry",function()
|
||||||
minetest.register_craftitem("food:strawberry", {
|
minetest.register_craftitem("food:strawberry", {
|
||||||
description = "Strawberry",
|
description = "Strawberry",
|
||||||
inventory_image = "farming_strawberry.png",
|
inventory_image = "farming_strawberry.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Carrot"
|
print "Food [Support] - > Carrot"
|
||||||
|
|
||||||
node_implement("farming_plus","farming_plus:carrot_item","food:carrot",function()
|
node_implement("farming_plus","farming_plus:carrot_item","food:carrot",function()
|
||||||
node_implement("docfarming","docfarming:carrot","food:carrot",function()
|
node_implement("docfarming","docfarming:carrot","food:carrot",function()
|
||||||
node_implement("plantlib","plantlib:carrot","food:carrot",function()
|
node_implement("plantlib","plantlib:carrot","food:carrot",function()
|
||||||
minetest.register_craftitem("food:carrot", {
|
minetest.register_craftitem("food:carrot", {
|
||||||
description = "Carrot",
|
description = "Carrot",
|
||||||
inventory_image = "farming_carrot.png",
|
inventory_image = "farming_carrot.png",
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
print "Food [Support] - > Rhubarb"
|
print "Food [Support] - > Rhubarb"
|
||||||
node_implement("farming_plus","farming_plus:rhubarb_item","food:rhubarb",function()
|
node_implement("farming_plus","farming_plus:rhubarb_item","food:rhubarb",function()
|
||||||
minetest.register_craftitem("food:rhubarb", {
|
minetest.register_craftitem("food:rhubarb", {
|
||||||
description = "Rhubarb",
|
description = "Rhubarb",
|
||||||
inventory_image = "farming_rhubarb.png",
|
inventory_image = "farming_rhubarb.png",
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Cocoa Bean"
|
print "Food [Support] - > Cocoa Bean"
|
||||||
node_implement("farming_plus","farming_plus:cocoa_bean","food:cocoa",function()
|
node_implement("farming_plus","farming_plus:cocoa_bean","food:cocoa",function()
|
||||||
minetest.register_craftitem("food:cocoa", {
|
minetest.register_craftitem("food:cocoa", {
|
||||||
description = "Cocoa Bean",
|
description = "Cocoa Bean",
|
||||||
inventory_image = "farming_cocoa_bean.png",
|
inventory_image = "farming_cocoa_bean.png",
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
print "Food [Support] - > Banana"
|
print "Food [Support] - > Banana"
|
||||||
node_implement("farming_plus","farming_plus:banana","food:banana",function()
|
node_implement("farming_plus","farming_plus:banana","food:banana",function()
|
||||||
minetest.register_node("food:banana", {
|
minetest.register_node("food:banana", {
|
||||||
description = "Banana",
|
description = "Banana",
|
||||||
tiles = {"farming_banana.png"},
|
tiles = {"farming_banana.png"},
|
||||||
inventory_image = "farming_banana.png",
|
inventory_image = "farming_banana.png",
|
||||||
wield_image = "farming_banana.png",
|
wield_image = "farming_banana.png",
|
||||||
drawtype = "torchlike",
|
drawtype = "torchlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {fleshy=3,dig_immediate=3,flammable=2},
|
groups = {fleshy=3,dig_immediate=3,flammable=2},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Tomato"
|
print "Food [Support] - > Tomato"
|
||||||
node_implement("farming_plus","farming_plus:tomato_item","food:tomato",function()
|
node_implement("farming_plus","farming_plus:tomato_item","food:tomato",function()
|
||||||
node_implement("plantlib","plantlib:tomato","food:tomato",function()
|
node_implement("plantlib","plantlib:tomato","food:tomato",function()
|
||||||
minetest.register_craftitem("food:tomato", {
|
minetest.register_craftitem("food:tomato", {
|
||||||
description = "Tomato",
|
description = "Tomato",
|
||||||
inventory_image = "farming_strawberry.png",
|
inventory_image = "farming_strawberry.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Potato"
|
print "Food [Support] - > Potato"
|
||||||
node_implement("docfarming","docfarming:potato","food:potato",function()
|
node_implement("docfarming","docfarming:potato","food:potato",function()
|
||||||
minetest.register_craftitem("food:potato", {
|
minetest.register_craftitem("food:potato", {
|
||||||
description = "Potato",
|
description = "Potato",
|
||||||
inventory_image = "potato.png",
|
inventory_image = "food_potato.png",
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
node_implement("docfarming","docfarming:bakedpotato","food:potato_baked",function()
|
node_implement("docfarming","docfarming:bakedpotato","food:potato_baked",function()
|
||||||
minetest.register_craftitem("food:potato_baked", {
|
minetest.register_craftitem("food:potato_baked", {
|
||||||
description = "Baked Potato",
|
description = "Baked Potato",
|
||||||
inventory_image = "baked_potato.png",
|
inventory_image = "food_baked_potato.png",
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Coffee"
|
print "Food [Support] - > Coffee"
|
||||||
node_implement("plantlib","plantlib:coffee","food:coffeebean",function()
|
node_implement("plantlib","plantlib:coffee","food:coffeebean",function()
|
||||||
minetest.register_craftitem("food:coffeebean",{
|
minetest.register_craftitem("food:coffeebean",{
|
||||||
description = "Raw Coffee Bean",
|
description = "Raw Coffee Bean",
|
||||||
tiles = {"food_coffee.png"},
|
tiles = {"food_coffee.png"},
|
||||||
inventory_image = "food_coffee.png",
|
inventory_image = "food_coffee.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"food:coffeebean" 1',
|
output = '"food:coffeebean" 1',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'""','"default:dry_shrub"','""'},
|
{'""','"default:dry_shrub"','""'},
|
||||||
{'""','"default:dry_shrub"','""'},
|
{'""','"default:dry_shrub"','""'},
|
||||||
{'""','"default:dry_shrub"','""'},
|
{'""','"default:dry_shrub"','""'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - Meats and Animal Produce"
|
print "Food [Support] - Meats and Animal Produce"
|
||||||
|
|
||||||
print "Food [Support] - > Raw Meat"
|
print "Food [Support] - > Raw Meat"
|
||||||
node_implement("mobs","mobs:meat_raw","food:meat_raw",function()
|
node_implement("mobs","mobs:meat_raw","food:meat_raw",function()
|
||||||
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function()
|
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function()
|
||||||
minetest.register_craftitem("food:meat_raw", {
|
minetest.register_craftitem("food:meat_raw", {
|
||||||
description = "Raw meat",
|
description = "Raw meat",
|
||||||
image = "animalmaterials_meat_raw.png",
|
image = "animalmaterials_meat_raw.png",
|
||||||
on_use = minetest.item_eat(1),
|
on_use = minetest.item_eat(1),
|
||||||
groups = { meat=1, eatable=1 },
|
groups = { meat=1, eatable=1 },
|
||||||
stack_max=25
|
stack_max=25
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Meat"
|
print "Food [Support] - > Meat"
|
||||||
node_implement("mobs","mobs:meat","food:meat",function()
|
node_implement("mobs","mobs:meat","food:meat",function()
|
||||||
minetest.register_craftitem("food:meat", {
|
minetest.register_craftitem("food:meat", {
|
||||||
description = "Venison",
|
description = "Venison",
|
||||||
inventory_image = "food_meat.png",
|
inventory_image = "food_meat.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "food:meat",
|
output = "food:meat",
|
||||||
recipe = "food:meat_raw",
|
recipe = "food:meat_raw",
|
||||||
cooktime = 20
|
cooktime = 20
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
node_implement("my_mobs","my_mobs:rabbit_cooked","food:rabbit",function()
|
node_implement("my_mobs","my_mobs:rabbit_cooked","food:rabbit",function()
|
||||||
node_implement("mobs","mobs:meat","food:rabbit",function()
|
node_implement("mobs","mobs:meat","food:rabbit",function()
|
||||||
minetest.register_craftitem("food:rabbit", {
|
minetest.register_craftitem("food:rabbit", {
|
||||||
description = "Cooked Rabbit",
|
description = "Cooked Rabbit",
|
||||||
inventory_image = "my_mobs_cooked_rabbit.png",
|
inventory_image = "my_mobs_cooked_rabbit.png",
|
||||||
|
|
||||||
on_use = minetest.item_eat(5),
|
on_use = minetest.item_eat(5),
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
print "Food [Support] - > Egg"
|
print "Food [Support] - > Egg"
|
||||||
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
||||||
minetest.register_craftitem("food:egg", {
|
minetest.register_craftitem("food:egg", {
|
||||||
description = "Egg",
|
description = "Egg",
|
||||||
image = "animalmaterials_egg.png",
|
image = "animalmaterials_egg.png",
|
||||||
stack_max=10
|
stack_max=10
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - > Milk"
|
print "Food [Support] - > Milk"
|
||||||
node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
|
node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
|
||||||
node_implement("my_mobs","my_mobs:milk_glass_cup","food:milk",function()
|
node_implement("my_mobs","my_mobs:milk_glass_cup","food:milk",function()
|
||||||
minetest.register_craftitem("food:milk", {
|
minetest.register_craftitem("food:milk", {
|
||||||
description = "Milk",
|
description = "Milk",
|
||||||
image = "animalmaterials_milk.png",
|
image = "animalmaterials_milk.png",
|
||||||
on_use = minetest.item_eat(1),
|
on_use = minetest.item_eat(1),
|
||||||
groups = { eatable=1 },
|
groups = { eatable=1 },
|
||||||
stack_max=10
|
stack_max=10
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - Vessels and Cutlery"
|
print "Food [Support] - Vessels and Cutlery"
|
||||||
|
|
||||||
node_implement("vessels","vessels:drinking_glass","food:cup",function()
|
node_implement("vessels","vessels:drinking_glass","food:cup",function()
|
||||||
node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
|
node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
|
||||||
minetest.register_craftitem("food:cup",{
|
minetest.register_craftitem("food:cup",{
|
||||||
description = "Glass",
|
description = "Glass",
|
||||||
tiles = {"food_cup.png"},
|
tiles = {"food_cup.png"},
|
||||||
inventory_image = "food_cup.png",
|
inventory_image = "food_cup.png",
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
BIN
textures/food_baked_potato.png
Normal file
BIN
textures/food_baked_potato.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 321 B |
BIN
textures/food_cactus_slice.png
Normal file
BIN
textures/food_cactus_slice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 726 B |
BIN
textures/food_potato.png
Normal file
BIN
textures/food_potato.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
Loading…
Reference in New Issue
Block a user