golden apple; stained clay

master
Martin Doege 2015-04-14 00:39:44 +02:00
parent 9c27a66306
commit 1d06de24d0
21 changed files with 60 additions and 0 deletions

View File

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

View File

@ -0,0 +1,22 @@
minetest.register_node("golden_apple:golden_apple", {
description = "Golden Apple",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"apple_golden.png"},
inventory_image = "apple_golden.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(20),
})
minetest.register_craft( {
output = "golden_apple:golden_apple",
recipe = {
{ "default:gold_ingot","default:gold_ingot","default:gold_ingot"},
{ "default:gold_ingot","default:apple", "default:gold_ingot"},
{ "default:gold_ingot","default:gold_ingot","default:gold_ingot"},
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

View File

@ -0,0 +1,36 @@
local colors = {
"White", "Black", "Light Blue", "Green", "Red",
"Light Gray", "Purple", "Lime", "Magenta", "Orange",
"Brown", "Blue", "Yellow", "Pink", "Cyan", "Gray"
}
minetest.register_node("hardenedclay:hardened_clay", {
description = "Hardened Clay",
tiles = {"hardened_clay.png"},
groups = {cracky=3},
})
minetest.register_craft({
type = "cooking",
output = "hardenedclay:hardened_clay",
recipe = "default:clay",
})
for _, color in pairs(colors) do
local nodecolor = color:lower():gsub(" ", "_")
minetest.register_node("hardenedclay:hardened_clay_"..nodecolor, {
description = color.." Stained Clay",
tiles = {"hardened_clay_stained_"..nodecolor..".png"},
groups = {cracky=3},
})
minetest.register_craft({
type = "shapeless",
output = 'hardenedclay:hardened_clay_'..nodecolor,
recipe = {
'dye:'..nodecolor, 'hardenedclay:hardened_clay',
}
})
minetest.register_alias("hardenedclay:"..nodecolor.."_hardened_clay",
"hardenedclay:hardened_clay_"..nodecolor)
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB