1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-12-23 00:10:18 +01:00

Added Buns, burgers, and cleared up graphics

This commit is contained in:
Rubenwardy 2012-09-01 19:17:55 +01:00
parent 0e01139e5a
commit 805bf35c17
10 changed files with 107 additions and 65 deletions

View File

@ -25,10 +25,12 @@ Diary
Sandwiches
* Venison Sandwich
* Cheese Sandwich
* Burger
Baking
* Bread
* Bread Slices
* Buns
Cakes
* Plain Cake

View File

@ -8,32 +8,16 @@
-- [regis-food] Bread
-- =====================================
print "RubenFood [Master] - Loading Crumbles"
--Crumbles
minetest.register_craftitem("food:crumble_rhubarb", {
description = "Rhubarb Crumble",
inventory_image = "food_crumble_rhubarb.png",
on_use = minetest.item_eat(30),
})
print "RubenFood [Master] - Loading Bread"
-- doughs
if not minetest.get_modpath("farming") then
minetest.register_craftitem("food:crumble_rhubarb_raw", {
description = "Raw Rhubarb Crumble",
inventory_image = "food_crumble_rhubarb_raw.png",
})
minetest.register_craft({
output = '"food:crumble_rhubarb_raw" 1',
recipe = {
{'"food:sugar"',"",""},
{'"food:flour"','"food:rhubarb"','"food:butter"'}
}
})
minetest.register_craft({
type = "cooking",
output = "food:crumble_rhubarb",
recipe = "food:crumble_rhubarb_raw",
else
minetest.register_craftitem(":farming:cake_mix", {
description = "Dough",
inventory_image = "farming_cake_mix.png",
})
end
minetest.register_craft({
output = '"food:bread_slice" 10',
@ -49,13 +33,30 @@ minetest.register_craftitem("food:bread_slice", {
})
print "RubenFood [Master] - Loading Dough"
-- doughs
if not minetest.get_modpath("farming") then
else
minetest.register_craftitem(":farming:cake_mix", {
description = "Dough",
inventory_image = "farming_cake_mix.png",
print "RubenFood [Master] - Loading Buns"
minetest.register_craftitem("food:bun_mix", {
description = "Bun Mix",
inventory_image = "food_bun_mix.png",
})
end
minetest.register_craftitem("food:bun", {
description = "Bun",
inventory_image = "food_bun.png",
on_use = minetest.item_eat(4),
})
minetest.register_craft({
type = "cooking",
output = "food:bun",
recipe = "food:bun_mix",
})
minetest.register_craft({
output = '"food:bun_mix" 5',
recipe = {
{"food:flour", "food:flour", "bucket:bucket_water"},
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
})

36
crumbles.lua Normal file
View File

@ -0,0 +1,36 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/crumbles.lua
-- adds crumbles
-- =====================================
-- [regis-food] Rhubarb Crumble
-- =====================================
print "RubenFood [Master] - Loading Crumbles"
--Crumbles
minetest.register_craftitem("food:crumble_rhubarb", {
description = "Rhubarb Crumble",
inventory_image = "food_crumble_rhubarb.png",
on_use = minetest.item_eat(30),
})
minetest.register_craftitem("food:crumble_rhubarb_raw", {
description = "Raw Rhubarb Crumble",
inventory_image = "food_crumble_rhubarb_raw.png",
})
minetest.register_craft({
output = '"food:crumble_rhubarb_raw" 1',
recipe = {
{'"food:sugar"',"",""},
{'"food:flour"','"food:rhubarb"','"food:butter"'}
}
})
minetest.register_craft({
type = "cooking",
output = "food:crumble_rhubarb",
recipe = "food:crumble_rhubarb_raw",
})

View File

@ -16,16 +16,8 @@ print ("RubenFood [Master] - Loading Juices")
--------------------------Apple Juice--------------------------
minetest.register_node("food:apple_juice", {
description = "Apple Juice",
visual_scale = 1.0,
tiles = {"food_juice_apple.png"},
inventory_image = "food_juice_apple.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(2),
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
@ -44,16 +36,8 @@ minetest.register_craft({
----------------------cactus juice----------------------------
minetest.register_node(":food:cactus_juice", {
description = "Cactuz Juice",
visual_scale = 1.0,
tiles = {"food_juice_cactus.png"},
inventory_image = "food_juice_cactus.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(2),
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
@ -90,16 +74,8 @@ minetest.register_craftitem(":food:coffeebean_cooked",{
minetest.register_node(":food:coffee", {
description = "Coffee",
visual_scale = 1.0,
tiles = {"food_coffee_cup.png"},
inventory_image = "food_coffee_cup.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(10),
sounds = default.node_sound_defaults(),
})
minetest.register_craft({

25
fruits.lua Normal file
View File

@ -0,0 +1,25 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/fruits.lua
-- adds fruits
-- =====================================
-- [regis-food] Oranges
-- =====================================
print ("RubenFood [Master] - Loading Fruits")
minetest.register_node(":default:orange", {
description = "Orange Fruit",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"food_orange.png"},
inventory_image = "food_orange.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(),
})

View File

@ -19,8 +19,9 @@ 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").."/crumbles.lua")
dofile(minetest.get_modpath("food").."/cakes.lua")
dofile(minetest.get_modpath("food").."/tarts.lua")
@ -32,7 +33,6 @@ dofile(minetest.get_modpath("food").."/drinks.lua")
minetest.register_craftitem("food:mug",{
description = "Mug",
tiles = {"food_mug.png"},
inventory_image = "food_mug.png",
})
@ -60,15 +60,8 @@ minetest.register_craft({
----------------------------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({

View File

@ -48,3 +48,12 @@ minetest.register_craft({
{"",'"food:bread_slice"',""},
}
})
minetest.register_craft({
output = '"food:burger" 1',
recipe = {
{"",'"food:bun"',""},
{"food:butter","food:meat",'"food:butter"'},
{"",'"food:bun"',""},
}
})

BIN
textures/food_bun.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

BIN
textures/food_bun_mix.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 580 B

After

Width:  |  Height:  |  Size: 545 B