add Xychoridite

master
Kacey of Minetest 2013-04-13 11:38:26 -06:00
parent 1fb4a895ad
commit 53f5164f4c
4 changed files with 35 additions and 3 deletions

0
craft.lua Normal file
View File

0
dye.lua Normal file
View File

View File

@ -1,6 +1,6 @@
minetest.register_node("xytest:stone_with_ore", {
minetest.register_node("xytest:stone_with_xychorium", {
description = "Xychorium Ore",
tiles = {"default_stone.png^xytest_ore.png"},
tiles = {"default_stone.png^xytest_xychorium.png"},
is_ground_content = true,
groups = {cracky=3},
drop = 'xytest:xychorium',
@ -8,7 +8,7 @@ minetest.register_node("xytest:stone_with_ore", {
})
minetest.register_ore({
ore_type = "scatter",
ore = "xytest:stone_with_ore",
ore = "xytest:stone_with_xychorium",
wherein = "default:stone",
clust_scarcity = 8*8*8,
clust_num_ores = 8,
@ -77,3 +77,6 @@ for _, row in ipairs(xytest.dyes) do
})
end
end
dofile(minetest.get_modpath("xytest").."/craft.lua")
dofile(minetest.get_modpath("xytest").."/dye.lua")
dofile(minetest.get_modpath("xytest").."/xychoridite.lua")

29
xychoridite.lua Normal file
View File

@ -0,0 +1,29 @@
minetest.register_node("xytest:stone_with_xychoridite", {
description = "Xychorium Ore",
tiles = {"default_stone.png^xytest_xychoridite.png"},
is_ground_content = true,
groups = {cracky=3},
drop = 'xytest:xychoridite',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_ore({
ore_type = "scatter",
ore = "xytest:stone_with_xychoridite",
wherein = "default:stone",
clust_scarcity = 8*8*8,
clust_num_ores = 8,
clust_size = 3,
height_min = -31000,
height_max = 64,
})
minetest.register_craftitem("xytest:xychoridite", {
description = "Xychoridite",
inventory_image = "xytest_xychoridite.png",
})
minetest.register_craft({
output = 'xytest:xychorium',
recipe = {
{'xytest:xychoridite', 'xytest:xychoridite'},
{'xytest:xychoridite', 'xytest:xychoridite'},
}
})