added more cupcakes
|
@ -1,17 +0,0 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
|
@ -1,2 +1,3 @@
|
|||
farming
|
||||
dye
|
||||
dye
|
||||
mobs
|
||||
|
|
38
init.lua
|
@ -2,6 +2,44 @@
|
|||
-- cupcake texture by TacoBella
|
||||
-- sugar texture by TenPlus?
|
||||
|
||||
local cupcake = {}
|
||||
|
||||
cupcake.colours = {
|
||||
{"black", "Black"},
|
||||
{"blue", "Blue"},
|
||||
{"brown", "Brown"},
|
||||
{"cyan", "Cyan"},
|
||||
{"dark_green", "Dark Green"},
|
||||
{"green", "Green"},
|
||||
{"magenta", "Magenta"},
|
||||
{"orange", "Orange"},
|
||||
{"pink", "Pink"},
|
||||
{"red", "Red"},
|
||||
{"violet", "Violet"},
|
||||
{"white", "White"},
|
||||
{"yellow", "Yellow"},
|
||||
}
|
||||
|
||||
for _, row in ipairs(cupcake.colours) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
|
||||
minetest.register_craftitem("more_cupcakes:"..name.."_cupcake", {
|
||||
description = desc.." Cupcake",
|
||||
inventory_image = "morecupcakes_"..name.."_cupcake.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "more_cupcakes:"..name.."_cupcake",
|
||||
recipe = {
|
||||
{"", "dye:"..name, ""},
|
||||
{ "farming:flour", "farming:sugar", "mobs:bucket_milk" },
|
||||
{"default:paper", "default:paper","default:paper"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craftitem("more_cupcakes:cupcake_bow", {
|
||||
description = "Cupcake with a bow",
|
||||
inventory_image = "morecupcakes_cupcake4.png",
|
||||
|
|
After Width: | Height: | Size: 709 B |
After Width: | Height: | Size: 768 B |
After Width: | Height: | Size: 646 B |
After Width: | Height: | Size: 747 B |
After Width: | Height: | Size: 778 B |
After Width: | Height: | Size: 775 B |
After Width: | Height: | Size: 752 B |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 753 B |
After Width: | Height: | Size: 763 B |
After Width: | Height: | Size: 769 B |
After Width: | Height: | Size: 710 B |
After Width: | Height: | Size: 731 B |