1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-11-14 06:10:36 +01:00
food/init.lua
2012-09-01 18:07:06 +01:00

82 lines
2.1 KiB
Lua

-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/init.lua
-- inits the mod
-- =====================================
-- [regis-item] Cup
-- [craft] Cup
-- [regis-food] Cigerette (-4)
-- =====================================
print ("food: Loading mainframe: [Master]")
----------------------Load Files-----------------------------
dofile(minetest.get_modpath("food").."/support.lua")
dofile(minetest.get_modpath("food").."/oven.lua")
dofile(minetest.get_modpath("food").."/dairy.lua")
dofile(minetest.get_modpath("food").."/meats.lua")
dofile(minetest.get_modpath("food").."/sandwich.lua")
dofile(minetest.get_modpath("food").."/baking.lua")
dofile(minetest.get_modpath("food").."/cakes.lua")
dofile(minetest.get_modpath("food").."/tarts.lua")
dofile(minetest.get_modpath("food").."/drinks.lua")
----------------------------Cup------------------------------
minetest.register_craftitem("food:mug",{
description = "Mug",
tiles = {"food_mug.png"},
inventory_image = "food_mug.png",
})
minetest.register_craft({
output = '"food:cup" 4',
recipe = {
{"default:glass"},
{"default:glass"},
}
})
-----------------------------Sugar------------------------------
minetest.register_craftitem("food:sugar", {
description = "Sugar",
inventory_image = "food_sugar.png",
})
minetest.register_craft({
output = '"food:sugar" 20',
recipe = {
{'"default:papyrus"'},
}
})
----------------------------Cigerete----------------------------
minetest.register_node(":food:cigarette", {
description = "Cigarette",
visual_scale = 1.0,
tiles = {"food_cigar.png"},
inventory_image = "food_cigar.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(-4),
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
output = '"food:cigarette" 1',
recipe = {
{'"default:dry_shrub"','"default:dry_shrub"','"default:dry_shrub"'},
}
})
print("food: Mainframe loaded")