123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- -- The textures starting with "j1_*" are by J1,
- -- who made them for this server under the MIT license.
- -- They have been modified from the originals.
- if not minetest.global_exists("titanium") then titanium = {} end
- titanium.modpath = minetest.get_modpath("titanium")
- -- Ore in Stone.
- minetest.register_node("titanium:ore", {
- description = "Titanium Ore",
- tiles = { "default_stone.png^titanium_ore.png" },
- is_ground_content = true,
- groups = utility.dig_groups("mineral", {ore = 1}),
- sounds = default.node_sound_stone_defaults(),
- drop = "titanium:titanium",
- _tnt_drop = "titanium:titanium 3",
- silverpick_drop = true,
- place_param2 = 10,
- })
- -- Block.
- minetest.register_node("titanium:block", {
- description = "Titanium Block",
- tiles = { "titanium_block.png" },
- is_ground_content = true,
- groups = utility.dig_groups("block"),
- sounds = default.node_sound_metal_defaults(),
- })
- -- Lump.
- minetest.register_craftitem("titanium:titanium", {
- description = "Raw Titanium",
- inventory_image = "titanium_lump.png",
- })
- -- Hardened titanium (ingot-like).
- minetest.register_craftitem("titanium:crystal", {
- description = "Hardened Titanium",
- inventory_image = "titanium_crystal.png",
- })
- -- Sword.
- minetest.register_tool("titanium:sword", {
- description = "Titanium Sword",
- inventory_image = "j1_titanium_sword.png",
- tool_capabilities = tooldata["sword_titanium"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- -- Axe.
- minetest.register_tool("titanium:axe", {
- description = "Titanium Axe",
- inventory_image = "j1_titanium_axe.png",
- tool_capabilities = tooldata["axe_titanium"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- -- Shovel.
- minetest.register_tool("titanium:shovel", {
- description = "Titanium Shovel",
- inventory_image = "j1_titanium_shovel.png",
- tool_capabilities = tooldata["shovel_titanium"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- -- Pick.
- minetest.register_tool("titanium:pick", {
- description = "Titanium Pickaxe",
- inventory_image = "j1_titanium_pick.png",
- tool_capabilities = tooldata["pick_titanium"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- -- Craft pick.
- minetest.register_craft({
- output = 'titanium:pick',
- recipe = {
- {'titanium:crystal', 'titanium:crystal', 'titanium:crystal'},
- {'', 'default:stick', ''},
- {'', 'default:stick', ''},
- }
- })
- -- Craft axe (front recipe).
- minetest.register_craft({
- output = 'titanium:axe',
- recipe = {
- {'titanium:crystal', 'titanium:crystal', ''},
- {'titanium:crystal', 'default:stick', ''},
- {'', 'default:stick', ''},
- }
- })
- -- Craft axe (reverse recipe).
- minetest.register_craft({
- output = 'titanium:axe',
- recipe = {
- {'titanium:crystal', 'titanium:crystal', ''},
- {'default:stick', 'titanium:crystal', ''},
- {'default:stick', '', ''},
- }
- })
- -- Craft shovel.
- minetest.register_craft({
- output = 'titanium:shovel',
- recipe = {
- {'', 'titanium:crystal', ''},
- {'', 'default:stick', ''},
- {'', 'default:stick', ''},
- }
- })
- -- Craft sword.
- minetest.register_craft({
- output = 'titanium:sword',
- recipe = {
- {'', 'titanium:crystal', ''},
- {'', 'titanium:crystal', ''},
- {'', 'default:stick', ''},
- }
- })
- -- Craft block.
- minetest.register_craft({
- output = 'titanium:block',
- recipe = {
- {'titanium:titanium', 'titanium:titanium', 'titanium:titanium'},
- {'titanium:titanium', 'titanium:titanium', 'titanium:titanium'},
- {'titanium:titanium', 'titanium:titanium', 'titanium:titanium'},
- }
- })
- -- Craft lumps.
- minetest.register_craft({
- output = 'titanium:titanium 9',
- recipe = {
- {'', 'titanium:block', ''},
- }
- })
- -- Cook lumps to ingots.
- minetest.register_craft({
- type = "cooking",
- output = "titanium:crystal",
- recipe = "titanium:titanium",
- })
- -- Ore generation.
- oregen.register_ore({
- ore_type = "scatter",
- ore = "titanium:ore",
- wherein = "default:stone",
- clust_scarcity = 10*10*10,
- clust_num_ores = 6,
- clust_size = 5,
- y_min = -31000,
- y_max = -64,
- })
|