Reverted to Extension Design. Added stuff
0
modpack.txt
Normal file
@ -16,15 +16,14 @@ minetest.register_craftitem("rubenfood: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", "rubenfood:flour", "rubenfood:flour", "bucket:bucket_water"},
|
||||
recipe = {"rubenfood:flour","rubenfood:flour", "bucket:bucket_water"},
|
||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
||||
})
|
||||
|
||||
|
||||
--plain bread
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "rubenfood:bread",
|
||||
@ -32,6 +31,8 @@ minetest.register_craft({
|
||||
cooktime = 10
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
minetest.register_craftitem("rubenfood:bread", {
|
||||
description = "Bread",
|
||||
inventory_image = "ruben_bread.png",
|
@ -11,13 +11,13 @@
|
||||
print("RubenFood [Master] - Loading Cakes")
|
||||
|
||||
--------------------------Cakes-------------------------
|
||||
minetest.register_craftitem(":rubenfood:cakemix_plain",{
|
||||
minetest.register_craftitem("rubenfood:cakemix_plain",{
|
||||
description = "Cake Mix",
|
||||
tiles = {"ruben_pastry.png"},
|
||||
inventory_image = "ruben_pastry.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(":rubenfood:cakemix_choco",{
|
||||
minetest.register_craftitem("rubenfood:cakemix_choco",{
|
||||
description = "Chocolate Cake Mix",
|
||||
tiles = {"ruben_pastry_choco.png"},
|
||||
inventory_image = "ruben_pastry_choco.png",
|
||||
@ -35,7 +35,7 @@ minetest.register_craft({
|
||||
recipe = "rubenfood:cakemix_choco",
|
||||
})
|
||||
|
||||
minetest.register_node(":rubenfood:cake", {
|
||||
minetest.register_node("rubenfood:cake", {
|
||||
description = "Cake",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
@ -49,7 +49,7 @@ minetest.register_node(":rubenfood:cake", {
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(":rubenfood:cake_chocolate", {
|
||||
minetest.register_node("rubenfood:cake_chocolate", {
|
||||
description = "Chocolate Cake",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
21
rubenfood/dairy.lua
Normal 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
|
||||
-- ======================================
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -13,25 +13,35 @@
|
||||
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")
|
||||
|
||||
dofile(minetest.get_modpath("rubenfood").."/support.lua")
|
||||
|
||||
|
||||
----------------------------Cup------------------------------
|
||||
minetest.register_craftitem(":rubenfood:cup",{
|
||||
minetest.register_alias("rubenfood:cup","animalmaterials:glass")
|
||||
minetest.register_craftitem(":animalmaterials:glass",{
|
||||
description = "Cup",
|
||||
tiles = {"ruben_coffee.png"},
|
||||
inventory_image = "ruben_coffee.png",
|
||||
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 = {
|
||||
{'"bucket:bucket_water"'},
|
||||
{"default:glass"},
|
||||
{"default:glass"},
|
||||
}
|
||||
})
|
||||
|
Before Width: | Height: | Size: 672 B After Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 559 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 918 B After Width: | Height: | Size: 918 B |
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 908 B |
Before Width: | Height: | Size: 942 B After Width: | Height: | Size: 942 B |
BIN
rubenfood/textures/ruben_cigar.png
Normal file
After Width: | Height: | Size: 693 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 895 B After Width: | Height: | Size: 895 B |
BIN
rubenfood/textures/ruben_coffee_cup.png
Normal file
After Width: | Height: | Size: 873 B |
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 564 B |
BIN
rubenfood/textures/ruben_juice_apple.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
rubenfood/textures/ruben_mug.png
Normal file
After Width: | Height: | Size: 780 B |
BIN
rubenfood/textures/ruben_pastry.png
Normal file
After Width: | Height: | Size: 842 B |
Before Width: | Height: | Size: 854 B After Width: | Height: | Size: 854 B |
2
rubenfood_animals/init.lua
Normal file
@ -0,0 +1,2 @@
|
||||
minetest.register_alias("rubenfood:milk","animalmaterials:milk")
|
||||
minetest.register_alias("rubenfood:egg","animalmaterials:egg")
|
1
rubenfood_farming/init.lua
Normal file
@ -0,0 +1 @@
|
||||
minetest.register_alias("rubenfood:flour","farming:flour")
|
53
support.lua
@ -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
|
||||
})
|
Before Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 807 B |