Added Textures and Tarts

This commit is contained in:
Rubenwardy 2012-08-31 14:56:59 +01:00
parent ba2dbaf466
commit 6bd71003a2
12 changed files with 87 additions and 27 deletions

View File

@ -35,32 +35,16 @@ minetest.register_craft({
recipe = "rubenfood:cakemix_choco", recipe = "rubenfood:cakemix_choco",
}) })
minetest.register_node("rubenfood:cake", { minetest.register_craftitem("rubenfood:cake", {
description = "Cake", description = "Cake",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_cake.png"},
inventory_image = "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), on_use = minetest.item_eat(30),
sounds = default.node_sound_defaults(),
}) })
minetest.register_node("rubenfood:cake_chocolate", { minetest.register_craftitem("rubenfood:cake_chocolate", {
description = "Chocolate Cake", description = "Chocolate Cake",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_cake_choco.png"},
inventory_image = "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), on_use = minetest.item_eat(40),
sounds = default.node_sound_defaults(),
}) })
@ -73,13 +57,13 @@ minetest.register_node("rubenfood:cake_chocolate", {
minetest.register_craft({ minetest.register_craft({
output = '"rubenfood:cakemix_plain" 1', output = '"rubenfood:cakemix_plain" 1',
recipe = { recipe = {
{'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'}, {'"rubenfood:flour"',"",'"rubenfood:egg"'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = '"rubenfood:cakemix_choco" 1', output = '"rubenfood:cakemix_choco" 1',
recipe = { recipe = {
{'""','"default:dirt"','""'}, {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'}, {'""','"default:dirt"','""'}, {'"rubenfood:flour"',"",'"rubenfood:egg"'},
} }
}) })

View File

@ -2,7 +2,7 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ====================================== -- ======================================
-- >> rubenfood/support.lua -- >> rubenfood/diary.lua
-- adds diary products -- adds diary products
-- ====================================== -- ======================================
-- [regis-food] Cheese -- [regis-food] Cheese
@ -11,6 +11,31 @@
-- [craft] Butter -- [craft] Butter
-- ====================================== -- ======================================
minetest.register_craftitem("rubenfood:butter", {
description = "Butter",
inventory_image = "ruben_butter.png",
})
minetest.register_craftitem("rubenfood:cheese", {
description = "Cheese",
inventory_image = "ruben_cheese.png",
on_use = minetest.item_eat(4),
})
minetest.register_craft({
output = '"rubenfood:butter" 1',
recipe = {
{'"rubenfood:milk"','"rubenfood:milk"'},
}
})
minetest.register_craft({
output = '"rubenfood:cheese" 1',
recipe = {
{'"rubenfood:butter"','"rubenfood:butter"'},
}
})

View File

@ -16,7 +16,7 @@ print ("RubenFood [Master] - Loading Juices")
--------------------------Apple Juice-------------------------- --------------------------Apple Juice--------------------------
minetest.register_node(":rubenfood:apple_juice", { minetest.register_node(":rubenfood:apple_juice", {
description = "Apple Juice", description = "Apple Juice",
drawtype = "plantlike",
visual_scale = 1.0, visual_scale = 1.0,
tiles = {"ruben_juice_apple.png"}, tiles = {"ruben_juice_apple.png"},
inventory_image = "ruben_juice_apple.png", inventory_image = "ruben_juice_apple.png",
@ -44,7 +44,7 @@ minetest.register_craft({
----------------------cactus juice---------------------------- ----------------------cactus juice----------------------------
minetest.register_node(":rubenfood:cactus_juice", { minetest.register_node(":rubenfood:cactus_juice", {
description = "Cactuz Juice", description = "Cactuz Juice",
drawtype = "plantlike",
visual_scale = 1.0, visual_scale = 1.0,
tiles = {"ruben_juice_cactus.png"}, tiles = {"ruben_juice_cactus.png"},
inventory_image = "ruben_juice_cactus.png", inventory_image = "ruben_juice_cactus.png",
@ -90,7 +90,7 @@ minetest.register_craftitem(":rubenfood:coffeebean_cooked",{
minetest.register_node(":rubenfood:coffee", { minetest.register_node(":rubenfood:coffee", {
description = "Coffee", description = "Coffee",
drawtype = "plantlike",
visual_scale = 1.0, visual_scale = 1.0,
tiles = {"ruben_coffee_cup.png"}, tiles = {"ruben_coffee_cup.png"},
inventory_image = "ruben_coffee_cup.png", inventory_image = "ruben_coffee_cup.png",

View File

@ -18,9 +18,10 @@ 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").."/tarts.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")
@ -44,7 +45,6 @@ minetest.register_craft({
----------------------------Cigerete---------------------------- ----------------------------Cigerete----------------------------
minetest.register_node(":rubenfood:cigarette", { minetest.register_node(":rubenfood:cigarette", {
description = "Cigarette", description = "Cigarette",
drawtype = "plantlike",
visual_scale = 1.0, visual_scale = 1.0,
tiles = {"ruben_cigar.png"}, tiles = {"ruben_cigar.png"},
inventory_image = "ruben_cigar.png", inventory_image = "ruben_cigar.png",

View File

@ -4,7 +4,6 @@
-- ====================================== -- ======================================
-- >> rubenfood/support.lua -- >> rubenfood/support.lua
-- adds support for other mods -- adds support for other mods
-- adds items and aliases that are needed
-- ====================================== -- ======================================
-- [support] -- [support]
-- ====================================== -- ======================================

52
tarts.lua Normal file
View File

@ -0,0 +1,52 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/tarts.lua
-- adds diary products
-- ======================================
-- [regis-food] Strawberry Tart
-- ======================================
print "RubenFood [Master] - Loading Tarts"
minetest.register_craftitem("rubenfood:tart_strawberry", {
description = "Strawberry Tart",
inventory_image = "ruben_tart_strawberry.png",
on_use = minetest.item_eat(30),
})
minetest.register_craftitem("rubenfood:tart_base", {
description = "Tart Base",
inventory_image = "ruben_tart_base.png",
})
minetest.register_craftitem("rubenfood:tart_base_raw", {
description = "Raw Tart Base",
inventory_image = "ruben_tart_base_raw.png",
})
minetest.register_craft({
type = "cooking",
output = "rubenfood:tart_base",
recipe = "rubenfood:tart_base_raw",
})
minetest.register_craft({
output = '"rubenfood:tart_strawberry" 1',
recipe = {
{'"rubenfood:strawberry"'},{'"rubenfood:tart_base"'},
}
})
minetest.register_craft({
output = '"rubenfood:tart_base_raw" 1',
recipe = {
{'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
}
})

BIN
textures/ruben_butter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

BIN
textures/ruben_cheese.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 867 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B