Strawberry Cake added.

This commit is contained in:
A.C.M 2020-04-02 00:58:14 +02:00
parent 5f459767dd
commit c86bcc163b
10 changed files with 70 additions and 3 deletions

View File

@ -1,3 +1,4 @@
Sea Strawbery Cake added.
Sea Cucumber added.
Salt added.
description.txt added.

View File

@ -60,4 +60,8 @@ default
## optional Depends
hunger_ng<br>
hunger<br>
diet
diet<br>
signs_bot<br>
dye<br>
farming<br>
bucket<br>

View File

@ -30,5 +30,11 @@ Sea Salt=Meersalz
dry=getrocknet
### sea_strawberry.lua ###
### sea_strawberry_recipes.lua ###
Sea Strawberry=Meeres Erdbeeren
### sea_strawberry_recipes.lua ###
Cake=Kuchen
Piece=Stück

View File

@ -30,5 +30,11 @@ Sea Salt=
dry=
### sea_strawberry.lua ###
### sea_strawberry_recipes.lua ###
Sea Strawberry=
### sea_strawberry_recipes.lua ###
Cake=
Piece=

View File

@ -1,3 +1,3 @@
name = aqua_farming
depends = default
optional_depends = hunger_ng, hunger, diet, signs_bot
optional_depends = hunger_ng, hunger, diet, signs_bot, dye, farming, bucket

View File

@ -43,4 +43,6 @@ if(signs_bot) then
end
dofile(aqua_farming.modpath .. "/sea_strawberry_recipes.lua")
aqua_farming.report(" module " .. name .. ".lua loaded.")

View File

@ -0,0 +1,47 @@
local S = aqua_farming.S
local name = "aqua_farming:sea_strawberry"
local desc = S("Sea Strawberry")
minetest.register_craftitem(name .. "_cake", {
description = desc .. " " .. S("Cake"),
groups = {food = 1, food_vegan = 1, food_sweet = 1},
inventory_image = "aqua_farming_" .. name:split(":")[2] .. "_cake.png",
})
minetest.register_craftitem(name .. "_cake_piece", {
description = desc .. " " .. S("Cake") .. " " .. S("Piece"),
groups = {food = 1, food_vegan = 1, food_sweet = 1},
inventory_image = "aqua_farming_" .. name:split(":")[2] .. "_cake_piece.png",
on_use = minetest.item_eat(3)
})
minetest.register_craft({
output = name .. "_cake",
recipe = {
{name .. "_item", name .. "_item", name .. "_item"},
{"group:food_flour", "dye:pink", "group:food_flour"},
{"", "bucket:bucket_water", ""},
},
replacements = {
{"bucket:bucket_water", "bucket:bucket_empty"},
},
})
minetest.register_craft({
output = name .. "_cake",
recipe = {
{name .. "_item", name .. "_item", name .. "_item"},
{"group:food_flour", "dye:pink", "group:food_flour"},
{"", "bucket:bucket_river_water", ""},
},
replacements = {
{"bucket:bucket_river_water", "bucket:bucket_empty"},
},
})
minetest.register_craft({
output = name .. "_cake_piece 8",
recipe = {
{name .. "_cake"},
},
})

View File

@ -4,7 +4,8 @@
{'aqua_farming:alga_items', 1, nil, nil, nil, nil},
{'aqua_farming:sea_strawberry_item', 3, nil, nil, nil, nil},
{'aqua_farming:sea_anemone_item', 3, nil, nil, 1, nil},
{'aqua_farming:sea_cucumber_item', 4, nil, nil, nil, nil},
{'aqua_farming:sea_cucumber_item', 4, nil, nil, nil, nil},
{'aqua_farming:sea_strawberry_cake_piece', 4, nil, nil, nil, nil},
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B