diff --git a/craft.lua b/craft.lua new file mode 100644 index 0000000..e69de29 diff --git a/dye.lua b/dye.lua new file mode 100644 index 0000000..e69de29 diff --git a/init.lua b/init.lua index 9f719cd..d6435d3 100644 --- a/init.lua +++ b/init.lua @@ -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") \ No newline at end of file diff --git a/xychoridite.lua b/xychoridite.lua new file mode 100644 index 0000000..c266d17 --- /dev/null +++ b/xychoridite.lua @@ -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'}, + } +}) \ No newline at end of file