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

Reverted to Extension Design. Added stuff

This commit is contained in:
Rubenwardy 2012-08-30 20:27:32 +01:00
parent 97667792fd
commit 39b6184a87
29 changed files with 47 additions and 65 deletions

0
modpack.txt Normal file
View File

View File

@ -16,15 +16,14 @@ minetest.register_craftitem("rubenfood:dough", {
inventory_image = "farming_cake_mix.png", inventory_image = "farming_cake_mix.png",
}) })
if add_bread_craft then
minetest.register_craft({ minetest.register_craft({
output = "rubenfood:dough", output = "rubenfood:dough",
type = "shapeless", type = "shapeless",
recipe = {"rubenfood:flour", "rubenfood:flour", "rubenfood:flour", "rubenfood:flour", "bucket:bucket_water"}, recipe = {"rubenfood:flour","rubenfood:flour", "bucket:bucket_water"},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
}) })
--plain bread
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "rubenfood:bread", output = "rubenfood:bread",
@ -32,6 +31,8 @@ minetest.register_craft({
cooktime = 10 cooktime = 10
}) })
end
minetest.register_craftitem("rubenfood:bread", { minetest.register_craftitem("rubenfood:bread", {
description = "Bread", description = "Bread",
inventory_image = "ruben_bread.png", inventory_image = "ruben_bread.png",

View File

@ -11,13 +11,13 @@
print("RubenFood [Master] - Loading Cakes") print("RubenFood [Master] - Loading Cakes")
--------------------------Cakes------------------------- --------------------------Cakes-------------------------
minetest.register_craftitem(":rubenfood:cakemix_plain",{ minetest.register_craftitem("rubenfood:cakemix_plain",{
description = "Cake Mix", description = "Cake Mix",
tiles = {"ruben_pastry.png"}, tiles = {"ruben_pastry.png"},
inventory_image = "ruben_pastry.png", inventory_image = "ruben_pastry.png",
}) })
minetest.register_craftitem(":rubenfood:cakemix_choco",{ minetest.register_craftitem("rubenfood:cakemix_choco",{
description = "Chocolate Cake Mix", description = "Chocolate Cake Mix",
tiles = {"ruben_pastry_choco.png"}, tiles = {"ruben_pastry_choco.png"},
inventory_image = "ruben_pastry_choco.png", inventory_image = "ruben_pastry_choco.png",
@ -35,7 +35,7 @@ minetest.register_craft({
recipe = "rubenfood:cakemix_choco", recipe = "rubenfood:cakemix_choco",
}) })
minetest.register_node(":rubenfood:cake", { minetest.register_node("rubenfood:cake", {
description = "Cake", description = "Cake",
drawtype = "plantlike", drawtype = "plantlike",
visual_scale = 1.0, visual_scale = 1.0,
@ -49,7 +49,7 @@ minetest.register_node(":rubenfood:cake", {
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),
}) })
minetest.register_node(":rubenfood:cake_chocolate", { minetest.register_node("rubenfood:cake_chocolate", {
description = "Chocolate Cake", description = "Chocolate Cake",
drawtype = "plantlike", drawtype = "plantlike",
visual_scale = 1.0, visual_scale = 1.0,

21
rubenfood/dairy.lua Normal file
View File

@ -0,0 +1,21 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/support.lua
-- adds support for other mods
-- adds items and aliases that are needed
-- ======================================
-- [regis-item] Flour
-- [regis-item] Milk
-- [regis-item] Egg
-- [regis-food] Cheese
-- [craft] Cheese
-- [regis-item] Butter
-- [craft] Butter
-- ======================================

View File

@ -13,25 +13,35 @@
print ("RubenFood: Loading mainframe: [Master]") print ("RubenFood: Loading mainframe: [Master]")
----------------------Load Files----------------------------- ----------------------Load Files-----------------------------
dofile(minetest.get_modpath("rubenfood").."/dairy.lua")
dofile(minetest.get_modpath("rubenfood").."/baking.lua") dofile(minetest.get_modpath("rubenfood").."/baking.lua")
dofile(minetest.get_modpath("rubenfood").."/cakes.lua") dofile(minetest.get_modpath("rubenfood").."/cakes.lua")
dofile(minetest.get_modpath("rubenfood").."/drinks.lua") dofile(minetest.get_modpath("rubenfood").."/drinks.lua")
dofile(minetest.get_modpath("rubenfood").."/fruits.lua") dofile(minetest.get_modpath("rubenfood").."/fruits.lua")
dofile(minetest.get_modpath("rubenfood").."/support.lua")
----------------------------Cup------------------------------ ----------------------------Cup------------------------------
minetest.register_craftitem(":rubenfood:cup",{ minetest.register_alias("rubenfood:cup","animalmaterials:glass")
minetest.register_craftitem(":animalmaterials:glass",{
description = "Cup", description = "Cup",
tiles = {"ruben_coffee.png"}, tiles = {"ruben_cup.png"},
inventory_image = "ruben_coffee.png", inventory_image = "ruben_cup.png",
})
minetest.register_craftitem("rubenfood:mug",{
description = "Mug",
tiles = {"ruben_mug.png"},
inventory_image = "ruben_mug.png",
}) })
minetest.register_craft({ minetest.register_craft({
output = '"rubenfood:cup" 4', output = '"rubenfood:cup" 4',
recipe = { recipe = {
{'"bucket:bucket_water"'}, {"default:glass"},
{"default:glass"},
} }
}) })

View File

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

View File

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 559 B

View File

Before

Width:  |  Height:  |  Size: 918 B

After

Width:  |  Height:  |  Size: 918 B

View File

Before

Width:  |  Height:  |  Size: 908 B

After

Width:  |  Height:  |  Size: 908 B

View File

Before

Width:  |  Height:  |  Size: 942 B

After

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 895 B

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

View File

Before

Width:  |  Height:  |  Size: 564 B

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 B

View File

Before

Width:  |  Height:  |  Size: 854 B

After

Width:  |  Height:  |  Size: 854 B

View File

@ -0,0 +1,2 @@
minetest.register_alias("rubenfood:milk","animalmaterials:milk")
minetest.register_alias("rubenfood:egg","animalmaterials:egg")

View File

@ -0,0 +1 @@
minetest.register_alias("rubenfood:flour","farming:flour")

View File

@ -1,53 +0,0 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/support.lua
-- adds support for other modss
-- adds items and aliases that are needed
-- ======================================
-- [regis-item] Flour
-- [regis-item] Milk
-- [regis-item] Egg
-- [regis-food] Cheese
-- [craft] Cheese
-- [regis-item] Butter
-- [craft] Butter
-- ======================================
------------------------------------aliases------------------------------------
minetest.register_alias("farming:flour","rubenfood:flour")
minetest.register_alias("farming:cake_mix", "rubenfood:dough")
minetest.register_alias("farming:bread", "rubenfood:bread")
minetest.register_alias("animalmaterials:milk","rubenfood:milk")
minetest.register_alias("animalmaterials:egg","rubenfood:egg")
------------------------------------farming------------------------------------
minetest.register_craftitem("rubenfood:flour", {
description = "Flour",
inventory_image = "farming_flour.png",
})
------------------------------------animals------------------------------------
minetest.register_craftitem("rubenfood:milk", {
description = "Milk",
image = "animalmaterials_milk.png",
on_use = minetest.item_eat(1),
groups = { eatable=1 },
stack_max=10
})
minetest.register_craftitem("rubenfood:egg", {
description = "Egg",
image = "animalmaterials_egg.png",
stack_max=10
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 807 B