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

41
rubenfood/baking.lua Normal file
View File

@@ -0,0 +1,41 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/baking.lua
-- adds bread and pies
-- =====================================
-- [regis-food] Bread
-- =====================================
-- doughs
minetest.register_craftitem("rubenfood:dough", {
description = "Dough",
inventory_image = "farming_cake_mix.png",
})
if add_bread_craft then
minetest.register_craft({
output = "rubenfood:dough",
type = "shapeless",
recipe = {"rubenfood:flour","rubenfood:flour", "bucket:bucket_water"},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
})
minetest.register_craft({
type = "cooking",
output = "rubenfood:bread",
recipe = "rubenfood:dough",
cooktime = 10
})
end
minetest.register_craftitem("rubenfood:bread", {
description = "Bread",
inventory_image = "ruben_bread.png",
stack_max = 1,
on_use = minetest.item_eat(10)
})

85
rubenfood/cakes.lua Normal file
View File

@@ -0,0 +1,85 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/cakes.lua
-- adds cakes
-- =====================================
-- [regis-food] Plain Cake
-- [regis-food] Chocolate Cake
-- =====================================
print("RubenFood [Master] - Loading Cakes")
--------------------------Cakes-------------------------
minetest.register_craftitem("rubenfood:cakemix_plain",{
description = "Cake Mix",
tiles = {"ruben_pastry.png"},
inventory_image = "ruben_pastry.png",
})
minetest.register_craftitem("rubenfood:cakemix_choco",{
description = "Chocolate Cake Mix",
tiles = {"ruben_pastry_choco.png"},
inventory_image = "ruben_pastry_choco.png",
})
minetest.register_craft({
type = "cooking",
output = "rubenfood:cake",
recipe = "rubenfood:cakemix_plain",
})
minetest.register_craft({
type = "cooking",
output = "rubenfood:cake_chocolate",
recipe = "rubenfood:cakemix_choco",
})
minetest.register_node("rubenfood:cake", {
description = "Cake",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_cake.png"},
inventory_image = "ruben_cake.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(30),
sounds = default.node_sound_defaults(),
})
minetest.register_node("rubenfood:cake_chocolate", {
description = "Chocolate Cake",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_cake_choco.png"},
inventory_image = "ruben_cake_choco.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(40),
sounds = default.node_sound_defaults(),
})
----------------------------- Cake Pastry ----------------------------
minetest.register_craft({
output = '"rubenfood:cakemix_plain" 1',
recipe = {
{'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
}
})
minetest.register_craft({
output = '"rubenfood:cakemix_choco" 1',
recipe = {
{'""','"default:dirt"','""'}, {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
}
})

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
-- ======================================

2
rubenfood/depends.txt Normal file
View File

@@ -0,0 +1,2 @@
default
bucket

131
rubenfood/drinks.lua Normal file
View File

@@ -0,0 +1,131 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks.lua
-- adds drinks
-- =====================================
-- [regis-food] Apple Juice
-- [craft] Cactus Juice
-- [regis-food] Cactus Juice
-- [craft] Cactus Juice
-- =====================================
print ("RubenFood [Master] - Loading Juices")
--------------------------Apple Juice--------------------------
minetest.register_node(":rubenfood:apple_juice", {
description = "Apple Juice",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_juice_apple.png"},
inventory_image = "ruben_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({
output = '"rubenfood:apple_juice" 4',
recipe = {
{'""','""','""'},
{'""','"default:apple"','""'},
{'""','"rubenfood:cup"','""'},
}
})
----------------------cactus juice----------------------------
minetest.register_node(":rubenfood:cactus_juice", {
description = "Cactuz Juice",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_juice_cactus.png"},
inventory_image = "ruben_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({
output = '"rubenfood:cactus_juice" 4',
recipe = {
{'""','""','""'},
{'""','"default:cactus"','""'},
{'""','"rubenfood:cup"','""'},
}
})
-----------------------------Coffee-----------------------------
minetest.register_craftitem(":rubenfood:coffeebean",{
description = "Raw Coffee Bean",
tiles = {"ruben_coffee.png"},
inventory_image = "ruben_coffee.png",
})
minetest.register_craftitem(":rubenfood:coffeebean_cooked",{
description = "Cooked Coffee Bean",
tiles = {"ruben_coffee_cooked.png"},
inventory_image = "ruben_coffee_cooked.png",
})
minetest.register_node(":rubenfood:coffee", {
description = "Coffee",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_coffee_cup.png"},
inventory_image = "ruben_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({
output = '"rubenfood:coffeebean" 1',
recipe = {
{'""','"default:dry_shrub"','""'},
{'""','"default:dry_shrub"','""'},
{'""','"default:dry_shrub"','""'},
}
})
minetest.register_craft({
output = '"rubenfood:coffee" 1',
recipe = {
{'""','"rubenfood:coffeebean_cooked"','""'},
{'""','"rubenfood:coffeebean_cooked"','""'},
{'""','"rubenfood:cup"','""'},
}
})
minetest.register_craft({
type = "cooking",
output = "rubenfood:coffeebean_cooked",
recipe = "rubenfood:coffeebean",
})

25
rubenfood/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 = {"ruben_orange.png"},
inventory_image = "ruben_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(),
})

72
rubenfood/init.lua Normal file
View File

@@ -0,0 +1,72 @@
-- 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 ("RubenFood: Loading mainframe: [Master]")
----------------------Load Files-----------------------------
dofile(minetest.get_modpath("rubenfood").."/dairy.lua")
dofile(minetest.get_modpath("rubenfood").."/baking.lua")
dofile(minetest.get_modpath("rubenfood").."/cakes.lua")
dofile(minetest.get_modpath("rubenfood").."/drinks.lua")
dofile(minetest.get_modpath("rubenfood").."/fruits.lua")
----------------------------Cup------------------------------
minetest.register_alias("rubenfood:cup","animalmaterials:glass")
minetest.register_craftitem(":animalmaterials:glass",{
description = "Cup",
tiles = {"ruben_cup.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({
output = '"rubenfood:cup" 4',
recipe = {
{"default:glass"},
{"default:glass"},
}
})
----------------------------Cigerete----------------------------
minetest.register_node(":rubenfood:cigarette", {
description = "Cigarette",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_cigar.png"},
inventory_image = "ruben_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 = '"rubenfood:cigarette" 1',
recipe = {
{'"default:dry_shrub"','"default:dry_shrub"','"default:dry_shrub"'},
}
})
print("Rubenfood: Mainframe loaded")

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 B