local reg_item = ocutil.safe_register_item local reg_node = ocutil.safe_register_node local reg_tool = ocutil.safe_register_tool minetest.register_ore ({ ore_type = "scatter", ore = "air:ore", wherein = "default:stone", clust_scarcity = 5*5*5, clust_num_ores = 2, clust_size = 2, height_min = -31000, height_max = -100, }) reg_node ("air:ore", { description = "air ore", tiles = {"default_stone.png^air_ore.png"}, is_ground_content = true, groups = {cracky=3, stone=1}, drop = 'air:air', legacy_mineral = true, sounds = default.sound_stone(), }) reg_node ("air:air", { description = "air", tiles = { "air_air.png", "air_air.png", "air_air.png", "air_air.png", "air_air.png", "air_air.png" }, light_source = 15, groups = {cracky=3}, drawtype = "nodebox", paramtype = "light", node_box = { type = "fixed", fixed = { {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, -- NodeBox6 {-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- NodeBox7 {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, -- NodeBox8 {0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, -- NodeBox9 {-0.5, -0.5, -0.5, 0.5, 0.5, -0.4375}, -- NodeBox10 } } }); minetest.register_craft ({ output = "air:air", recipe = { {"default:mese_crystal", "", "default:mese_crystal"}, {"default:stone", "", "default:stone"}, {"default:stone", "", "default:stone"}, } }) reg_tool ("air:pick", { description = "air Pick", inventory_image = "air_pick.png", after_use = function(itemstack, user, pointed_thing) itemstack:add_wear(2000) end, tool_capabilities = { max_drop_level=9, groupcaps= { cracky={times={[1]=1.00, [2]=1.50, [3]=2.00}, uses=99, maxlevel=9} } } }); minetest.register_craft({ output = "air:pick", recipe = { {"air:air", "air:air", "air:air"}, {"", "default:stick", ""}, {"", "default:stick", ""}, } }) reg_tool ("air:pick_upgraded", { description = "air Pick reinforced", inventory_image = "air_pick_upgraded.png", after_use = function(itemstack, user, pointed_thing) itemstack:add_wear(200) end, tool_capabilities = { max_drop_level = 99, groupcaps = { cracky = { times = { [1]=0.50, [2]=1.00, [3]=1.50 }, uses=99, maxlevel=99 } } } }); minetest.register_craft({ output = "air:pick_upgraded", recipe = { {"", "default:mese_crystal", ""}, {"", "air:pick", ""}, {"", "", ""}, } }) reg_tool ("air:sword", { description = "air Sword", inventory_image = "air_sword.png", after_use = function(itemstack, user, pointed_thing) itemstack:add_wear(20) end, tool_capabilities = { max_drop_level=99, groupcaps={ snappy={times={[1]=0.50, [2]=1.00, [3]=1.50}, uses=99, maxlevel=99}, choppy={times={[1]=0.50, [2]=1.00, [3]=1.50}, uses=99, maxlevel=99}, }, damage_groups = {fleshy=99} }, }) minetest.register_craft({ output = "air:sword", recipe = { {"", "air:air", ""}, {"", "air:air", ""}, {"", "default:stick", ""}, } }) reg_item ("air:lollipop", { description = "air lollipop" , inventory_image = "air_lollipop.png" , on_use = minetest.item_eat (90) , }) minetest.register_craft({ type = "cooking", output = "air:lollipop", recipe = "air:sword", }) reg_tool ("air:lazer", { description = "air laser", inventory_image = "air_lazer.png", after_use = function(itemstack, user, pointed_thing) itemstack:add_wear(2) end, tool_capabilities = { max_drop_level=99, groupcaps={ cracky={times={[1]=0.50, [2]=0.50, [3]=0.50}, uses=99, maxlevel=99}, crumbly={times={[1]=0.50, [2]=0.50, [3]=0.50}, uses=99, maxlevel=99}, snappy={times={[1]=0.50, [2]=0.50, [3]=0.50}, uses=99, maxlevel=99}, choppy={times={[1]=0.50, [2]=0.50, [3]=0.50}, uses=99, maxlevel=99}, }, damage_groups = {fleshy=99} }, }) minetest.register_craft ({ output = "air:lazer" , recipe = { {"", "default:mese_crystal", ""}, {"", "air:lollipop", ""}, {"", "default:diamond", ""}, } }) minetest.register_abm({ nodenames = {"air:air"}, neighbors = {"default:water_source", "default:water_flowing"}, interval = 2 , chance = 1, catch_up = false , action = function(pos, node, active_object_count, active_object_count_wider) minetest.set_node({x = pos.x, y = pos.y + 1, z = pos.z}, {name = "default:mese"}) end }) minetest.register_craft({ output = "air:lollipop", recipe = { {"", "", ""}, {"", "default:mese_crystal", ""}, {"", "default:diamond", ""}, } })