summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2012-09-01 19:17:55 +0100
committerRubenwardy <anjayward@gmail.com>2012-09-01 19:17:55 +0100
commit805bf35c176e1a8881996fada0016ec29bfafcd0 (patch)
tree87e12bec14c300f6f5c7ecd574ef1b2cfd20af94
parent0e01139e5a5d67966429aa2208f02955d5011cbe (diff)
Added Buns, burgers, and cleared up graphics
-rw-r--r--README.md2
-rw-r--r--baking.lua65
-rw-r--r--crumbles.lua36
-rw-r--r--drinks.lua24
-rw-r--r--fruits.lua25
-rw-r--r--init.lua11
-rw-r--r--sandwich.lua9
-rw-r--r--textures/food_bun.pngbin0 -> 457 bytes
-rw-r--r--textures/food_bun_mix.pngbin0 -> 474 bytes
-rw-r--r--textures/food_sw_cheese.pngbin580 -> 545 bytes
10 files changed, 107 insertions, 65 deletions
diff --git a/README.md b/README.md
index 32c0f3a..260ef15 100644
--- a/README.md
+++ b/README.md
@@ -25,10 +25,12 @@ Diary
Sandwiches
* Venison Sandwich
* Cheese Sandwich
+* Burger
Baking
* Bread
* Bread Slices
+* Buns
Cakes
* Plain Cake
diff --git a/baking.lua b/baking.lua
index 850c28e..41b8eb6 100644
--- a/baking.lua
+++ b/baking.lua
@@ -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),
-})
-
-minetest.register_craftitem("food:crumble_rhubarb_raw", {
- description = "Raw Rhubarb Crumble",
- inventory_image = "food_crumble_rhubarb_raw.png",
-})
+print "RubenFood [Master] - Loading Bread"
+-- doughs
+if not minetest.get_modpath("farming") then
-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",
+})
+
+minetest.register_craftitem("food:bun", {
+ description = "Bun",
+ inventory_image = "food_bun.png",
+ on_use = minetest.item_eat(4),
})
-end \ No newline at end of file
+
+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"}}
+}) \ No newline at end of file
diff --git a/crumbles.lua b/crumbles.lua
new file mode 100644
index 0000000..402140c
--- /dev/null
+++ b/crumbles.lua
@@ -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",
+}) \ No newline at end of file
diff --git a/drinks.lua b/drinks.lua
index b518263..e689b0d 100644
--- a/drinks.lua
+++ b/drinks.lua
@@ -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({
diff --git a/fruits.lua b/fruits.lua
new file mode 100644
index 0000000..7322f7d
--- /dev/null
+++ b/fruits.lua
@@ -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(),
+}) \ No newline at end of file
diff --git a/init.lua b/init.lua
index 565a33b..0843b60 100644
--- a/init.lua
+++ b/init.lua
@@ -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({
diff --git a/sandwich.lua b/sandwich.lua
index ddb8693..9151bdd 100644
--- a/sandwich.lua
+++ b/sandwich.lua
@@ -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"',""},
+ }
+})
diff --git a/textures/food_bun.png b/textures/food_bun.png
new file mode 100644
index 0000000..abbe121
--- /dev/null
+++ b/textures/food_bun.png
Binary files differ
diff --git a/textures/food_bun_mix.png b/textures/food_bun_mix.png
new file mode 100644
index 0000000..ac2e7f4
--- /dev/null
+++ b/textures/food_bun_mix.png
Binary files differ
diff --git a/textures/food_sw_cheese.png b/textures/food_sw_cheese.png
index be5f84b..d025e8f 100644
--- a/textures/food_sw_cheese.png
+++ b/textures/food_sw_cheese.png
Binary files differ