diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | baking.lua | 65 | ||||
-rw-r--r-- | crumbles.lua | 36 | ||||
-rw-r--r-- | drinks.lua | 24 | ||||
-rw-r--r-- | fruits.lua | 25 | ||||
-rw-r--r-- | init.lua | 11 | ||||
-rw-r--r-- | sandwich.lua | 9 | ||||
-rw-r--r-- | textures/food_bun.png | bin | 0 -> 457 bytes | |||
-rw-r--r-- | textures/food_bun_mix.png | bin | 0 -> 474 bytes | |||
-rw-r--r-- | textures/food_sw_cheese.png | bin | 580 -> 545 bytes |
10 files changed, 107 insertions, 65 deletions
@@ -25,10 +25,12 @@ Diary Sandwiches
* Venison Sandwich
* Cheese Sandwich
+* Burger
Baking
* Bread
* Bread Slices
+* Buns
Cakes
* Plain Cake
@@ -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 @@ -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 @@ -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 Binary files differnew file mode 100644 index 0000000..abbe121 --- /dev/null +++ b/textures/food_bun.png diff --git a/textures/food_bun_mix.png b/textures/food_bun_mix.png Binary files differnew file mode 100644 index 0000000..ac2e7f4 --- /dev/null +++ b/textures/food_bun_mix.png diff --git a/textures/food_sw_cheese.png b/textures/food_sw_cheese.png Binary files differindex be5f84b..d025e8f 100644 --- a/textures/food_sw_cheese.png +++ b/textures/food_sw_cheese.png |