diff --git a/depends.txt b/depends.txt index 33d91f5..bcd5e2c 100644 --- a/depends.txt +++ b/depends.txt @@ -1 +1,9 @@ -The presence of this file indicates that the current folder is a modpack. \ No newline at end of file +default +tnt +stairs +technic? +pipeworks? +homedecor? +moreores? +caverealms? +ethereal? \ No newline at end of file diff --git a/modpack.txt b/modpack.txt index 33d91f5..36897ec 100644 --- a/modpack.txt +++ b/modpack.txt @@ -1 +1 @@ -The presence of this file indicates that the current folder is a modpack. \ No newline at end of file +Guess what? Bet you didn't know this is a modpack! \ No newline at end of file diff --git a/xtraores/aliases.lua b/xtraores/aliases.lua new file mode 100644 index 0000000..eecbb91 --- /dev/null +++ b/xtraores/aliases.lua @@ -0,0 +1,15 @@ +--This stuff is junk - get rid of it +minetest.register_alias("xtraores_door:door_rainbow", "xtraores_rainbow:wood") +minetest.register_alias("xtraores_mblox:platinumtorch", "default:torch") +minetest.register_alias("xtraores_misc:simple_microchip", "xtraores:cobalt_ingot") +minetest.register_alias("xtraores_misc:microchip", "xtraores:geminitinum_ingot") +minetest.register_alias("xtraores_tech:xray", "default:glass") +minetest.register_alias("xtraores_tech:ropegen", "default:wood") +minetest.register_alias("xtraores_tech:rope", "wool:white") +minetest.register_alias("xtraores_tech:lonely_rope", "wool:white") +minetest.register_alias("xtraores_door:door_rainbow", "xtraores:geminitinum_ingot") +minetest.register_alias("xtraores_door:door_rainbow_a", "doors:door_wood_a") +minetest.register_alias("xtraores_door:door_rainbow_b", "doors:door_wood_b") +minetest.register_alias("xtraores:stone_with_antracite", "default:stone_with_coal") +minetest.register_alias("xtraores:antracite_lump", "default:coal_lump") +minetest.register_alias("xtraores_armor:helmet_crown", "default:gold_ingot") \ No newline at end of file diff --git a/xtraores/depends.txt b/xtraores/depends.txt index 4ad96d5..44e7384 100644 --- a/xtraores/depends.txt +++ b/xtraores/depends.txt @@ -1 +1,2 @@ default +technic? \ No newline at end of file diff --git a/xtraores/init.lua b/xtraores/init.lua index 7a6701f..2c4a792 100644 --- a/xtraores/init.lua +++ b/xtraores/init.lua @@ -1,431 +1,492 @@ -minetest.register_node("xtraores:stone_with_platinum", { - description = "Platinum Ore", - tiles = {"default_stone.png^xtraores_mineral_platinum.png"}, - is_ground_content = true, - groups = {cracky=2}, - drop = 'xtraores:platinum_lump', - sounds = default.node_sound_stone_defaults(), +minetest.log("action", "[MOD] Xtraores: Loading...") + +dofile(minetest.get_modpath("xtraores").."/aliases.lua") + +xtraores = {} + +function xtraores.upper(str) + return (str:gsub("^%l", string.upper)) +end + +--Registration function to register all items/blocks for specified ore +function xtraores.register_all(name, def) + if def.ore then + minetest.register_node("xtraores:stone_with_"..name, { + description = xtraores.upper(name).." Ore", + tiles = def.ore_tiles or {"default_stone.png^xtraores_mineral_"..name..".png"}, + is_ground_content = true, + groups = def.ore[3], + drop = "xtraores:"..name.."_lump", + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_ore({ + ore_type = "scatter", + ore = "xtraores:stone_with_"..name, + wherein = "default:stone", + clust_scarcity = def.ore[1]*def.ore[1]*def.ore[1], + clust_num_ores = 5, + clust_size = 3, + y_min = -31000, + y_max = def.ore[2], + flags = "absheight", + }) + end + + if def.brick ~= false then + minetest.register_node("xtraores:"..name.."_brick", { + description = xtraores.upper(name).." Bricks", + tiles = def.brick_tiles or {"xtraores_"..name.."_brick.png"}, + is_ground_content = true, + groups = def.ore[3], + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_craft({ + output = "xtraores:"..name.."_brick", + recipe = { + {"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"}, + {"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"}, + } + }) + + minetest.register_craft({ + type = "shapeless", + output = "xtraores:"..name.."_ingot 4", + recipe = {"xtraores:"..name.."_brick"}, + }) + end + + if def.block ~= false then + minetest.register_node("xtraores:"..name.."_block", { + description = xtraores.upper(name).." Block", + tiles = def.block_tiles or {"xtraores_"..name.."_block.png"}, + is_ground_content = true, + groups = def.ore[3], + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_craft({ + output = "xtraores:"..name.."_block", + recipe = { + {"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"}, + {"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"}, + {"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"}, + } + }) + + minetest.register_craft({ + type = "shapeless", + output = "xtraores:"..name.."_ingot 9", + recipe = {"xtraores:"..name.."_block"}, + }) + end + + if def.compressed_block ~= false then + minetest.register_node("xtraores:"..name.."_block_compressed", { + description = "Compressed "..xtraores.upper(name).." Block", + tiles = def.block_tiles or {"xtraores_"..name.."_block_compressed.png"}, + is_ground_content = true, + groups = def.ore[3], + sounds = default.node_sound_stone_defaults(), + }) + + if minetest.get_modpath("technic") then + technic.register_compressor_recipe({ + input = {"xtraores:"..name.."_block 8"}, + output = "xtraores:"..name.."_block_compressed 1", + time = 10, + }) + + minetest.register_craft({ + type = "shapeless", + output = "xtraores:"..name.."_block 8", + recipe = {"xtraores:"..name.."_block_compressed"}, + }) + else + minetest.register_craft({ + output = "xtraores:"..name.."_block_compressed", + recipe = { + {"xtraores:"..name.."_block", "xtraores:"..name.."_block", "xtraores:"..name.."_block"}, + {"xtraores:"..name.."_block", "xtraores:"..name.."_block", "xtraores:"..name.."_block"}, + {"xtraores:"..name.."_block", "xtraores:"..name.."_block", "xtraores:"..name.."_block"}, + }, + }) + + minetest.register_craft({ + type = "shapeless", + output = "xtraores:"..name.."_block 9", + recipe = {"xtraores:"..name.."_block_compressed"}, + }) + end + end + + if def.chiseled_block ~= false then + minetest.register_node("xtraores:"..name.."_block_chiseled", { + description = "Chiseled "..xtraores.upper(name).." Block", + tiles = def.block_tiles or {"xtraores_"..name.."_block_chiseled.png"}, + is_ground_content = true, + groups = def.ore[3], + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_craft({ + output = "xtraores:"..name.."_block_chiseled 8", + recipe = { + {"xtraores:"..name.."_block", "xtraores:"..name.."_block", "xtraores:"..name.."_block"}, + {"xtraores:"..name.."_block", "screwdriver:screwdriver", "xtraores:"..name.."_block"}, + {"xtraores:"..name.."_block", "xtraores:"..name.."_block", "xtraores:"..name.."_block"}, + }, + replacements = {{"screwdriver:screwdriver", "screwdriver:screwdriver"}}, + }) + end + + minetest.register_craftitem("xtraores:"..name.."_lump", { + description = def.lump or xtraores.upper(name).." Lump", + inventory_image = "xtraores_"..name.."_lump.png", + }) + + minetest.register_craftitem("xtraores:"..name.."_ingot", { + description = def.ingot or xtraores.upper(name).." Ingot", + inventory_image = "xtraores_"..name.."_ingot.png", + }) + + minetest.register_craft({ + type = "cooking", + output = "xtraores:"..name.."_ingot", + recipe = "xtraores:"..name.."_lump", + }) + + --Dust registration for Technic + if def.dust ~= false then + if minetest.get_modpath("technic") then + minetest.register_craftitem("xtraores:"..name.."_dust", { + description = xtraores.upper(name).." Dust", + inventory_image = "xtraores_"..name.."_dust.png", + }) + + technic.register_grinder_recipe({ + input = {"xtraores:"..name.."_lump"}, + output = "xtraores:"..name.."_dust 2", + time = 5, + }) + + minetest.register_craft({ + type = "cooking", + recipe = "xtraores:"..name.."_dust", + output = "xtraores:"..name.."_ingot", + }) + end + end + + if def.drill then + minetest.register_tool("xtraores:drill_"..name, { + description = xtraores.upper(name).." Drill", + inventory_image = "xtraores_drill_"..name..".png", + tool_capabilities = { + full_punch_interval = 0.001, + max_drop_level=3, + groupcaps=def.drill[1], + damage_groups = {fleshy=def.drill[2]}, + }, + }) + + minetest.register_craft({ + output = "xtraores:drill_"..name, + recipe = { + {"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"}, + {"", "xtraores:"..name.."_ingot", ""}, + {"", "default:diamond", ""}, + } + }) + end + + if def.pick then + minetest.register_tool("xtraores:pick_"..name, { + description = xtraores.upper(name).." Pick", + inventory_image = "xtraores_pick_"..name..".png", + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level=3, + groupcaps=def.pick[1], + damage_groups = {fleshy=def.pick[2]}, + }, + }) + + minetest.register_craft({ + output = "xtraores:pick_"..name, + recipe = { + {"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"}, + {"", "group:stick", ""}, + {"", "group:stick", ""}, + } + }) + end + + if def.shovel then + minetest.register_tool("xtraores:shovel_"..name, { + description = xtraores.upper(name).." Shovel", + inventory_image = "xtraores_shovel_"..name..".png", + wield_image = "xtraores_shovel_"..name..".png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=3, + groupcaps=def.shovel[1], + damage_groups = {fleshy=def.shovel[2]}, + }, + }) + + minetest.register_craft({ + output = "xtraores:shovel_"..name, + recipe = { + {"xtraores:"..name.."_ingot"}, + {"group:stick"}, + {"group:stick"}, + } + }) + end + + if def.axe then + minetest.register_tool("xtraores:axe_"..name, { + description = xtraores.upper(name).." Axe", + inventory_image = "xtraores_axe_"..name..".png", + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level=1, + groupcaps=def.axe[1], + damage_groups = {fleshy=def.axe[2]}, + }, + }) + + minetest.register_craft({ + output = "xtraores:axe_"..name, + recipe = { + {"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"}, + {"xtraores:"..name.."_ingot", "group:stick"}, + {"", "group:stick"}, + } + }) + end + + if def.chainsaw then + minetest.register_tool("xtraores:axe_"..name, { + description = xtraores.upper(name).." Chainsaw", + inventory_image = "xtraores_axe_"..name..".png", + tool_capabilities = { + full_punch_interval = 0.001, + max_drop_level=1, + groupcaps=def.chainsaw[1], + damage_groups = {fleshy=def.chainsaw[2]}, + }, + }) + + minetest.register_craft({ + output = "xtraores:axe_"..name, + recipe = { + {"default:steel_ingot", "xtraores:"..name.."_ingot"}, + {"default:steel_ingot", "xtraores:"..name.."_ingot"}, + {"", "xtraores:"..name.."_ingot"}, + } + }) + end + + if def.sword then + minetest.register_tool("xtraores:sword_"..name, { + description = xtraores.upper(name).." Sword", + inventory_image = "xtraores_sword_"..name..".png", + tool_capabilities = { + full_punch_interval = 0.7, + max_drop_level=1, + groupcaps=def.sword[1], + damage_groups = {fleshy=def.sword[2]}, + } + }) + + minetest.register_craft({ + output = "xtraores:sword_"..name, + recipe = { + {"xtraores:"..name.."_ingot"}, + {"xtraores:"..name.."_ingot"}, + {"group:stick"}, + } + }) + end + + if def.spear then + minetest.register_tool("xtraores:spear_"..name, { + description = xtraores.upper(name).." Spear", + inventory_image = "xtraores_spear_"..name..".png", + range = 12, + tool_capabilities = { + full_punch_interval = 0.7, + max_drop_level=1, + groupcaps=def.spear[1], + damage_groups = {fleshy=def.spear[2]}, + } + }) + + minetest.register_craft({ + output = "xtraores:spear_"..name, + recipe = { + {"", "xtraores:"..name.."_ingot", ""}, + {"xtraores:"..name.."_ingot", "group:stick", "xtraores:"..name.."_ingot"}, + {"", "group:stick", ""}, + } + }) + end +end + +--Register the things +xtraores.register_all("platinum", { + pick = {{cracky = {times={[1]=2.4, [2]=1.2, [3]=0.60}, uses=15, maxlevel=3}}, 5}, + shovel = {{crumbly = {times={[1]=1.20, [2]=0.60, [3]=0.30}, uses=15, maxlevel=3}}, 4}, + axe = {{choppy={times={[1]=2.20, [2]=1.00, [3]=0.60}, uses=15, maxlevel=3}}, 6}, + sword = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 7}, + spear = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 7}, + ore = {7, -100, {cracky=2}}, }) -minetest.register_node("xtraores:platinum_brick", { - description = "Platinum Bricks", - tiles = {"xtraores_platinum_brick.png"}, - is_ground_content = true, - groups = {cracky=2}, - sounds = default.node_sound_stone_defaults(), +xtraores.register_all("cobalt", { + pick = {{cracky = {times={[1]=1.5, [2]=0.85, [3]=0.40}, uses=60, maxlevel=3}, weryhard = {times={[3]=3.00}, uses=60, maxlevel=3}}, 8}, + shovel = {{crumbly = {times={[1]=0.90, [2]=0.40, [3]=0.20}, uses=60, maxlevel=3}}, 7}, + axe = {{choppy={times={[1]=1.80, [2]=0.70, [3]=0.30}, uses=60, maxlevel=3}}, 9}, + sword = {{snappy={times={[1]=1.50, [2]=0.70, [3]=0.20}, uses=70, maxlevel=3}}, 10}, + spear = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 10}, + ore = {12, -650, {cracky=1}}, }) -minetest.register_craftitem("xtraores:platinum_lump", { - description = "Platinum Lump", - inventory_image = "xtraores_platinum_lump.png", +xtraores.register_all("osmium", { + lump = "Osmium Crystal", + pick = {{cracky = {times={[1]=1.2, [2]=0.70, [3]=0.30}, uses=100, maxlevel=3}, weryhard = {times={[3]=2.00, [2]=3.00}, uses=100, maxlevel=3}}, 13}, + shovel = {{crumbly = {times={[1]=0.60, [2]=0.25, [3]=0.15}, uses=100, maxlevel=3}}, 12}, + axe = {{choppy={times={[1]=1.20, [2]=0.40, [3]=0.15}, uses=100, maxlevel=3}}, 14}, + sword = {{snappy={times={[1]=1.0, [2]=0.40, [3]=0.10}, uses=100, maxlevel=3}}, 15}, + spear = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 15}, + ore = {15, -1000, {weryhard=3}}, }) -minetest.register_craftitem("xtraores:platinum_bar", { - description = "Blatinum Bar", - inventory_image = "xtraores_platinum_bar.png", +xtraores.register_all("adamantite", { + lump = "Adamantite Crystal", + pick = {{cracky = {times={[1]=0.6, [2]=0.35, [3]=0.15}, uses=200, maxlevel=3}, weryhard = {times={[3]=1.00, [2]=2.00, [1]=3.00}, uses=200, maxlevel=3}}, 18}, + shovel = {{crumbly = {times={[1]=0.30, [2]=0.125, [3]=0.075}, uses=200, maxlevel=3}}, 17}, + chainsaw = {{choppy={times={[1]=0.40, [2]=0.10, [3]=0.03}, uses=200, maxlevel=3}}, 5}, + sword = {{snappy={times={[1]=0.5, [2]=0.20, [3]=0.05}, uses=200, maxlevel=3}}, 20}, + spear = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 20}, + ore = {20, -2000, {weryhard=2}}, }) -minetest.register_craft({ - type = "cooking", - output = "xtraores:platinum_bar", - recipe = "xtraores:platinum_lump", +xtraores.register_all("rarium", { + drill = {{cracky = {times={[1]=0.3, [2]=0.125, [3]=0.075}, uses=350, maxlevel=3}, weryhard = {times={[3]=0.50, [2]=1.00, [1]=1.50, [0]=2.00}, uses=350, maxlevel=3}, crumbly = {times={[1]=0.15, [2]=0.06, [3]=0.03}, uses=350, maxlevel=3}}, 8}, + chainsaw = {{choppy={times={[1]=0.20, [2]=0.05, [3]=0.015}, uses=350, maxlevel=3}}, 8}, + sword = {{snappy={times={[1]=0.25, [2]=0.10, [3]=0.025}, uses=350, maxlevel=3}}, 30}, + spear = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 30}, + ore = {25, -5000, {weryhard=1}}, }) -minetest.register_craft({ - output = 'xtraores:platinum_brick', - recipe = { - {'xtraores:platinum_lump'}, - {'default:cobble'}, - } +xtraores.register_all("unobtanium", { + drill = {{cracky = {times={[1]=0.15, [2]=0.06, [3]=0.04}, uses=500, maxlevel=3}, weryhard = {times={[3]=0.25, [2]=0.50, [1]=0.75, [0]=1.00}, uses=500, maxlevel=3}, crumbly = {times={[1]=0.15, [2]=0.06, [3]=0.03}, uses=500, maxlevel=3}}, 12}, + chainsaw = {{choppy={times={[1]=0.10, [2]=0.025, [3]=0.0075}, uses=500, maxlevel=3}}, 12}, + sword = {{snappy={times={[1]=0.0125, [2]=0.05, [3]=0.006}, uses=500, maxlevel=3}}, 35}, + spear = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 35}, + ore = {30, -10000, {weryhard=0}}, }) -minetest.register_tool("xtraores:pick_platinum", { - description = "Platinum Pickaxe", - inventory_image = "xtraores_pick_platinum.png", +xtraores.register_all("titanium", { + drill = {{cracky = {times={[1]=0.10, [2]=0.04, [3]=0.02}, uses=650, maxlevel=3}, weryhard = {times={[3]=0.10, [2]=0.20, [1]=0.60, [0]=0.80}, uses=650, maxlevel=3}, crumbly = {times={[1]=0.10, [2]=0.04, [3]=0.02}, uses=650, maxlevel=3}}, 15}, + chainsaw = {{choppy={times={[1]=0.075, [2]=0.020, [3]=0.005}, uses=650, maxlevel=3}}, 15}, + sword = {{snappy={times={[1]=0.0125, [2]=0.05, [3]=0.006}, uses=650, maxlevel=3}}, 40}, + spear = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 40}, + ore = {30, -20000, {weryhard=0}}, +}) + +xtraores.register_all("geminitinum", { + lump = "Geminitinum Crystal", + ore_tiles = {{name="xtraores_mineral_geminitinum.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}}}, + brick_tiles = {{name="xtraores_geminitinum_brick.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1}}}, + block_tiles = {{name="xtraores_geminitinum_block.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1}}}, + compressed_block = false, + chiseled_block = false, + dust = false, + drill = {{cracky = {times={[1]=0.01, [2]=0.01, [3]=0.01}, uses=1000, maxlevel=3}, weryhard = {times={[3]=0.01, [2]=0.01, [1]=0.01, [0]=0.01}, uses=1000, maxlevel=3}, crumbly = {times={[1]=0.01, [2]=0.01, [3]=0.01}, uses=1000, maxlevel=3}}, 20}, + chainsaw = {{choppy={times={[1]=0.001, [2]=0.001, [3]=0.001}, uses=1000, maxlevel=3}}, 20}, + sword = {{snappy={times={[1]=0.01, [2]=0.03, [3]=0.002}, uses=1000, maxlevel=3}}, 20}, + spear = {{snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}}, 50}, + ore = {30, -30000, {weryhard=0}}, +}) + +--[[ + +How to register a thing: + +(all inputs are optional) +xtraores.register_all("name", { + ore_tiles = {tiles}, + brick_tiles = {tiles}, + block_tiles = {tiles}, + block = false, + brick = false, + dust = false, + lump = "lump description", + ingot = "ingot description", + pick = {group_caps, fleshy}, + shovel = {group_caps, fleshy}, + axe = {group_caps, fleshy}, + sword = {group_caps, fleshy}, + spear = {group_caps, fleshy}, + drill = {group_caps, fleshy}, + chainsaw = {group_caps, fleshy}, + ore = {rarity, y_max, {groups}}, +}) + +]] + +--Extras that don't fit register_all +minetest.register_tool("xtraores:sword_excalibur", { + description = "Excalibur | 75 dmg", + inventory_image = "xtraores_sword_excalibur.png", tool_capabilities = { - full_punch_interval = 0.9, - max_drop_level=3, - groupcaps={ - cracky = {times={[1]=2.4, [2]=1.2, [3]=0.60}, uses=15, maxlevel=3}, - }, - damage_groups = {fleshy=5}, - }, -}) - -minetest.register_tool("xtraores:shovel_platinum", { - description = "Platinum Shovel", - inventory_image = "xtraores_shovel_platinum.png", - wield_image = "xtraores_shovel_platinum.png^[transformR90", - tool_capabilities = { - full_punch_interval = 1.0, - max_drop_level=3, - groupcaps={ - crumbly = {times={[1]=1.20, [2]=0.60, [3]=0.30}, uses=15, maxlevel=3}, - }, - damage_groups = {fleshy=4}, - }, -}) - -minetest.register_tool("xtraores:axe_platinum", { - description = "Platinum Axe", - inventory_image = "xtraores_axe_platinum.png", - tool_capabilities = { - full_punch_interval = 0.9, + full_punch_interval = 0.1, max_drop_level=1, groupcaps={ - choppy={times={[1]=2.20, [2]=1.00, [3]=0.60}, uses=15, maxlevel=3}, + snappy={times={[1]=0.0125, [2]=0.05, [3]=0.006}, uses=500, maxlevel=3}, }, - damage_groups = {fleshy=6}, - }, + damage_groups = {fleshy=75}, + } }) -minetest.register_tool("xtraores:sword_platinum", { - description = "Platinum Sword", - inventory_image = "xtraores_sword_platinum.png", +minetest.register_craft({ + output = "xtraores:sword_excalibur", + recipe = { + {"xtraores:sword_osmium", "xtraores:sword_adamantite", "xtraores:sword_rarium"}, + {"xtraores:sword_cobalt", "default:sword_diamond", "xtraores:sword_unobtanium"}, + {"default:diamondblock", "default:mese", "default:diamondblock"}, + } +}) + +minetest.register_tool("xtraores:spear_gungir", { + description = "The Gungir (spear) | 160 dmg", + inventory_image = "xtraores_spear_gungir.png", + range = 12, tool_capabilities = { - full_punch_interval = 0.7, + full_punch_interval = 0.3, max_drop_level=1, groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, + snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=200, maxlevel=3}, }, - damage_groups = {fleshy=7}, + damage_groups = {fleshy=160}, } }) minetest.register_craft({ - output = 'xtraores:pick_platinum', + output = "xtraores:spear_gungir", recipe = { - {'xtraores:platinum_bar', 'xtraores:platinum_bar', 'xtraores:platinum_bar'}, - {'', 'group:stick', ''}, - {'', 'group:stick', ''}, + {"xtraores:sword_excalibur", "xtraores:geminitinum_ingot", "xtraores:sword_excalibur"}, + {"xtraores:geminitinum_ingot", "xtraores:spear_geminitinum", "xtraores:geminitinum_ingot"}, + {"xtraores:sword_excalibur", "xtraores:geminitinum_ingot", "xtraores:sword_excalibur"}, } }) -minetest.register_craft({ - output = 'xtraores:shovel_platinum', - recipe = { - {'xtraores:platinum_bar'}, - {'group:stick'}, - {'group:stick'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:axe_platinum', - recipe = { - {'xtraores:platinum_bar', 'xtraores:platinum_bar'}, - {'xtraores:platinum_bar', 'group:stick'}, - {'', 'group:stick'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_platinum', - recipe = { - {'xtraores:platinum_bar'}, - {'xtraores:platinum_bar'}, - {'group:stick'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:stone_with_platinum", - wherein = "default:stone", - clust_scarcity = 7*7*7, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -100, - flags = "absheight", -}) - -minetest.register_node("xtraores:stone_with_cobalt", { - description = "Cobalt Ore", - tiles = {"default_stone.png^xtraores_mineral_cobalt.png"}, - is_ground_content = true, - groups = {cracky=1}, - drop = 'xtraores:cobalt_lump', - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:cobalt_brick", { - description = "Cobalt Bricks", - tiles = {"xtraores_cobalt_brick.png"}, - is_ground_content = true, - groups = {cracky=1}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craftitem("xtraores:cobalt_lump", { - description = "Cobalt Lump", - inventory_image = "xtraores_cobalt_lump.png", -}) - -minetest.register_craftitem("xtraores:cobalt_bar", { - description = "Cobalt Bar", - inventory_image = "xtraores_cobalt_bar.png", -}) - -minetest.register_craft({ - type = "cooking", - output = "xtraores:cobalt_bar", - recipe = "xtraores:cobalt_lump", -}) - -minetest.register_craft({ - output = 'xtraores:cobalt_brick', - recipe = { - {'xtraores:cobalt_lump'}, - {'default:cobble'}, - } -}) - -minetest.register_tool("xtraores:pick_cobalt", { - description = "Cobalt Warpick", - inventory_image = "xtraores_pick_cobalt.png", - tool_capabilities = { - full_punch_interval = 0.9, - max_drop_level=3, - groupcaps={ - cracky = {times={[1]=1.5, [2]=0.85, [3]=0.40}, uses=60, maxlevel=3}, - weryhard = {times={[3]=3.00}, uses=60, maxlevel=3}, - }, - damage_groups = {fleshy=8}, - }, -}) - -minetest.register_tool("xtraores:shovel_cobalt", { - description = "Cobalt Shovel", - inventory_image = "xtraores_shovel_cobalt.png", - wield_image = "xtraores_shovel_cobalt.png^[transformR90", - tool_capabilities = { - full_punch_interval = 1.0, - max_drop_level=3, - groupcaps={ - crumbly = {times={[1]=0.90, [2]=0.40, [3]=0.20}, uses=60, maxlevel=3}, - }, - damage_groups = {fleshy=7}, - }, -}) - -minetest.register_tool("xtraores:axe_cobalt", { - description = "Cobalt Wraxe", - inventory_image = "xtraores_axe_cobalt.png", - tool_capabilities = { - full_punch_interval = 0.9, - max_drop_level=1, - groupcaps={ - choppy={times={[1]=1.80, [2]=0.70, [3]=0.30}, uses=60, maxlevel=3}, - }, - damage_groups = {fleshy=9}, - }, -}) - -minetest.register_tool("xtraores:sword_cobalt", { - description = "Cobalt Cutlas", - inventory_image = "xtraores_sword_cobalt.png", - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=1.50, [2]=0.70, [3]=0.20}, uses=70, maxlevel=3}, - }, - damage_groups = {fleshy=10}, - } -}) - -minetest.register_craft({ - output = 'xtraores:pick_cobalt', - recipe = { - {'xtraores:cobalt_bar', 'xtraores:cobalt_bar', 'xtraores:cobalt_bar'}, - {'', 'group:stick', ''}, - {'', 'group:stick', ''}, - } -}) - -minetest.register_craft({ - output = 'xtraores:shovel_cobalt', - recipe = { - {'xtraores:cobalt_bar'}, - {'group:stick'}, - {'group:stick'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:axe_cobalt', - recipe = { - {'xtraores:cobalt_bar', 'xtraores:cobalt_bar'}, - {'xtraores:cobalt_bar', 'group:stick'}, - {'', 'group:stick'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_cobalt', - recipe = { - {'xtraores:cobalt_bar'}, - {'xtraores:cobalt_bar'}, - {'group:stick'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:stone_with_cobalt", - wherein = "default:stone", - clust_scarcity = 12*12*12, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -650, - flags = "absheight", -}) - -minetest.register_node("xtraores:stone_with_osmium", { - description = "Osmium Ore", - tiles = {"default_stone.png^xtraores_mineral_osmium.png"}, - is_ground_content = true, - groups = {weryhard=3}, - drop = 'xtraores:osmium_lump', - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:osmium_brick", { - description = "Osmium Bricks", - tiles = {"xtraores_osmium_brick.png"}, - is_ground_content = true, - groups = {weryhard=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craftitem("xtraores:osmium_lump", { - description = "Osmium Lump", - inventory_image = "xtraores_osmium_lump.png", -}) - -minetest.register_craftitem("xtraores:osmium_bar", { - description = "Osmium Bar", - inventory_image = "xtraores_osmium_bar.png", -}) - -minetest.register_craft({ - type = "cooking", - output = "xtraores:osmium_bar", - recipe = "xtraores:osmium_lump", -}) - -minetest.register_craft({ - output = 'xtraores:osmium_brick', - recipe = { - {'xtraores:osmium_lump'}, - {'default:cobble'}, - } -}) - -minetest.register_tool("xtraores:pick_osmium", { - description = "Osmium Warpick", - inventory_image = "xtraores_pick_osmium.png", - tool_capabilities = { - full_punch_interval = 0.9, - max_drop_level=3, - groupcaps={ - cracky = {times={[1]=1.2, [2]=0.70, [3]=0.30}, uses=100, maxlevel=3}, - weryhard = {times={[3]=2.00, [2]=3.00}, uses=100, maxlevel=3}, - }, - damage_groups = {fleshy=13}, - }, -}) - -minetest.register_tool("xtraores:shovel_osmium", { - description = "Osmium Shovel", - inventory_image = "xtraores_shovel_osmium.png", - wield_image = "xtraores_shovel_osmium.png^[transformR90", - tool_capabilities = { - full_punch_interval = 1.0, - max_drop_level=3, - groupcaps={ - crumbly = {times={[1]=0.60, [2]=0.25, [3]=0.15}, uses=100, maxlevel=3}, - }, - damage_groups = {fleshy=12}, - }, -}) - -minetest.register_tool("xtraores:axe_osmium", { - description = "Osmium Greataxe", - inventory_image = "xtraores_axe_osmium.png", - tool_capabilities = { - full_punch_interval = 0.9, - max_drop_level=1, - groupcaps={ - choppy={times={[1]=1.20, [2]=0.40, [3]=0.15}, uses=100, maxlevel=3}, - }, - damage_groups = {fleshy=14}, - }, -}) - -minetest.register_tool("xtraores:sword_osmium", { - description = "Osmium Greatsword", - inventory_image = "xtraores_sword_osmium.png", - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=1.0, [2]=0.40, [3]=0.10}, uses=100, maxlevel=3}, - }, - damage_groups = {fleshy=15}, - } -}) - -minetest.register_craft({ - output = 'xtraores:pick_osmium', - recipe = { - {'xtraores:osmium_bar', 'xtraores:osmium_bar', 'xtraores:osmium_bar'}, - {'', 'group:stick', ''}, - {'', 'group:stick', ''}, - } -}) - -minetest.register_craft({ - output = 'xtraores:shovel_osmium', - recipe = { - {'xtraores:osmium_bar'}, - {'group:stick'}, - {'group:stick'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:axe_osmium', - recipe = { - {'xtraores:osmium_bar', 'xtraores:osmium_bar'}, - {'xtraores:osmium_bar', 'group:stick'}, - {'', 'group:stick'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_osmium', - recipe = { - {'xtraores:osmium_bar'}, - {'xtraores:osmium_bar'}, - {'group:stick'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:stone_with_osmium", - wherein = "default:stone", - clust_scarcity = 15*15*15, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -1000, - flags = "absheight", -}) - +--Change "osminum" to "osmium" (the correct name) local prefix = { "stone_with", "pick", @@ -449,6 +510,17 @@ local armor = { "shield", } +local materials = { + "platinum", + "cobalt", + "osmium", + "rarium", + "adamantite", + "unobtanium", + "titanium", + "geminitinum", +} + for _, name in pairs(prefix) do minetest.register_alias("xtraores:"..name.."_osminum", "xtraores:"..name.."_osmium") end @@ -461,1596 +533,11 @@ for _, name in pairs(armor) do minetest.register_alias("xtraores_armor:"..name.."_osminum", "xtraores_armor:"..name.."_osmium") end ---[[for _, name in pairs(prefix) do - minetest.register_alias("xtraores_armor:"..name.."_osmium", "xtraores_armor:"..name.."_osmium") -end]] - -minetest.register_node("xtraores:stone_with_adamantite", { - description = "Adamantite Ore", - tiles = {"default_stone.png^xtraores_mineral_adamantite.png"}, - is_ground_content = true, - groups = {weryhard=2}, - drop = 'xtraores:adamantite_lump', - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:adamantite_brick", { - description = "Adamantite Bricks", - tiles = {"xtraores_adamantite_brick.png"}, - is_ground_content = true, - groups = {weryhard=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craftitem("xtraores:adamantite_lump", { - description = "Adamantite Lump", - inventory_image = "xtraores_adamantite_lump.png", -}) - -minetest.register_craftitem("xtraores:adamantite_bar", { - description = "Adamantite Bar", - inventory_image = "xtraores_adamantite_bar.png", -}) - -minetest.register_craft({ - type = "cooking", - output = "xtraores:adamantite_bar", - recipe = "xtraores:adamantite_lump", -}) - -minetest.register_craft({ - output = 'xtraores:adamantite_brick', - recipe = { - {'xtraores:adamantite_lump'}, - {'default:cobble'}, - } -}) - -minetest.register_tool("xtraores:pick_adamantite", { - description = "Adamantite Breaker", - inventory_image = "xtraores_pick_adamantite.png", - tool_capabilities = { - full_punch_interval = 0.9, - max_drop_level=3, - groupcaps={ - cracky = {times={[1]=0.6, [2]=0.35, [3]=0.15}, uses=200, maxlevel=3}, - weryhard = {times={[3]=1.00, [2]=2.00, [1]=3.00}, uses=200, maxlevel=3}, - }, - damage_groups = {fleshy=18}, - }, -}) - -minetest.register_tool("xtraores:shovel_adamantite", { - description = "Adamantite Shovel", - inventory_image = "xtraores_shovel_adamantite.png", - wield_image = "xtraores_shovel_adamantite.png^[transformR90", - tool_capabilities = { - full_punch_interval = 1.0, - max_drop_level=3, - groupcaps={ - crumbly = {times={[1]=0.30, [2]=0.125, [3]=0.075}, uses=200, maxlevel=3}, - }, - damage_groups = {fleshy=17}, - }, -}) - -minetest.register_tool("xtraores:axe_adamantite", { - description = "Adamantite Chainsaw", - inventory_image = "xtraores_axe_adamantite.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=1, - groupcaps={ - choppy={times={[1]=0.40, [2]=0.10, [3]=0.03}, uses=200, maxlevel=3}, - }, - damage_groups = {fleshy=5}, - }, -}) - -minetest.register_tool("xtraores:sword_adamantite", { - description = "Adamantite Katana", - inventory_image = "xtraores_sword_adamantite.png", - tool_capabilities = { - full_punch_interval = 0.4, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=0.5, [2]=0.20, [3]=0.05}, uses=200, maxlevel=3}, - }, - damage_groups = {fleshy=20}, - } -}) - -minetest.register_craft({ - output = 'xtraores:pick_adamantite', - recipe = { - {'xtraores:adamantite_bar', 'xtraores:adamantite_bar', 'xtraores:adamantite_bar'}, - {'', 'group:stick', ''}, - {'', 'group:stick', ''}, - } -}) - -minetest.register_craft({ - output = 'xtraores:shovel_adamantite', - recipe = { - {'xtraores:adamantite_bar'}, - {'group:stick'}, - {'group:stick'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:axe_adamantite', - recipe = { - {'default:steel_ingot', 'xtraores:adamantite_bar'}, - {'default:steel_ingot', 'xtraores:adamantite_bar'}, - {'', 'xtraores:adamantite_bar'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_adamantite', - recipe = { - {'xtraores:adamantite_bar'}, - {'xtraores:adamantite_bar'}, - {'group:stick'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:stone_with_adamantite", - wherein = "default:stone", - clust_scarcity = 20*20*20, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -2000, - flags = "absheight", -}) - -minetest.register_node("xtraores:stone_with_rarium", { - description = "Rarium Ore", - tiles = {"default_stone.png^xtraores_mineral_rarium.png"}, - is_ground_content = true, - groups = {weryhard=1}, - drop = 'xtraores:rarium_lump', - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:rarium_brick", { - description = "Rarium Bricks", - tiles = {"xtraores_rarium_brick.png"}, - is_ground_content = true, - groups = {weryhard=1}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craftitem("xtraores:rarium_lump", { - description = "Rarium Lump", - inventory_image = "xtraores_rarium_lump.png", -}) - -minetest.register_craftitem("xtraores:rarium_bar", { - description = "Rarium Bar", - inventory_image = "xtraores_rarium_bar.png", -}) - -minetest.register_craft({ - type = "cooking", - output = "xtraores:rarium_bar", - recipe = "xtraores:rarium_lump", -}) - -minetest.register_craft({ - output = 'xtraores:rarium_brick', - recipe = { - {'xtraores:rarium_lump'}, - {'default:cobble'}, - } -}) - -minetest.register_tool("xtraores:drill_rarium", { - description = "Rarium Drill", - inventory_image = "xtraores_drill_rarium.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=3, - groupcaps={ - cracky = {times={[1]=0.3, [2]=0.125, [3]=0.075}, uses=350, maxlevel=3}, - weryhard = {times={[3]=0.50, [2]=1.00, [1]=1.50, [0]=2.00}, uses=350, maxlevel=3}, - crumbly = {times={[1]=0.15, [2]=0.06, [3]=0.03}, uses=350, maxlevel=3}, - }, - damage_groups = {fleshy=8}, - }, -}) - -minetest.register_tool("xtraores:axe_rarium", { - description = "Rarium Chainsaw", - inventory_image = "xtraores_axe_rarium.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=1, - groupcaps={ - choppy={times={[1]=0.20, [2]=0.05, [3]=0.015}, uses=350, maxlevel=3}, - }, - damage_groups = {fleshy=8}, - }, -}) - -minetest.register_tool("xtraores:sword_rarium", { - description = "Rarium Slicer", - inventory_image = "xtraores_sword_rarium.png", - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=0.25, [2]=0.10, [3]=0.025}, uses=350, maxlevel=3}, - }, - damage_groups = {fleshy=30}, - } -}) - -minetest.register_craft({ - output = 'xtraores:drill_rarium', - recipe = { - {'xtraores:rarium_bar', 'xtraores:rarium_bar', 'xtraores:rarium_bar'}, - {'', 'xtraores:rarium_bar', ''}, - {'', 'default:diamond', ''}, - } -}) - -minetest.register_craft({ - output = 'xtraores:axe_rarium', - recipe = { - {'default:steel_ingot', 'xtraores:rarium_bar'}, - {'default:steel_ingot', 'xtraores:rarium_bar'}, - {'', 'xtraores:rarium_bar'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_rarium', - recipe = { - {'xtraores:rarium_bar'}, - {'xtraores:rarium_bar'}, - {'group:stick'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:stone_with_rarium", - wherein = "default:stone", - clust_scarcity = 25*25*25, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -5000, - flags = "absheight", -}) - -minetest.register_node("xtraores:stone_with_unobtanium", { - description = "Unobtanium Ore", - tiles = {"default_stone.png^xtraores_mineral_unobtanium.png"}, - is_ground_content = true, - groups = {weryhard=0}, - drop = 'xtraores:unobtanium_lump', - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:unobtanium_brick", { - description = "Unobtanium Bricks", - tiles = {"xtraores_unobtanium_brick.png"}, - is_ground_content = true, - groups = {weryhard=0}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craftitem("xtraores:unobtanium_lump", { - description = "Unobtanium Lump", - inventory_image = "xtraores_unobtanium_lump.png", -}) - -minetest.register_craftitem("xtraores:unobtanium_bar", { - description = "Unobtanium Bar", - inventory_image = "xtraores_unobtanium_bar.png", -}) - -minetest.register_craft({ - type = "cooking", - output = "xtraores:unobtanium_bar", - recipe = "xtraores:unobtanium_lump", -}) - -minetest.register_craft({ - output = 'xtraores:unobtanium_brick', - recipe = { - {'xtraores:unobtanium_lump'}, - {'default:cobble'}, - } -}) - -minetest.register_tool("xtraores:drill_unobtanium", { - description = "Unobtanium Drill", - inventory_image = "xtraores_drill_unobtanium.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=3, - groupcaps={ - cracky = {times={[1]=0.15, [2]=0.06, [3]=0.04}, uses=500, maxlevel=3}, - weryhard = {times={[3]=0.25, [2]=0.50, [1]=0.75, [0]=1.00}, uses=500, maxlevel=3}, - crumbly = {times={[1]=0.15, [2]=0.06, [3]=0.03}, uses=500, maxlevel=3}, - }, - damage_groups = {fleshy=12}, - }, -}) - -minetest.register_tool("xtraores:axe_unobtanium", { - description = "Unobtanium Chainsaw", - inventory_image = "xtraores_axe_unobtanium.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=1, - groupcaps={ - choppy={times={[1]=0.10, [2]=0.025, [3]=0.0075}, uses=500, maxlevel=3}, - }, - damage_groups = {fleshy=12}, - }, -}) - -minetest.register_tool("xtraores:sword_unobtanium", { - description = "Unobtanium Darkness", - inventory_image = "xtraores_sword_unobtanium.png", - tool_capabilities = { - full_punch_interval = 0.6, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=0.0125, [2]=0.05, [3]=0.006}, uses=500, maxlevel=3}, - }, - damage_groups = {fleshy=35}, - } -}) - -minetest.register_craft({ - output = 'xtraores:drill_unobtanium', - recipe = { - {'xtraores:unobtanium_bar', 'xtraores:unobtanium_bar', 'xtraores:unobtanium_bar'}, - {'', 'xtraores:unobtanium_bar', ''}, - {'', 'default:diamond', ''}, - } -}) - -minetest.register_craft({ - output = 'xtraores:axe_unobtanium', - recipe = { - {'default:steel_ingot', 'xtraores:unobtanium_bar'}, - {'default:steel_ingot', 'xtraores:unobtanium_bar'}, - {'', 'xtraores:unobtanium_bar'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_unobtanium', - recipe = { - {'xtraores:unobtanium_bar'}, - {'xtraores:unobtanium_bar'}, - {'group:stick'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:stone_with_unobtanium", - wherein = "default:stone", - clust_scarcity = 30*30*30, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -10000, - flags = "absheight", -}) -minetest.register_node("xtraores:stone_with_titanium", { - description = "Titanium Ore", - tiles = {"default_stone.png^xtraores_mineral_titanium.png"}, - is_ground_content = true, - groups = {weryhard=0}, - drop = 'xtraores:titanium_lump', - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:titanium_brick", { - description = "Titanium Bricks", - tiles = {"xtraores_titanium_brick.png"}, - is_ground_content = true, - groups = {weryhard=0}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craftitem("xtraores:titanium_lump", { - description = "Titanium Lump", - inventory_image = "xtraores_titanium_lump.png", -}) - -minetest.register_craftitem("xtraores:titanium_bar", { - description = "Titanium Bar", - inventory_image = "xtraores_titanium_bar.png", -}) - -minetest.register_craft({ - type = "cooking", - cooktime = 20, - output = "xtraores:titanium_bar", - recipe = "xtraores:titanium_lump", -}) - -minetest.register_craft({ - output = 'xtraores:titanium_brick', - recipe = { - {'xtraores:titanium_lump'}, - {'default:cobble'}, - } -}) - -minetest.register_tool("xtraores:axe_titanium", { - description = "Titanium Chainsaw", - inventory_image = "xtraores_axe_titanium.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=1, - groupcaps={ - choppy={times={[1]=0.075, [2]=0.020, [3]=0.005}, uses=650, maxlevel=3}, - }, - damage_groups = {fleshy=15}, - }, -}) - -minetest.register_tool("xtraores:drill_titanium", { - description = "Titanium Drill", - inventory_image = "xtraores_drill_titanium.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=3, - groupcaps={ - cracky = {times={[1]=0.10, [2]=0.04, [3]=0.02}, uses=650, maxlevel=3}, - weryhard = {times={[3]=0.10, [2]=0.20, [1]=0.60, [0]=0.80}, uses=650, maxlevel=3}, - crumbly = {times={[1]=0.10, [2]=0.04, [3]=0.02}, uses=650, maxlevel=3}, - }, - damage_groups = {fleshy=15}, - }, -}) - -minetest.register_tool("xtraores:sword_titanium", { - description = "Titanium Destructonator", - inventory_image = "xtraores_sword_titanium.png", - tool_capabilities = { - full_punch_interval = 0.6, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=0.0125, [2]=0.05, [3]=0.006}, uses=650, maxlevel=3}, - }, - damage_groups = {fleshy=40}, - } -}) - -minetest.register_craft({ - output = 'xtraores:drill_titanium', - recipe = { - {'xtraores:titanium_bar', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'', 'xtraores:titanium_bar', ''}, - {'', 'default:diamond', ''}, - } -}) - -minetest.register_craft({ - output = 'xtraores:axe_titanium', - recipe = { - {'default:steel_ingot', 'xtraores:titanium_bar'}, - {'default:steel_ingot', 'xtraores:titanium_bar'}, - {'', 'xtraores:titanium_bar'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_titanium', - recipe = { - {'xtraores:titanium_bar'}, - {'xtraores:titanium_bar'}, - {'group:stick'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:stone_with_titanium", - wherein = "default:stone", - clust_scarcity = 30*30*30, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -20000, - flags = "absheight", -}) - -minetest.register_node("xtraores:geminitinum_brick", { - description = "Crystal Bricks", - tiles = {{ - name="xtraores_geminitinum_brick.png", - animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1}, - }}, - is_ground_content = true, - light_source = default.LIGHT_MAX - 1, - groups = {cracky=2}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:stone_with_geminitinum", { - description = "Geminitinum Ore", - tiles = {"default_stone.png^xtraores_mineral_geminitinum.png"}, - is_ground_content = true, - groups = {weryhard=0}, - drop = 'xtraores:geminitinum_lump', - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craftitem("xtraores:geminitinum_lump", { - description = "Geminitinum Crystals", - inventory_image = "xtraores_geminitinum_lump.png", -}) - -minetest.register_craftitem("xtraores:geminitinum_bar", { - description = "Geminitinum Bar", - inventory_image = "xtraores_geminitinum_bar.png", -}) - -minetest.register_craft({ - type = "cooking", - cooktime = 200, - output = "xtraores:geminitinum_bar", - recipe = "xtraores:geminitinum_lump", -}) - -minetest.register_craft({ - output = 'xtraores:geminitinum_brick', - recipe = { - {'xtraores:geminitinum_lump'}, - {'default:cobble'}, - } -}) - -minetest.register_tool("xtraores:axe_geminitinum", { - description = "Geminitinum Chainsaw", - inventory_image = "xtraores_axe_geminitinum.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=1, - groupcaps={ - choppy={times={[1]=0.001, [2]=0.001, [3]=0.001}, uses=1000, maxlevel=3}, - }, - damage_groups = {fleshy=20}, - }, -}) - -minetest.register_tool("xtraores:drill_geminitinum", { - description = "Geminitinum Drill", - inventory_image = "xtraores_drill_geminitinum.png", - tool_capabilities = { - full_punch_interval = 0.001, - max_drop_level=3, - groupcaps={ - cracky = {times={[1]=0.01, [2]=0.01, [3]=0.01}, uses=1000, maxlevel=3}, - weryhard = {times={[3]=0.01, [2]=0.01, [1]=0.01, [0]=0.01}, uses=1000, maxlevel=3}, - crumbly = {times={[1]=0.01, [2]=0.01, [3]=0.01}, uses=1000, maxlevel=3}, - }, - damage_groups = {fleshy=20}, - }, -}) - -minetest.register_tool("xtraores:sword_geminitinum", { - description = "Nyanmere", - inventory_image = "xtraores_sword_geminitinum.png", - tool_capabilities = { - full_punch_interval = 0.5, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=0.01, [2]=0.03, [3]=0.002}, uses=1000, maxlevel=3}, - }, - damage_groups = {fleshy=50}, - } -}) - -minetest.register_craft({ - output = 'xtraores:drill_geminitinum', - recipe = { - {'xtraores:geminitinum_bar', 'xtraores:geminitinum_bar', 'xtraores:geminitinum_bar'}, - {'', 'xtraores:titanium_bar', ''}, - {'', 'default:diamond', ''}, - } -}) - -minetest.register_craft({ - output = 'xtraores:axe_geminitinum', - recipe = { - {'default:steel_ingot', 'xtraores:geminitinum_bar'}, - {'default:steel_ingot', 'xtraores:geminitinum_bar'}, - {'', 'xtraores:geminitinum_bar'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_geminitinum', - recipe = { - {'xtraores:geminitinum_bar'}, - {'xtraores:geminitinum_bar'}, - {'group:stick'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:stone_with_geminitinum", - wherein = "default:stone", - clust_scarcity = 30*30*30, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -30000, - flags = "absheight", -}) - -minetest.register_node("xtraores:geminitinum_brick", { - description = "Crystal Bricks", - tiles = {{ - name="xtraores_geminitinum_brick.png", - animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1}, - }}, - is_ground_content = true, - light_source = default.LIGHT_MAX - 1, - groups = {cracky=2}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craft({ - output = 'xtraores:geminitinum_brick', - recipe = { - {'xtraores:geminitinum_lump'}, - {'default:cobble'}, - } -}) - -minetest.register_tool("xtraores:sword_excalibur", { - description = "Excalibur | 75 dmg", - inventory_image = "xtraores_sword_excalibur.png", - tool_capabilities = { - full_punch_interval = 0.1, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=0.0125, [2]=0.05, [3]=0.006}, uses=500, maxlevel=3}, - }, - damage_groups = {fleshy=75}, - } -}) - -minetest.register_craft({ - output = 'xtraores:sword_excalibur', - recipe = { - {'xtraores:sword_osmium', 'xtraores:sword_adamantite', 'xtraores:sword_rarium'}, - {'xtraores:sword_cobalt', 'default:sword_diamond', 'xtraores:sword_unobtanium'}, - {'default:diamondblock', 'default:mese', 'default:diamondblock'}, - } -}) - -minetest.register_node("xtraores:rainbow", { - description = "Rainbow Block", - tiles = {"xtraores_rainbow_block.png"}, - light_source = default.LIGHT_MAX - 1, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craft({ - output = 'xtraores:rainbow 10', - recipe = { - {'xtraores:adamantite_bar', 'xtraores:rarium_bar', 'xtraores:platinum_bar'}, - {'xtraores:cobalt_bar', 'default:glass', 'xtraores:osmium_bar'}, - {'default:diamond', 'default:mese_crystal', 'default:copper_ingot'}, - } -}) - -minetest.register_tool("xtraores:spear_platinum", { - description = "Platinum Spear", - inventory_image = "xtraores_spear_platinum.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, - }, - damage_groups = {fleshy=7}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_platinum', - recipe = { - {'', 'xtraores:platinum_bar', 'xtraores:platinum_bar'}, - {'', 'group:stick', 'xtraores:platinum_bar'}, - {'group:stick', '', ''}, - } -}) - -minetest.register_tool("xtraores:spear_cobalt", { - description = "Cobalt Spear", - inventory_image = "xtraores_spear_cobalt.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, - }, - damage_groups = {fleshy=10}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_cobalt', - recipe = { - {'', 'xtraores:cobalt_bar', 'xtraores:cobalt_bar'}, - {'', 'group:stick', 'xtraores:cobalt_bar'}, - {'group:stick', '', ''}, - } -}) - -minetest.register_tool("xtraores:spear_osmium", { - description = "Osmium Spear", - inventory_image = "xtraores_spear_osmium.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, - }, - damage_groups = {fleshy=15}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_osmium', - recipe = { - {'', 'xtraores:osmium_bar', 'xtraores:osmium_bar'}, - {'', 'group:stick', 'xtraores:osmium_bar'}, - {'group:stick', '', ''}, - } -}) - -minetest.register_tool("xtraores:spear_adamantite", { - description = "Adamantite Spear", - inventory_image = "xtraores_spear_adamantite.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, - }, - damage_groups = {fleshy=20}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_adamantite', - recipe = { - {'', 'xtraores:adamantite_bar', 'xtraores:adamantite_bar'}, - {'', 'group:stick', 'xtraores:adamantite_bar'}, - {'group:stick', '', ''}, - } -}) - -minetest.register_tool("xtraores:spear_rarium", { - description = "Rarium Spear", - inventory_image = "xtraores_spear_rarium.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, - }, - damage_groups = {fleshy=30}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_rarium', - recipe = { - {'', 'xtraores:rarium_bar', 'xtraores:rarium_bar'}, - {'', 'group:stick', 'xtraores:rarium_bar'}, - {'group:stick', '', ''}, - } -}) - -minetest.register_tool("xtraores:spear_unobtanium", { - description = "Unobtanium Spear", - inventory_image = "xtraores_spear_unobtanium.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, - }, - damage_groups = {fleshy=35}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_unobtanium', - recipe = { - {'', 'xtraores:unobtanium_bar', 'xtraores:unobtanium_bar'}, - {'', 'group:stick', 'xtraores:unobtanium_bar'}, - {'group:stick', '', ''}, - } -}) - -minetest.register_tool("xtraores:spear_titanium", { - description = "Titanium Spear", - inventory_image = "xtraores_spear_titanium.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.7, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, - }, - damage_groups = {fleshy=40}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_titanium', - recipe = { - {'', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'', 'group:stick', 'xtraores:titanium_bar'}, - {'group:stick', '', ''}, - } -}) - -minetest.register_tool("xtraores:spear_geminitinum", { - description = "Geminitinum Spear", - inventory_image = "xtraores_spear_geminitinum.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.6, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=23, maxlevel=3}, - }, - damage_groups = {fleshy=50}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_geminitinum', - recipe = { - {'', 'xtraores:geminitinum_bar', 'xtraores:geminitinum_bar'}, - {'', 'group:stick', 'xtraores:geminitinum_bar'}, - {'group:stick', '', ''}, - } -}) - -minetest.register_craftitem("xtraores:titanium_bullet", { - description = "Titanium bullet | Ammo for titanium gun", - inventory_image = "xtraores_titanium_bullet.png", -}) - -minetest.register_craft({ - output = 'xtraores:titanium_bullet 225', - recipe = { - {'', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'', 'default:mese_crystal', 'default:mese_crystal'}, - {'', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - } -}) - -minetest.register_tool("xtraores:titanium_gun", { - description = "Titanium Gun | 45 dmg (requires titanium bullets)", - inventory_image = "xtraores_titanium_gun.png", - on_use = function(itemstack, user, pointed_thing) - local inv = user:get_inventory() - if not inv:contains_item("main", "xtraores:titanium_bullet 1") then - minetest.sound_play("empty", {object=user}) - - return itemstack - end - if not minetest.setting_getbool("creative_mode") then - inv:remove_item("main", "xtraores:titanium_bullet") - end - local pos = user:getpos() - local dir = user:get_look_dir() - local yaw = user:get_look_yaw() - if pos and dir and yaw then - pos.y = pos.y + 1.6 - local obj = minetest.add_entity(pos, "xtraores:tb") - if obj then - minetest.sound_play("shot", {object=obj}) - obj:setvelocity({x=dir.x * 60, y=dir.y * 60, z=dir.z * 60}) - obj:setacceleration({x=dir.x * -0, y=-0, z=dir.z * -0}) - obj:setyaw(yaw + math.pi) - local ent = obj:get_luaentity() - if ent then - ent.player = ent.player or user - end - end - end - return itemstack - end, -}) - -local XTRAORES_TB = { - physical = false, - timer = 0, - visual = "sprite", - visual_size = {x=0.075, y=0.075,}, - textures = {'xtraores_titanium_shot.png'}, - lastpos= {}, - collisionbox = {0, 0, 0, 0, 0, 0}, -} - -XTRAORES_TB.on_step = function(self, dtime) - self.timer = self.timer + dtime - local pos = self.object:getpos() - local node = minetest.get_node(pos) - - if self.timer > 0.08 then - local objs = minetest.get_objects_inside_radius({x = pos.x, y = pos.y, z = pos.z}, 2) - for k, obj in pairs(objs) do - if obj:get_luaentity() ~= nil then - if obj:get_luaentity().name ~= "xtraores:tb" and obj:get_luaentity().name ~= "__builtin:item" then - local damage = 45 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - else - local damage = 45 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - end - - if self.lastpos.x ~= nil then - if minetest.registered_nodes[node.name].walkable then - if not minetest.setting_getbool("creative_mode") then - minetest.add_item(self.lastpos, "") - end - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - self.lastpos= {x = pos.x, y = pos.y, z = pos.z} +for _, name in pairs(materials) do + minetest.register_alias("xtraores:"..name.."_bar", "xtraores:"..name.."_ingot") end -minetest.register_entity("xtraores:tb", XTRAORES_TB ) +minetest.log("action", "[MOD] Xtraores: Module (main) loaded!") -minetest.register_craftitem("xtraores:titanium_barrel", { - description = "Titanium Barrel (titanium gun part)", - inventory_image = "xtraores_titanium_barrel.png", -}) - -minetest.register_craftitem("xtraores:titanium_top", { - description = "Titanium Gun Top (titanium gun part)", - inventory_image = "xtraores_titanium_top.png", -}) - -minetest.register_craftitem("xtraores:titanium_bottom", { - description = "Titanium Gun Bottom (titanium gun part)", - inventory_image = "xtraores_titanium_bottom.png", -}) - -minetest.register_craftitem("xtraores:titanium_handle", { - description = "Titanium Handle (titanium gun part)", - inventory_image = "xtraores_titanium_handle.png", -}) - -minetest.register_craftitem("xtraores:titanium_mechanism", { - description = "Titanium Gun Mechanism (titanium gun part)", - inventory_image = "xtraores_titanium_mechanism.png", -}) - -minetest.register_craft({ - output = 'xtraores:titanium_gun', - recipe = { - {'xtraores:titanium_barrel', 'xtraores:titanium_top', 'xtraores:titanium_mechanism'}, - {'', 'xtraores:titanium_bottom', 'xtraores:titanium_handle'}, - - } -}) - -minetest.register_craft({ - output = 'xtraores:titanium_barrel', - recipe = { - {'xtraores:titanium_bar', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'', '', ''}, - {'xtraores:titanium_bar', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:titanium_top', - recipe = { - {'xtraores:titanium_bar', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'', '', 'xtraores:titanium_bar'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:titanium_bottom', - recipe = { - {'xtraores:titanium_bar', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'default:mese', 'default:mese', ''}, - } -}) - -minetest.register_craft({ - output = 'xtraores:titanium_handle', - recipe = { - {'', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:titanium_mechanism', - recipe = { - {'xtraores:titanium_bar', 'xtraores:titanium_bar', 'xtraores:titanium_bar'}, - {'', 'xtraores:titanium_bar', ''}, - {'', '', 'xtraores:titanium_bar'}, - } -}) - -minetest.register_tool("xtraores:precious_gun", { - description = "Precious Gun | 75 dmg (requries titanium bullets)", - inventory_image = "xtraores_precious_gun.png", - on_use = function(itemstack, user, pointed_thing) - local inv = user:get_inventory() - if not inv:contains_item("main", "xtraores:titanium_bullet 1") then - minetest.sound_play("empty", {object=user}) - - return itemstack - end - if not minetest.setting_getbool("creative_mode") then - inv:remove_item("main", "xtraores:titanium_bullet") - end - local pos = user:getpos() - local dir = user:get_look_dir() - local yaw = user:get_look_yaw() - if pos and dir and yaw then - pos.y = pos.y + 1.6 - local obj = minetest.add_entity(pos, "xtraores:ptb") - if obj then - minetest.sound_play("shot_heavy", {object=obj}) - obj:setvelocity({x=dir.x * 60, y=dir.y * 60, z=dir.z * 60}) - obj:setacceleration({x=dir.x * 0, y=0, z=dir.z * 0}) - obj:setyaw(yaw + math.pi) - local ent = obj:get_luaentity() - if ent then - ent.player = ent.player or user - end - end - end - return itemstack - end, -}) - -local XTRAORES_PTB = { - physical = false, - timer = 0, - visual = "sprite", - visual_size = {x=0.075, y=0.075,}, - textures = {'xtraores_precious_shot.png'}, - lastpos= {}, - collisionbox = {0, 0, 0, 0, 0, 0}, -} - -XTRAORES_PTB.on_step = function(self, dtime) - self.timer = self.timer + dtime - local pos = self.object:getpos() - local node = minetest.get_node(pos) - - if self.timer > 0.08 then - local objs = minetest.get_objects_inside_radius({x = pos.x, y = pos.y, z = pos.z}, 2) - for k, obj in pairs(objs) do - if obj:get_luaentity() ~= nil then - if obj:get_luaentity().name ~= "xtraores:ptb" and obj:get_luaentity().name ~= "__builtin:item" then - local damage = 75 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - else - local damage = 75 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - end - - if self.lastpos.x ~= nil then - if minetest.registered_nodes[node.name].walkable then - if not minetest.setting_getbool("creative_mode") then - minetest.add_item(self.lastpos, "") - end - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - self.lastpos= {x = pos.x, y = pos.y, z = pos.z} -end - -minetest.register_entity("xtraores:ptb", XTRAORES_PTB ) - -minetest.register_craft({ - output = 'xtraores:precious_gun', - recipe = { - {'xtraores:geminitinum_bar', 'xtraores:geminitinum_bar', 'xtraores:geminitinum_bar'}, - {'xtraores:geminitinum_bar', 'xtraores:titanium_gun', 'xtraores:geminitinum_bar'}, - {'xtraores:geminitinum_bar', 'xtraores:geminitinum_bar', 'xtraores:geminitinum_bar'}, - - } -}) - -minetest.register_craftitem("xtraores:chunai", { - description = "Titanium Chunai | 60 dmg", - range = 0, - inventory_image = "xtraores_chunai.png", - on_use = function(itemstack, user, pointed_thing) - if not minetest.setting_getbool("creative_mode") then itemstack:take_item() - end - if pointed_thing.type ~= "nothing" then - local pointed = minetest.get_pointed_thing_position(pointed_thing) - if vector.distance(user:getpos(), pointed) < 8 then - return itemstack - end - end - local pos = user:getpos() - local dir = user:get_look_dir() - local yaw = user:get_look_yaw() - if pos and dir then - pos.y = pos.y + 1.5 - local obj = minetest.add_entity(pos, "xtraores:ce") - if obj then - obj:setvelocity({x=dir.x * 60, y=dir.y * 60, z=dir.z * 60}) - obj:setacceleration({x=dir.x * -3, y=-10, z=dir.z * -3}) - obj:setyaw(yaw + math.pi) - local ent = obj:get_luaentity() - if ent then - ent.player = ent.player or user - end - end - end - return itemstack - end, -}) - -local XTRAORES_CE = { - physical = false, - timer = 0, - visual = "cube", - visual_size = {x=1, y=0,}, - textures = {'xtraores_chunai.png', 'xtraores_chunai.png', 'xtraores_chunai.png', 'xtraores_chunai.png', 'xtraores_chunai.png', 'xtraores_chunai.png'}, - lastpos= {}, - collisionbox = {0, 0, 0, 0, 0, 0}, -} - -XTRAORES_CE.on_step = function(self, dtime) - self.timer = self.timer + dtime - local pos = self.object:getpos() - local node = minetest.get_node(pos) - - if self.timer > 0.08 then - local objs = minetest.get_objects_inside_radius({x = pos.x, y = pos.y, z = pos.z}, 2) - for k, obj in pairs(objs) do - if obj:get_luaentity() ~= nil then - if obj:get_luaentity().name ~= "xtraores:ce" and obj:get_luaentity().name ~= "__builtin:item" then - local damage = 60 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - else - local damage = 60 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - end - - if self.lastpos.x ~= nil then - if minetest.registered_nodes[node.name].walkable then - if not minetest.setting_getbool("creative_mode") then - minetest.add_item(self.lastpos, "xtraores:chunai") - end - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - self.lastpos= {x = pos.x, y = pos.y, z = pos.z} -end - -minetest.register_entity("xtraores:ce", XTRAORES_CE ) - -minetest.register_craft({ - output = 'xtraores:chunai 25', - recipe = { - {'xtraores:titanium_bar', 'xtraores:titanium_bar', ''}, - {'xtraores:titanium_bar', 'xtraores:titanium_bar', ''}, - {'', '', 'xtraores:titanium_bar'}, - - } -}) - -minetest.register_craftitem("xtraores:375", { - description = "375. Bullets", - stack_max = 500, - inventory_image = "xtraores_375.png", -}) - -minetest.register_tool("xtraores:deagle", { - description = "Desert Eagle | 25 dmg (requires 375. bullets)", - inventory_image = "xtraores_deagle.png", - on_use = function(itemstack, user, pointed_thing) - local inv = user:get_inventory() - if not inv:contains_item("main", "xtraores:375 1") then - minetest.sound_play("empty", {object=user}) - return itemstack - end - if not minetest.setting_getbool("creative_mode") then - inv:remove_item("main", "xtraores:375") - end - local pos = user:getpos() - local dir = user:get_look_dir() - local yaw = user:get_look_yaw() - if pos and dir and yaw then - pos.y = pos.y + 1.6 - local obj = minetest.add_entity(pos, "xtraores:db") - if obj then - minetest.sound_play("shot", {object=obj}) - obj:setvelocity({x=dir.x * 60, y=dir.y * 60, z=dir.z * 60}) - obj:setacceleration({x=dir.x * 0, y=0, z=dir.z * 0}) - obj:setyaw(yaw + math.pi) - local ent = obj:get_luaentity() - if ent then - ent.player = ent.player or user - end - end - end - return itemstack - end, -}) - -local XTRAORES_DB = { - physical = false, - timer = 0, - visual = "sprite", - visual_size = {x=0.075, y=0.075,}, - textures = {'xtraores_brass_shot.png'}, - lastpos= {}, - collisionbox = {0, 0, 0, 0, 0, 0}, -} - -XTRAORES_DB.on_step = function(self, dtime) - self.timer = self.timer + dtime - local pos = self.object:getpos() - local node = minetest.get_node(pos) - - if self.timer > 0.08 then - local objs = minetest.get_objects_inside_radius({x = pos.x, y = pos.y, z = pos.z}, 2) - for k, obj in pairs(objs) do - if obj:get_luaentity() ~= nil then - if obj:get_luaentity().name ~= "xtraores:db" and obj:get_luaentity().name ~= "__builtin:item" then - local damage = 25 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - else - local damage = 25 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - end - - if self.lastpos.x ~= nil then - if minetest.registered_nodes[node.name].walkable then - if not minetest.setting_getbool("creative_mode") then - minetest.add_item(self.lastpos, "") - end - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - self.lastpos= {x = pos.x, y = pos.y, z = pos.z} -end - -minetest.register_entity("xtraores:db", XTRAORES_DB ) - -minetest.register_craft({ - output = 'xtraores:deagle', - recipe = { - {'xtraores:platinum_bar', 'xtraores:platinum_bar', 'xtraores:platinum_bar'}, - {'', 'xtraores:platinum_bar', 'xtraores:unobtanium_bar'}, - {'', '', 'xtraores:unobtanium_bar'}, - - } -}) - -minetest.register_craft({ - output = 'xtraores:375 7', - recipe = { - {'xtraores:adamantite_bar'}, - {'default:gold_ingot'}, - {'default:gold_ingot'}, - } -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:redmarble", - wherein = "default:stone", - clust_scarcity = 7*7*7, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -8000, - flags = "absheight", -}) - -minetest.register_craft({ - output = 'xtraores:redmarble_polished', - recipe = { - {'xtraores:redmarble'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:redmarble_bricks 4', - recipe = { - {'xtraores:redmarble', 'xtraores:redmarble'}, - {'xtraores:redmarble', 'xtraores:redmarble'}, - } -}) - -minetest.register_node("xtraores:redmarble_polished", { - description = "Polished Red Marble", - tiles = {"xtraores_redmarble_polished.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:redmarble_bricks", { - description = "Red Marble Bricks", - tiles = {"xtraores_redmarble_bricks.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:redmarble", { - description = "Red Marble", - tiles = {"xtraores_redmarble.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:bluemarble", - wherein = "default:stone", - clust_scarcity = 7*7*7, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -4000, - flags = "absheight", -}) - -minetest.register_craft({ - output = 'xtraores:bluemarble_polished', - recipe = { - {'xtraores:bluemarble'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:bluemarble_bricks 4', - recipe = { - {'xtraores:bluemarble', 'xtraores:bluemarble'}, - {'xtraores:bluemarble', 'xtraores:bluemarble'}, - } -}) - -minetest.register_node("xtraores:bluemarble_polished", { - description = "Polished Blue Marble", - tiles = {"xtraores_bluemarble_polished.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:bluemarble_bricks", { - description = "Blue Marble Bricks", - tiles = {"xtraores_bluemarble_bricks.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:bluemarble", { - description = "Blue Marble", - tiles = {"xtraores_bluemarble.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:blackmarble", - wherein = "default:stone", - clust_scarcity = 7*7*7, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -2000, - flags = "absheight", -}) - -minetest.register_craft({ - output = 'xtraores:blackmarble_polished', - recipe = { - {'xtraores:blackmarble'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:blackmarble_bricks 4', - recipe = { - {'xtraores:blackmarble', 'xtraores:blackmarble'}, - {'xtraores:blackmarble', 'xtraores:blackmarble'}, - } -}) - -minetest.register_node("xtraores:blackmarble_polished", { - description = "Polished Black Marble", - tiles = {"xtraores_blackmarble_polished.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:blackmarble_bricks", { - description = "Black Marble Bricks", - tiles = {"xtraores_blackmarble_bricks.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:blackmarble", { - description = "Black Marble", - tiles = {"xtraores_blackmarble.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "xtraores:marble", - wherein = "default:stone", - clust_scarcity = 7*7*7, - clust_num_ores = 5, - clust_size = 3, - height_min = -31000, - height_max = -1000, - flags = "absheight", -}) - -minetest.register_craft({ - output = 'xtraores:marble_polished', - recipe = { - {'xtraores:marble'}, - } -}) - -minetest.register_craft({ - output = 'xtraores:marble_bricks 4', - recipe = { - {'xtraores:marble', 'xtraores:marble'}, - {'xtraores:marble', 'xtraores:marble'}, - } -}) - -minetest.register_node("xtraores:marble_polished", { - description = "Polished White Marble", - tiles = {"xtraores_marble_polished.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:marble_bricks", { - description = "White Marble Bricks", - tiles = {"xtraores_marble_bricks.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("xtraores:marble", { - description = "White Marble", - tiles = {"xtraores_marble.png"}, - is_ground_content = true, - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_tool("xtraores:spear_gungir", { - description = "The Gungir (spear) | 160 dmg", - inventory_image = "xtraores_spear_gungir.png", - range = 12, - tool_capabilities = { - full_punch_interval = 0.3, - max_drop_level=1, - groupcaps={ - snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=200, maxlevel=3}, - }, - damage_groups = {fleshy=160}, - } -}) - -minetest.register_craft({ - output = 'xtraores:spear_gungir', - recipe = { - {'xtraores:sword_excalibur', 'xtraores:sword_excalibur', 'xtraores:geminitinum_bar'}, - {'xtraores:spear_geminitinum', 'xtraores:spear_geminitinum', 'xtraores:geminitinum_bar'}, - {'xtraores:sword_excalibur', 'xtraores:sword_excalibur', 'xtraores:geminitinum_bar'}, - } -}) +--The original was 2000+ lines \ No newline at end of file diff --git a/xtraores/models/rainbow.x b/xtraores/models/rainbow.x deleted file mode 100644 index ee1e072..0000000 --- a/xtraores/models/rainbow.x +++ /dev/null @@ -1,90 +0,0 @@ -xof 0303txt 0064 -#Exported from Wings 3D 1.5.3 - Material default { - 0.7898538076923077; 0.8133333333333334; 0.6940444444444445; 1.0;; - 0.0; - 0.0; 0.0; 0.0;; - 0.0; 0.0; 0.0;; - } -Frame Cube2 { - Mesh { - 24; - -0.09793438351270611, -1.0, -11.642680254613003;, - -0.09793438351270611, -1.0, 31.04767863369648;, - -0.09793438351270611, 1.0, 31.04767863369648;, - -0.09793438351270611, 1.0, -11.642680254613003;, - -0.09793438351270611, -1.0, -11.642680254613003;, - -0.09793438351270611, 1.0, -11.642680254613003;, - 0.1360498320966762, 1.0, -11.642680254613003;, - 0.1360498320966762, -1.0, -11.642680254613003;, - -0.09793438351270611, -1.0, -11.642680254613003;, - 0.1360498320966762, -1.0, -11.642680254613003;, - 0.1360498320966762, -1.0, 31.04767863369648;, - -0.09793438351270611, -1.0, 31.04767863369648;, - -0.09793438351270611, -1.0, 31.04767863369648;, - 0.1360498320966762, -1.0, 31.04767863369648;, - 0.1360498320966762, 1.0, 31.04767863369648;, - -0.09793438351270611, 1.0, 31.04767863369648;, - -0.09793438351270611, 1.0, -11.642680254613003;, - -0.09793438351270611, 1.0, 31.04767863369648;, - 0.1360498320966762, 1.0, 31.04767863369648;, - 0.1360498320966762, 1.0, -11.642680254613003;, - 0.1360498320966762, -1.0, -11.642680254613003;, - 0.1360498320966762, 1.0, -11.642680254613003;, - 0.1360498320966762, 1.0, 31.04767863369648;, - 0.1360498320966762, -1.0, 31.04767863369648;; - - 6; - 4;0, 1, 2, 3 ;, - 4;4, 5, 6, 7 ;, - 4;8, 9, 10, 11 ;, - 4;12, 13, 14, 15 ;, - 4;16, 17, 18, 19 ;, - 4;20, 21, 22, 23 ;; - - MeshNormals { - 24; -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;; - 6; - 4;0, 1, 2, 3 ;, - 4;4, 5, 6, 7 ;, - 4;8, 9, 10, 11 ;, - 4;12, 13, 14, 15 ;, - 4;16, 17, 18, 19 ;, - 4;20, 21, 22, 23 ;; - } - MeshMaterialList { - 1; - 6; - 0; - 0; - 0; - 0; - 0; - 0; - ; - {default} - } - }} \ No newline at end of file diff --git a/xtraores/models/shuriken.x b/xtraores/models/shuriken.x deleted file mode 100644 index 6e7732a..0000000 --- a/xtraores/models/shuriken.x +++ /dev/null @@ -1,288 +0,0 @@ -xof 0303txt 0064 -#Exported from Wings 3D 1.5.3 - Material default { - 0.7898538076923077; 0.8133333333333334; 0.6940444444444445; 1.0;; - 0.0; - 0.0; 0.0; 0.0;; - 0.0; 0.0; 0.0;; - } -Frame Cube2 { - Mesh { - 96; - -3.720563200000001, -1.0, -1.0;, - -3.720563200000001, -1.0, 1.0;, - -3.720563200000001, -0.5659827200000005, 1.0;, - -3.720563200000001, -0.5659827200000005, -1.0;, - -3.720563200000001, -1.0, -1.0;, - -3.720563200000001, -0.5659827200000005, -1.0;, - -0.4303232000000007, -0.5659827200000005, -1.0;, - -0.4303232000000007, -1.0, -1.0;, - -3.720563200000001, -1.0, -1.0;, - -0.4303232000000007, -1.0, -1.0;, - -0.4303232000000007, -1.0, 1.0;, - -3.720563200000001, -1.0, 1.0;, - -3.720563200000001, -1.0, 1.0;, - -0.4303232000000007, -1.0, 1.0;, - -0.4303232000000007, -0.5659827200000005, 1.0;, - -3.720563200000001, -0.5659827200000005, 1.0;, - -3.720563200000001, -0.5659827200000005, -1.0;, - -3.720563200000001, -0.5659827200000005, 1.0;, - -0.4303232000000007, -0.5659827200000005, 1.0;, - -0.4303232000000007, -0.5659827200000005, -1.0;, - -0.4303232000000007, -1.0, -1.0;, - -0.4303232000000007, -0.5659827200000005, -1.0;, - -0.4303232000000007, -0.5659827200000005, 1.0;, - -0.4303232000000007, -1.0, 1.0;, - -0.8894079999999984, -1.0, 0.6736256000000023;, - -0.8894079999999984, -1.0, 3.7950284800000014;, - -0.8894079999999984, -0.5659827200000005, 3.7950284800000014;, - -0.8894079999999984, -0.5659827200000005, 0.6736256000000023;, - -0.8894079999999984, -1.0, 0.6736256000000023;, - -0.8894079999999984, -0.5659827200000005, 0.6736256000000023;, - 1.1105920000000016, -0.5659827200000005, 0.6736256000000023;, - 1.1105920000000016, -1.0, 0.6736256000000023;, - -0.8894079999999984, -1.0, 0.6736256000000023;, - 1.1105920000000016, -1.0, 0.6736256000000023;, - 1.1105920000000016, -1.0, 3.7950284800000014;, - -0.8894079999999984, -1.0, 3.7950284800000014;, - -0.8894079999999984, -1.0, 3.7950284800000014;, - 1.1105920000000016, -1.0, 3.7950284800000014;, - 1.1105920000000016, -0.5659827200000005, 3.7950284800000014;, - -0.8894079999999984, -0.5659827200000005, 3.7950284800000014;, - -0.8894079999999984, -0.5659827200000005, 0.6736256000000023;, - -0.8894079999999984, -0.5659827200000005, 3.7950284800000014;, - 1.1105920000000016, -0.5659827200000005, 3.7950284800000014;, - 1.1105920000000016, -0.5659827200000005, 0.6736256000000023;, - 1.1105920000000016, -1.0, 0.6736256000000023;, - 1.1105920000000016, -0.5659827200000005, 0.6736256000000023;, - 1.1105920000000016, -0.5659827200000005, 3.7950284800000014;, - 1.1105920000000016, -1.0, 3.7950284800000014;, - -0.8894079999999984, -1.0, -3.750054399999998;, - -0.8894079999999984, -1.0, -0.5851519999999968;, - -0.8894079999999984, -0.5659827200000005, -0.5851519999999968;, - -0.8894079999999984, -0.5659827200000005, -3.750054399999998;, - -0.8894079999999984, -1.0, -3.750054399999998;, - -0.8894079999999984, -0.5659827200000005, -3.750054399999998;, - 1.1105920000000016, -0.5659827200000005, -3.750054399999998;, - 1.1105920000000016, -1.0, -3.750054399999998;, - -0.8894079999999984, -1.0, -3.750054399999998;, - 1.1105920000000016, -1.0, -3.750054399999998;, - 1.1105920000000016, -1.0, -0.5851519999999968;, - -0.8894079999999984, -1.0, -0.5851519999999968;, - -0.8894079999999984, -1.0, -0.5851519999999968;, - 1.1105920000000016, -1.0, -0.5851519999999968;, - 1.1105920000000016, -0.5659827200000005, -0.5851519999999968;, - -0.8894079999999984, -0.5659827200000005, -0.5851519999999968;, - -0.8894079999999984, -0.5659827200000005, -3.750054399999998;, - -0.8894079999999984, -0.5659827200000005, -0.5851519999999968;, - 1.1105920000000016, -0.5659827200000005, -0.5851519999999968;, - 1.1105920000000016, -0.5659827200000005, -3.750054399999998;, - 1.1105920000000016, -1.0, -3.750054399999998;, - 1.1105920000000016, -0.5659827200000005, -3.750054399999998;, - 1.1105920000000016, -0.5659827200000005, -0.5851519999999968;, - 1.1105920000000016, -1.0, -0.5851519999999968;, - 0.7178624000000011, -1.0, -1.0;, - 0.7178624000000011, -1.0, 1.0;, - 0.7178624000000011, -0.5659827200000005, 1.0;, - 0.7178624000000011, -0.5659827200000005, -1.0;, - 0.7178624000000011, -1.0, -1.0;, - 0.7178624000000011, -0.5659827200000005, -1.0;, - 3.9365862400000013, -0.5659827200000005, -1.0;, - 3.9365862400000013, -1.0, -1.0;, - 0.7178624000000011, -1.0, -1.0;, - 3.9365862400000013, -1.0, -1.0;, - 3.9365862400000013, -1.0, 1.0;, - 0.7178624000000011, -1.0, 1.0;, - 0.7178624000000011, -1.0, 1.0;, - 3.9365862400000013, -1.0, 1.0;, - 3.9365862400000013, -0.5659827200000005, 1.0;, - 0.7178624000000011, -0.5659827200000005, 1.0;, - 0.7178624000000011, -0.5659827200000005, -1.0;, - 0.7178624000000011, -0.5659827200000005, 1.0;, - 3.9365862400000013, -0.5659827200000005, 1.0;, - 3.9365862400000013, -0.5659827200000005, -1.0;, - 3.9365862400000013, -1.0, -1.0;, - 3.9365862400000013, -0.5659827200000005, -1.0;, - 3.9365862400000013, -0.5659827200000005, 1.0;, - 3.9365862400000013, -1.0, 1.0;; - - 24; - 4;0, 1, 2, 3 ;, - 4;4, 5, 6, 7 ;, - 4;8, 9, 10, 11 ;, - 4;12, 13, 14, 15 ;, - 4;16, 17, 18, 19 ;, - 4;20, 21, 22, 23 ;, - 4;24, 25, 26, 27 ;, - 4;28, 29, 30, 31 ;, - 4;32, 33, 34, 35 ;, - 4;36, 37, 38, 39 ;, - 4;40, 41, 42, 43 ;, - 4;44, 45, 46, 47 ;, - 4;48, 49, 50, 51 ;, - 4;52, 53, 54, 55 ;, - 4;56, 57, 58, 59 ;, - 4;60, 61, 62, 63 ;, - 4;64, 65, 66, 67 ;, - 4;68, 69, 70, 71 ;, - 4;72, 73, 74, 75 ;, - 4;76, 77, 78, 79 ;, - 4;80, 81, 82, 83 ;, - 4;84, 85, 86, 87 ;, - 4;88, 89, 90, 91 ;, - 4;92, 93, 94, 95 ;; - - MeshNormals { - 96; -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, -0.5773502691896258, 0.5773502691896258;; - 24; - 4;0, 1, 2, 3 ;, - 4;4, 5, 6, 7 ;, - 4;8, 9, 10, 11 ;, - 4;12, 13, 14, 15 ;, - 4;16, 17, 18, 19 ;, - 4;20, 21, 22, 23 ;, - 4;24, 25, 26, 27 ;, - 4;28, 29, 30, 31 ;, - 4;32, 33, 34, 35 ;, - 4;36, 37, 38, 39 ;, - 4;40, 41, 42, 43 ;, - 4;44, 45, 46, 47 ;, - 4;48, 49, 50, 51 ;, - 4;52, 53, 54, 55 ;, - 4;56, 57, 58, 59 ;, - 4;60, 61, 62, 63 ;, - 4;64, 65, 66, 67 ;, - 4;68, 69, 70, 71 ;, - 4;72, 73, 74, 75 ;, - 4;76, 77, 78, 79 ;, - 4;80, 81, 82, 83 ;, - 4;84, 85, 86, 87 ;, - 4;88, 89, 90, 91 ;, - 4;92, 93, 94, 95 ;; - } - MeshMaterialList { - 1; - 24; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - 0; - ; - {default} - } - }} \ No newline at end of file diff --git a/xtraores/models/xolazer.x b/xtraores/models/xolazer.x deleted file mode 100644 index aa9f112..0000000 --- a/xtraores/models/xolazer.x +++ /dev/null @@ -1,90 +0,0 @@ -xof 0303txt 0064 -#Exported from Wings 3D 1.5.3 - Material default { - 0.7898538076923077; 0.8133333333333334; 0.6940444444444445; 1.0;; - 0.0; - 0.0; 0.0; 0.0;; - 0.0; 0.0; 0.0;; - } -Frame Cube1 { - Mesh { - 24; - 9.443699200000001, -1.0, -1.1234944000000038;, - -9.443699200000001, -1.0, -1.1234943999999984;, - -9.443699200000001, 1.0, -1.1234943999999984;, - 9.443699200000001, 1.0, -1.1234944000000038;, - 9.443699200000001, -1.0, -1.1234944000000038;, - 9.443699200000001, 1.0, -1.1234944000000038;, - 9.443699200000001, 1.0, 0.8765055999999962;, - 9.443699200000001, -1.0, 0.8765055999999962;, - 9.443699200000001, -1.0, -1.1234944000000038;, - 9.443699200000001, -1.0, 0.8765055999999962;, - -9.443699200000001, -1.0, 0.8765056000000016;, - -9.443699200000001, -1.0, -1.1234943999999984;, - -9.443699200000001, -1.0, -1.1234943999999984;, - -9.443699200000001, -1.0, 0.8765056000000016;, - -9.443699200000001, 1.0, 0.8765056000000016;, - -9.443699200000001, 1.0, -1.1234943999999984;, - 9.443699200000001, 1.0, -1.1234944000000038;, - -9.443699200000001, 1.0, -1.1234943999999984;, - -9.443699200000001, 1.0, 0.8765056000000016;, - 9.443699200000001, 1.0, 0.8765055999999962;, - 9.443699200000001, -1.0, 0.8765055999999962;, - 9.443699200000001, 1.0, 0.8765055999999962;, - -9.443699200000001, 1.0, 0.8765056000000016;, - -9.443699200000001, -1.0, 0.8765056000000016;; - - 6; - 4;0, 1, 2, 3 ;, - 4;4, 5, 6, 7 ;, - 4;8, 9, 10, 11 ;, - 4;12, 13, 14, 15 ;, - 4;16, 17, 18, 19 ;, - 4;20, 21, 22, 23 ;; - - MeshNormals { - 24; 0.5773502691896257, -0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, -0.5773502691896257, -0.5773502691896257;, - -0.5773502691896258, 0.5773502691896257, -0.5773502691896257;, - 0.5773502691896257, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896257, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896257, 0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, 0.5773502691896257, 0.5773502691896257;, - 0.5773502691896258, -0.5773502691896257, 0.5773502691896257;, - 0.5773502691896257, -0.5773502691896258, -0.5773502691896258;, - 0.5773502691896258, -0.5773502691896257, 0.5773502691896257;, - -0.5773502691896257, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, -0.5773502691896257, -0.5773502691896257;, - -0.5773502691896258, -0.5773502691896257, -0.5773502691896257;, - -0.5773502691896257, -0.5773502691896258, 0.5773502691896258;, - -0.5773502691896257, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896258, 0.5773502691896257, -0.5773502691896257;, - 0.5773502691896257, 0.5773502691896258, -0.5773502691896258;, - -0.5773502691896258, 0.5773502691896257, -0.5773502691896257;, - -0.5773502691896257, 0.5773502691896258, 0.5773502691896258;, - 0.5773502691896258, 0.5773502691896257, 0.5773502691896257;, - 0.5773502691896258, -0.5773502691896257, 0.5773502691896257;, - 0.5773502691896258, 0.5773502691896257, 0.5773502691896257;, - -0.5773502691896257, 0.5773502691896258, 0.5773502691896258;, - -0.5773502691896257, -0.5773502691896258, 0.5773502691896258;; - 6; - 4;0, 1, 2, 3 ;, - 4;4, 5, 6, 7 ;, - 4;8, 9, 10, 11 ;, - 4;12, 13, 14, 15 ;, - 4;16, 17, 18, 19 ;, - 4;20, 21, 22, 23 ;; - } - MeshMaterialList { - 1; - 6; - 0; - 0; - 0; - 0; - 0; - 0; - ; - {default} - } - }} \ No newline at end of file diff --git a/xtraores/textures/geminitinum.gif b/xtraores/textures/geminitinum.gif new file mode 100644 index 0000000..42a8256 Binary files /dev/null and b/xtraores/textures/geminitinum.gif differ diff --git a/xtraores/textures/geminitinum_old.png b/xtraores/textures/geminitinum_old.png new file mode 100644 index 0000000..5bb9c2d Binary files /dev/null and b/xtraores/textures/geminitinum_old.png differ diff --git a/xtraores/textures/technic_wrought_iron_dust.png b/xtraores/textures/technic_wrought_iron_dust.png new file mode 100644 index 0000000..d73d0c9 Binary files /dev/null and b/xtraores/textures/technic_wrought_iron_dust.png differ diff --git a/xtraores/textures/xcf/xtraores_adamantite_block_compressed.xcf b/xtraores/textures/xcf/xtraores_adamantite_block_compressed.xcf new file mode 100644 index 0000000..a9472ce Binary files /dev/null and b/xtraores/textures/xcf/xtraores_adamantite_block_compressed.xcf differ diff --git a/xtraores/textures/xcf/xtraores_adamantite_brick.xcf b/xtraores/textures/xcf/xtraores_adamantite_brick.xcf new file mode 100644 index 0000000..a9472ce Binary files /dev/null and b/xtraores/textures/xcf/xtraores_adamantite_brick.xcf differ diff --git a/xtraores/textures/xcf/xtraores_base_block.xcf b/xtraores/textures/xcf/xtraores_base_block.xcf new file mode 100644 index 0000000..99fcf2f Binary files /dev/null and b/xtraores/textures/xcf/xtraores_base_block.xcf differ diff --git a/xtraores/textures/xcf/xtraores_geminitinum_block.gif b/xtraores/textures/xcf/xtraores_geminitinum_block.gif new file mode 100644 index 0000000..4394663 Binary files /dev/null and b/xtraores/textures/xcf/xtraores_geminitinum_block.gif differ diff --git a/xtraores/textures/xcf/xtraores_geminitinum_brick.gif b/xtraores/textures/xcf/xtraores_geminitinum_brick.gif new file mode 100644 index 0000000..db68766 Binary files /dev/null and b/xtraores/textures/xcf/xtraores_geminitinum_brick.gif differ diff --git a/xtraores/textures/xcf/xtraores_mineral_geminitinum.xcf b/xtraores/textures/xcf/xtraores_mineral_geminitinum.xcf new file mode 100644 index 0000000..e106a42 Binary files /dev/null and b/xtraores/textures/xcf/xtraores_mineral_geminitinum.xcf differ diff --git a/xtraores/textures/xcf/xtraores_rainbow_block.xcf b/xtraores/textures/xcf/xtraores_rainbow_block.xcf new file mode 100644 index 0000000..313f003 Binary files /dev/null and b/xtraores/textures/xcf/xtraores_rainbow_block.xcf differ diff --git a/xtraores/textures/xcf/xtraores_window.xcf b/xtraores/textures/xcf/xtraores_window.xcf new file mode 100644 index 0000000..260316b Binary files /dev/null and b/xtraores/textures/xcf/xtraores_window.xcf differ diff --git a/xtraores/textures/xcf/xtraores_wood.xcf b/xtraores/textures/xcf/xtraores_wood.xcf new file mode 100644 index 0000000..ac85041 Binary files /dev/null and b/xtraores/textures/xcf/xtraores_wood.xcf differ diff --git a/xtraores/textures/xolaser.png b/xtraores/textures/xolaser.png deleted file mode 100644 index db1a4f6..0000000 Binary files a/xtraores/textures/xolaser.png and /dev/null differ diff --git a/xtraores/textures/xolaser_rainbow.png b/xtraores/textures/xolaser_rainbow.png deleted file mode 100644 index 8d1ae45..0000000 Binary files a/xtraores/textures/xolaser_rainbow.png and /dev/null differ diff --git a/xtraores/textures/xtraores_375.png b/xtraores/textures/xtraores_375.png deleted file mode 100644 index 4d07f40..0000000 Binary files a/xtraores/textures/xtraores_375.png and /dev/null differ diff --git a/xtraores/textures/xtraores_adamantite_bar.png b/xtraores/textures/xtraores_adamantite_bar.png deleted file mode 100644 index 79a15ad..0000000 Binary files a/xtraores/textures/xtraores_adamantite_bar.png and /dev/null differ diff --git a/xtraores/textures/xtraores_adamantite_block.png b/xtraores/textures/xtraores_adamantite_block.png new file mode 100644 index 0000000..89aa27e Binary files /dev/null and b/xtraores/textures/xtraores_adamantite_block.png differ diff --git a/xtraores/textures/xtraores_adamantite_block_chiseled.png b/xtraores/textures/xtraores_adamantite_block_chiseled.png new file mode 100644 index 0000000..a0d4596 Binary files /dev/null and b/xtraores/textures/xtraores_adamantite_block_chiseled.png differ diff --git a/xtraores/textures/xtraores_adamantite_block_compressed.png b/xtraores/textures/xtraores_adamantite_block_compressed.png new file mode 100644 index 0000000..f28adc0 Binary files /dev/null and b/xtraores/textures/xtraores_adamantite_block_compressed.png differ diff --git a/xtraores/textures/xtraores_adamantite_brick.png b/xtraores/textures/xtraores_adamantite_brick.png index 6a45aec..1b2a9c6 100644 Binary files a/xtraores/textures/xtraores_adamantite_brick.png and b/xtraores/textures/xtraores_adamantite_brick.png differ diff --git a/xtraores/textures/xtraores_adamantite_dust.png b/xtraores/textures/xtraores_adamantite_dust.png new file mode 100644 index 0000000..cf4f4bc Binary files /dev/null and b/xtraores/textures/xtraores_adamantite_dust.png differ diff --git a/xtraores/textures/xtraores_adamantite_ingot.png b/xtraores/textures/xtraores_adamantite_ingot.png new file mode 100644 index 0000000..6a4d989 Binary files /dev/null and b/xtraores/textures/xtraores_adamantite_ingot.png differ diff --git a/xtraores/textures/xtraores_adamantite_lump.png b/xtraores/textures/xtraores_adamantite_lump.png index 5bebc0a..ddf54c9 100644 Binary files a/xtraores/textures/xtraores_adamantite_lump.png and b/xtraores/textures/xtraores_adamantite_lump.png differ diff --git a/xtraores/textures/xtraores_axe_adamantite.png b/xtraores/textures/xtraores_axe_adamantite.png index 850429d..1df9daa 100644 Binary files a/xtraores/textures/xtraores_axe_adamantite.png and b/xtraores/textures/xtraores_axe_adamantite.png differ diff --git a/xtraores/textures/xtraores_axe_cobalt.png b/xtraores/textures/xtraores_axe_cobalt.png index ef7a0ef..6de0808 100644 Binary files a/xtraores/textures/xtraores_axe_cobalt.png and b/xtraores/textures/xtraores_axe_cobalt.png differ diff --git a/xtraores/textures/xtraores_axe_geminitinum.png b/xtraores/textures/xtraores_axe_geminitinum.png index b81d841..592408b 100644 Binary files a/xtraores/textures/xtraores_axe_geminitinum.png and b/xtraores/textures/xtraores_axe_geminitinum.png differ diff --git a/xtraores/textures/xtraores_axe_osmium.png b/xtraores/textures/xtraores_axe_osmium.png index 5218a13..f6028b6 100644 Binary files a/xtraores/textures/xtraores_axe_osmium.png and b/xtraores/textures/xtraores_axe_osmium.png differ diff --git a/xtraores/textures/xtraores_axe_platinum.png b/xtraores/textures/xtraores_axe_platinum.png index b262f38..eb4eda3 100644 Binary files a/xtraores/textures/xtraores_axe_platinum.png and b/xtraores/textures/xtraores_axe_platinum.png differ diff --git a/xtraores/textures/xtraores_axe_rarium.png b/xtraores/textures/xtraores_axe_rarium.png index 616e4eb..ab26a61 100644 Binary files a/xtraores/textures/xtraores_axe_rarium.png and b/xtraores/textures/xtraores_axe_rarium.png differ diff --git a/xtraores/textures/xtraores_axe_titanium.png b/xtraores/textures/xtraores_axe_titanium.png index 6d2e27e..8ed5eed 100644 Binary files a/xtraores/textures/xtraores_axe_titanium.png and b/xtraores/textures/xtraores_axe_titanium.png differ diff --git a/xtraores/textures/xtraores_axe_unobtanium.png b/xtraores/textures/xtraores_axe_unobtanium.png index f73c6e7..c0a6c43 100644 Binary files a/xtraores/textures/xtraores_axe_unobtanium.png and b/xtraores/textures/xtraores_axe_unobtanium.png differ diff --git a/xtraores/textures/xtraores_base_block.png b/xtraores/textures/xtraores_base_block.png new file mode 100644 index 0000000..7c07012 Binary files /dev/null and b/xtraores/textures/xtraores_base_block.png differ diff --git a/xtraores/textures/xtraores_bcs.png b/xtraores/textures/xtraores_bcs.png deleted file mode 100644 index 9199f03..0000000 Binary files a/xtraores/textures/xtraores_bcs.png and /dev/null differ diff --git a/xtraores/textures/xtraores_bct.png b/xtraores/textures/xtraores_bct.png deleted file mode 100644 index 67bbbb3..0000000 Binary files a/xtraores/textures/xtraores_bct.png and /dev/null differ diff --git a/xtraores/textures/xtraores_blackmarble.png b/xtraores/textures/xtraores_blackmarble.png deleted file mode 100644 index 83c3b6f..0000000 Binary files a/xtraores/textures/xtraores_blackmarble.png and /dev/null differ diff --git a/xtraores/textures/xtraores_blackmarble_bricks.png b/xtraores/textures/xtraores_blackmarble_bricks.png deleted file mode 100644 index dbf0a8d..0000000 Binary files a/xtraores/textures/xtraores_blackmarble_bricks.png and /dev/null differ diff --git a/xtraores/textures/xtraores_blackmarble_polished.png b/xtraores/textures/xtraores_blackmarble_polished.png deleted file mode 100644 index 39d87ae..0000000 Binary files a/xtraores/textures/xtraores_blackmarble_polished.png and /dev/null differ diff --git a/xtraores/textures/xtraores_blcs.png b/xtraores/textures/xtraores_blcs.png deleted file mode 100644 index 158a17c..0000000 Binary files a/xtraores/textures/xtraores_blcs.png and /dev/null differ diff --git a/xtraores/textures/xtraores_blct.png b/xtraores/textures/xtraores_blct.png deleted file mode 100644 index 29b1465..0000000 Binary files a/xtraores/textures/xtraores_blct.png and /dev/null differ diff --git a/xtraores/textures/xtraores_bluemarble.png b/xtraores/textures/xtraores_bluemarble.png deleted file mode 100644 index 5f5b529..0000000 Binary files a/xtraores/textures/xtraores_bluemarble.png and /dev/null differ diff --git a/xtraores/textures/xtraores_bluemarble_bricks.png b/xtraores/textures/xtraores_bluemarble_bricks.png deleted file mode 100644 index 5a478d8..0000000 Binary files a/xtraores/textures/xtraores_bluemarble_bricks.png and /dev/null differ diff --git a/xtraores/textures/xtraores_bluemarble_polished.png b/xtraores/textures/xtraores_bluemarble_polished.png deleted file mode 100644 index 4eb3f3e..0000000 Binary files a/xtraores/textures/xtraores_bluemarble_polished.png and /dev/null differ diff --git a/xtraores/textures/xtraores_brass_shot.png b/xtraores/textures/xtraores_brass_shot.png deleted file mode 100644 index 0acbc4d..0000000 Binary files a/xtraores/textures/xtraores_brass_shot.png and /dev/null differ diff --git a/xtraores/textures/xtraores_bullet.png b/xtraores/textures/xtraores_bullet.png deleted file mode 100644 index 6bec8f2..0000000 Binary files a/xtraores/textures/xtraores_bullet.png and /dev/null differ diff --git a/xtraores/textures/xtraores_charge.png b/xtraores/textures/xtraores_charge.png deleted file mode 100644 index 03bb435..0000000 Binary files a/xtraores/textures/xtraores_charge.png and /dev/null differ diff --git a/xtraores/textures/xtraores_chunai.png b/xtraores/textures/xtraores_chunai.png deleted file mode 100644 index 0452a39..0000000 Binary files a/xtraores/textures/xtraores_chunai.png and /dev/null differ diff --git a/xtraores/textures/xtraores_cobalt_bar.png b/xtraores/textures/xtraores_cobalt_bar.png deleted file mode 100644 index 54576bc..0000000 Binary files a/xtraores/textures/xtraores_cobalt_bar.png and /dev/null differ diff --git a/xtraores/textures/xtraores_cobalt_block.png b/xtraores/textures/xtraores_cobalt_block.png new file mode 100644 index 0000000..a0b2dab Binary files /dev/null and b/xtraores/textures/xtraores_cobalt_block.png differ diff --git a/xtraores/textures/xtraores_cobalt_block_chiseled.png b/xtraores/textures/xtraores_cobalt_block_chiseled.png new file mode 100644 index 0000000..3201852 Binary files /dev/null and b/xtraores/textures/xtraores_cobalt_block_chiseled.png differ diff --git a/xtraores/textures/xtraores_cobalt_block_compressed.png b/xtraores/textures/xtraores_cobalt_block_compressed.png new file mode 100644 index 0000000..b932846 Binary files /dev/null and b/xtraores/textures/xtraores_cobalt_block_compressed.png differ diff --git a/xtraores/textures/xtraores_cobalt_brick.png b/xtraores/textures/xtraores_cobalt_brick.png index 74df3a7..473e5ff 100644 Binary files a/xtraores/textures/xtraores_cobalt_brick.png and b/xtraores/textures/xtraores_cobalt_brick.png differ diff --git a/xtraores/textures/xtraores_cobalt_dust.png b/xtraores/textures/xtraores_cobalt_dust.png new file mode 100644 index 0000000..2ffa9ff Binary files /dev/null and b/xtraores/textures/xtraores_cobalt_dust.png differ diff --git a/xtraores/textures/xtraores_cobalt_ingot.png b/xtraores/textures/xtraores_cobalt_ingot.png new file mode 100644 index 0000000..473c55a Binary files /dev/null and b/xtraores/textures/xtraores_cobalt_ingot.png differ diff --git a/xtraores/textures/xtraores_cobalt_lump.png b/xtraores/textures/xtraores_cobalt_lump.png index 2bed772..aa18e70 100644 Binary files a/xtraores/textures/xtraores_cobalt_lump.png and b/xtraores/textures/xtraores_cobalt_lump.png differ diff --git a/xtraores/textures/xtraores_deagle.png b/xtraores/textures/xtraores_deagle.png deleted file mode 100644 index af7374b..0000000 Binary files a/xtraores/textures/xtraores_deagle.png and /dev/null differ diff --git a/xtraores/textures/xtraores_drill_geminitinum.png b/xtraores/textures/xtraores_drill_geminitinum.png index 3cc517d..d6aaad7 100644 Binary files a/xtraores/textures/xtraores_drill_geminitinum.png and b/xtraores/textures/xtraores_drill_geminitinum.png differ diff --git a/xtraores/textures/xtraores_drill_rarium.png b/xtraores/textures/xtraores_drill_rarium.png index 860280f..576810d 100644 Binary files a/xtraores/textures/xtraores_drill_rarium.png and b/xtraores/textures/xtraores_drill_rarium.png differ diff --git a/xtraores/textures/xtraores_drill_titanium.png b/xtraores/textures/xtraores_drill_titanium.png index 5d5834a..31a80c5 100644 Binary files a/xtraores/textures/xtraores_drill_titanium.png and b/xtraores/textures/xtraores_drill_titanium.png differ diff --git a/xtraores/textures/xtraores_drill_unobtanium.png b/xtraores/textures/xtraores_drill_unobtanium.png index f60e15e..fb3b09f 100644 Binary files a/xtraores/textures/xtraores_drill_unobtanium.png and b/xtraores/textures/xtraores_drill_unobtanium.png differ diff --git a/xtraores/textures/xtraores_geminitinum_bar.png b/xtraores/textures/xtraores_geminitinum_bar.png deleted file mode 100644 index 1cbf1f7..0000000 Binary files a/xtraores/textures/xtraores_geminitinum_bar.png and /dev/null differ diff --git a/xtraores/textures/xtraores_geminitinum_block.png b/xtraores/textures/xtraores_geminitinum_block.png new file mode 100644 index 0000000..9e105f4 Binary files /dev/null and b/xtraores/textures/xtraores_geminitinum_block.png differ diff --git a/xtraores/textures/xtraores_geminitinum_brick.png b/xtraores/textures/xtraores_geminitinum_brick.png index f76a510..e2ff20f 100644 Binary files a/xtraores/textures/xtraores_geminitinum_brick.png and b/xtraores/textures/xtraores_geminitinum_brick.png differ diff --git a/xtraores/textures/xtraores_geminitinum_ingot.png b/xtraores/textures/xtraores_geminitinum_ingot.png new file mode 100644 index 0000000..376c149 Binary files /dev/null and b/xtraores/textures/xtraores_geminitinum_ingot.png differ diff --git a/xtraores/textures/xtraores_geminitinum_lump.png b/xtraores/textures/xtraores_geminitinum_lump.png index b8f9964..fe8349a 100644 Binary files a/xtraores/textures/xtraores_geminitinum_lump.png and b/xtraores/textures/xtraores_geminitinum_lump.png differ diff --git a/xtraores/textures/xtraores_laser_riffle.png b/xtraores/textures/xtraores_laser_riffle.png deleted file mode 100644 index 17b87e9..0000000 Binary files a/xtraores/textures/xtraores_laser_riffle.png and /dev/null differ diff --git a/xtraores/textures/xtraores_marble.png b/xtraores/textures/xtraores_marble.png deleted file mode 100644 index 5d2af7a..0000000 Binary files a/xtraores/textures/xtraores_marble.png and /dev/null differ diff --git a/xtraores/textures/xtraores_marble_bricks.png b/xtraores/textures/xtraores_marble_bricks.png deleted file mode 100644 index 8d3d5a6..0000000 Binary files a/xtraores/textures/xtraores_marble_bricks.png and /dev/null differ diff --git a/xtraores/textures/xtraores_marble_polished.png b/xtraores/textures/xtraores_marble_polished.png deleted file mode 100644 index abc0e9b..0000000 Binary files a/xtraores/textures/xtraores_marble_polished.png and /dev/null differ diff --git a/xtraores/textures/xtraores_mineral_adamantite.png b/xtraores/textures/xtraores_mineral_adamantite.png index b61505f..bc9ff4f 100644 Binary files a/xtraores/textures/xtraores_mineral_adamantite.png and b/xtraores/textures/xtraores_mineral_adamantite.png differ diff --git a/xtraores/textures/xtraores_mineral_antracite.png b/xtraores/textures/xtraores_mineral_antracite.png deleted file mode 100644 index ef9f90c..0000000 Binary files a/xtraores/textures/xtraores_mineral_antracite.png and /dev/null differ diff --git a/xtraores/textures/xtraores_mineral_cobalt.png b/xtraores/textures/xtraores_mineral_cobalt.png index 6077e68..04100f1 100644 Binary files a/xtraores/textures/xtraores_mineral_cobalt.png and b/xtraores/textures/xtraores_mineral_cobalt.png differ diff --git a/xtraores/textures/xtraores_mineral_geminitinum.png b/xtraores/textures/xtraores_mineral_geminitinum.png index aea1ac5..c2f3789 100644 Binary files a/xtraores/textures/xtraores_mineral_geminitinum.png and b/xtraores/textures/xtraores_mineral_geminitinum.png differ diff --git a/xtraores/textures/xtraores_mineral_osmium.png b/xtraores/textures/xtraores_mineral_osmium.png index ef55b2e..cf36599 100644 Binary files a/xtraores/textures/xtraores_mineral_osmium.png and b/xtraores/textures/xtraores_mineral_osmium.png differ diff --git a/xtraores/textures/xtraores_mineral_platinum.png b/xtraores/textures/xtraores_mineral_platinum.png index d79b05d..b082e5b 100644 Binary files a/xtraores/textures/xtraores_mineral_platinum.png and b/xtraores/textures/xtraores_mineral_platinum.png differ diff --git a/xtraores/textures/xtraores_mineral_rarium.png b/xtraores/textures/xtraores_mineral_rarium.png index ef28095..d082c67 100644 Binary files a/xtraores/textures/xtraores_mineral_rarium.png and b/xtraores/textures/xtraores_mineral_rarium.png differ diff --git a/xtraores/textures/xtraores_mineral_titanium.png b/xtraores/textures/xtraores_mineral_titanium.png index 1e2821b..67fb49b 100644 Binary files a/xtraores/textures/xtraores_mineral_titanium.png and b/xtraores/textures/xtraores_mineral_titanium.png differ diff --git a/xtraores/textures/xtraores_mineral_unobtanium.png b/xtraores/textures/xtraores_mineral_unobtanium.png index 7fc0ab5..cbb8cdb 100644 Binary files a/xtraores/textures/xtraores_mineral_unobtanium.png and b/xtraores/textures/xtraores_mineral_unobtanium.png differ diff --git a/xtraores/textures/xtraores_osmium_bar.png b/xtraores/textures/xtraores_osmium_bar.png deleted file mode 100644 index 3cd4094..0000000 Binary files a/xtraores/textures/xtraores_osmium_bar.png and /dev/null differ diff --git a/xtraores/textures/xtraores_osmium_block.png b/xtraores/textures/xtraores_osmium_block.png new file mode 100644 index 0000000..e6f4acd Binary files /dev/null and b/xtraores/textures/xtraores_osmium_block.png differ diff --git a/xtraores/textures/xtraores_osmium_block_chiseled.png b/xtraores/textures/xtraores_osmium_block_chiseled.png new file mode 100644 index 0000000..d98c7cb Binary files /dev/null and b/xtraores/textures/xtraores_osmium_block_chiseled.png differ diff --git a/xtraores/textures/xtraores_osmium_block_compressed.png b/xtraores/textures/xtraores_osmium_block_compressed.png new file mode 100644 index 0000000..5ed2962 Binary files /dev/null and b/xtraores/textures/xtraores_osmium_block_compressed.png differ diff --git a/xtraores/textures/xtraores_osmium_brick.png b/xtraores/textures/xtraores_osmium_brick.png index 26ba749..4af2379 100644 Binary files a/xtraores/textures/xtraores_osmium_brick.png and b/xtraores/textures/xtraores_osmium_brick.png differ diff --git a/xtraores/textures/xtraores_osmium_dust.png b/xtraores/textures/xtraores_osmium_dust.png new file mode 100644 index 0000000..75769a1 Binary files /dev/null and b/xtraores/textures/xtraores_osmium_dust.png differ diff --git a/xtraores/textures/xtraores_osmium_ingot.png b/xtraores/textures/xtraores_osmium_ingot.png new file mode 100644 index 0000000..bf06417 Binary files /dev/null and b/xtraores/textures/xtraores_osmium_ingot.png differ diff --git a/xtraores/textures/xtraores_osmium_lump.png b/xtraores/textures/xtraores_osmium_lump.png index 2628187..1e21a26 100644 Binary files a/xtraores/textures/xtraores_osmium_lump.png and b/xtraores/textures/xtraores_osmium_lump.png differ diff --git a/xtraores/textures/xtraores_pick_adamantite.png b/xtraores/textures/xtraores_pick_adamantite.png index a1f3225..7e84707 100644 Binary files a/xtraores/textures/xtraores_pick_adamantite.png and b/xtraores/textures/xtraores_pick_adamantite.png differ diff --git a/xtraores/textures/xtraores_pick_cobalt.png b/xtraores/textures/xtraores_pick_cobalt.png index 05953cf..6729b62 100644 Binary files a/xtraores/textures/xtraores_pick_cobalt.png and b/xtraores/textures/xtraores_pick_cobalt.png differ diff --git a/xtraores/textures/xtraores_pick_osmium.png b/xtraores/textures/xtraores_pick_osmium.png index 5b8777b..d1aa501 100644 Binary files a/xtraores/textures/xtraores_pick_osmium.png and b/xtraores/textures/xtraores_pick_osmium.png differ diff --git a/xtraores/textures/xtraores_pick_platinum.png b/xtraores/textures/xtraores_pick_platinum.png index d655e0a..e4311e4 100644 Binary files a/xtraores/textures/xtraores_pick_platinum.png and b/xtraores/textures/xtraores_pick_platinum.png differ diff --git a/xtraores/textures/xtraores_platinum_bar.png b/xtraores/textures/xtraores_platinum_bar.png deleted file mode 100644 index 3eafcf0..0000000 Binary files a/xtraores/textures/xtraores_platinum_bar.png and /dev/null differ diff --git a/xtraores/textures/xtraores_platinum_block.png b/xtraores/textures/xtraores_platinum_block.png new file mode 100644 index 0000000..30ef737 Binary files /dev/null and b/xtraores/textures/xtraores_platinum_block.png differ diff --git a/xtraores/textures/xtraores_platinum_block_chiseled.png b/xtraores/textures/xtraores_platinum_block_chiseled.png new file mode 100644 index 0000000..39f05eb Binary files /dev/null and b/xtraores/textures/xtraores_platinum_block_chiseled.png differ diff --git a/xtraores/textures/xtraores_platinum_block_compressed.png b/xtraores/textures/xtraores_platinum_block_compressed.png new file mode 100644 index 0000000..a0fe015 Binary files /dev/null and b/xtraores/textures/xtraores_platinum_block_compressed.png differ diff --git a/xtraores/textures/xtraores_platinum_brick.png b/xtraores/textures/xtraores_platinum_brick.png index ca8bc70..a9d5c37 100644 Binary files a/xtraores/textures/xtraores_platinum_brick.png and b/xtraores/textures/xtraores_platinum_brick.png differ diff --git a/xtraores/textures/xtraores_platinum_dust.png b/xtraores/textures/xtraores_platinum_dust.png new file mode 100644 index 0000000..a53a8e5 Binary files /dev/null and b/xtraores/textures/xtraores_platinum_dust.png differ diff --git a/xtraores/textures/xtraores_platinum_ingot.png b/xtraores/textures/xtraores_platinum_ingot.png new file mode 100644 index 0000000..534c6d5 Binary files /dev/null and b/xtraores/textures/xtraores_platinum_ingot.png differ diff --git a/xtraores/textures/xtraores_platinum_lump.png b/xtraores/textures/xtraores_platinum_lump.png index 3e3fa85..28706a9 100644 Binary files a/xtraores/textures/xtraores_platinum_lump.png and b/xtraores/textures/xtraores_platinum_lump.png differ diff --git a/xtraores/textures/xtraores_precious_gun.png b/xtraores/textures/xtraores_precious_gun.png deleted file mode 100644 index 8a4bf5d..0000000 Binary files a/xtraores/textures/xtraores_precious_gun.png and /dev/null differ diff --git a/xtraores/textures/xtraores_precious_shot.png b/xtraores/textures/xtraores_precious_shot.png deleted file mode 100644 index 41780c9..0000000 Binary files a/xtraores/textures/xtraores_precious_shot.png and /dev/null differ diff --git a/xtraores/textures/xtraores_rainbow_block.png b/xtraores/textures/xtraores_rainbow_block.png deleted file mode 100644 index 5d635fe..0000000 Binary files a/xtraores/textures/xtraores_rainbow_block.png and /dev/null differ diff --git a/xtraores/textures/xtraores_rainbowgun.png b/xtraores/textures/xtraores_rainbowgun.png deleted file mode 100644 index 7cb6276..0000000 Binary files a/xtraores/textures/xtraores_rainbowgun.png and /dev/null differ diff --git a/xtraores/textures/xtraores_rarium_bar.png b/xtraores/textures/xtraores_rarium_bar.png deleted file mode 100644 index c6ddbd8..0000000 Binary files a/xtraores/textures/xtraores_rarium_bar.png and /dev/null differ diff --git a/xtraores/textures/xtraores_rarium_block.png b/xtraores/textures/xtraores_rarium_block.png new file mode 100644 index 0000000..40a10bf Binary files /dev/null and b/xtraores/textures/xtraores_rarium_block.png differ diff --git a/xtraores/textures/xtraores_rarium_block_chiseled.png b/xtraores/textures/xtraores_rarium_block_chiseled.png new file mode 100644 index 0000000..61d82b0 Binary files /dev/null and b/xtraores/textures/xtraores_rarium_block_chiseled.png differ diff --git a/xtraores/textures/xtraores_rarium_block_compressed.png b/xtraores/textures/xtraores_rarium_block_compressed.png new file mode 100644 index 0000000..eb2a42e Binary files /dev/null and b/xtraores/textures/xtraores_rarium_block_compressed.png differ diff --git a/xtraores/textures/xtraores_rarium_brick - Kopija.png b/xtraores/textures/xtraores_rarium_brick - Kopija.png deleted file mode 100644 index 40ae663..0000000 Binary files a/xtraores/textures/xtraores_rarium_brick - Kopija.png and /dev/null differ diff --git a/xtraores/textures/xtraores_rarium_brick.png b/xtraores/textures/xtraores_rarium_brick.png index 40ae663..c947498 100644 Binary files a/xtraores/textures/xtraores_rarium_brick.png and b/xtraores/textures/xtraores_rarium_brick.png differ diff --git a/xtraores/textures/xtraores_rarium_dust.png b/xtraores/textures/xtraores_rarium_dust.png new file mode 100644 index 0000000..c7e5709 Binary files /dev/null and b/xtraores/textures/xtraores_rarium_dust.png differ diff --git a/xtraores/textures/xtraores_rarium_ingot.png b/xtraores/textures/xtraores_rarium_ingot.png new file mode 100644 index 0000000..5229295 Binary files /dev/null and b/xtraores/textures/xtraores_rarium_ingot.png differ diff --git a/xtraores/textures/xtraores_rarium_lump.png b/xtraores/textures/xtraores_rarium_lump.png index 1eccd49..8b79728 100644 Binary files a/xtraores/textures/xtraores_rarium_lump.png and b/xtraores/textures/xtraores_rarium_lump.png differ diff --git a/xtraores/textures/xtraores_rcs.png b/xtraores/textures/xtraores_rcs.png deleted file mode 100644 index 2909dae..0000000 Binary files a/xtraores/textures/xtraores_rcs.png and /dev/null differ diff --git a/xtraores/textures/xtraores_rct.png b/xtraores/textures/xtraores_rct.png deleted file mode 100644 index 6fa0293..0000000 Binary files a/xtraores/textures/xtraores_rct.png and /dev/null differ diff --git a/xtraores/textures/xtraores_redmarble.png b/xtraores/textures/xtraores_redmarble.png deleted file mode 100644 index 2d49d8c..0000000 Binary files a/xtraores/textures/xtraores_redmarble.png and /dev/null differ diff --git a/xtraores/textures/xtraores_redmarble_bricks.png b/xtraores/textures/xtraores_redmarble_bricks.png deleted file mode 100644 index 1efa28e..0000000 Binary files a/xtraores/textures/xtraores_redmarble_bricks.png and /dev/null differ diff --git a/xtraores/textures/xtraores_redmarble_polished.png b/xtraores/textures/xtraores_redmarble_polished.png deleted file mode 100644 index fb59378..0000000 Binary files a/xtraores/textures/xtraores_redmarble_polished.png and /dev/null differ diff --git a/xtraores/textures/xtraores_shovel_adamantite.png b/xtraores/textures/xtraores_shovel_adamantite.png index 9b446ee..3022a69 100644 Binary files a/xtraores/textures/xtraores_shovel_adamantite.png and b/xtraores/textures/xtraores_shovel_adamantite.png differ diff --git a/xtraores/textures/xtraores_shovel_cobalt.png b/xtraores/textures/xtraores_shovel_cobalt.png index f7b38d7..f575123 100644 Binary files a/xtraores/textures/xtraores_shovel_cobalt.png and b/xtraores/textures/xtraores_shovel_cobalt.png differ diff --git a/xtraores/textures/xtraores_shovel_osmium.png b/xtraores/textures/xtraores_shovel_osmium.png index 4b940d0..5caa3f4 100644 Binary files a/xtraores/textures/xtraores_shovel_osmium.png and b/xtraores/textures/xtraores_shovel_osmium.png differ diff --git a/xtraores/textures/xtraores_shovel_platinum.png b/xtraores/textures/xtraores_shovel_platinum.png index 180fabf..00a4506 100644 Binary files a/xtraores/textures/xtraores_shovel_platinum.png and b/xtraores/textures/xtraores_shovel_platinum.png differ diff --git a/xtraores/textures/xtraores_shuriken.png b/xtraores/textures/xtraores_shuriken.png deleted file mode 100644 index 447b407..0000000 Binary files a/xtraores/textures/xtraores_shuriken.png and /dev/null differ diff --git a/xtraores/textures/xtraores_spear_adamantite.png b/xtraores/textures/xtraores_spear_adamantite.png index 8741ee8..96240a9 100644 Binary files a/xtraores/textures/xtraores_spear_adamantite.png and b/xtraores/textures/xtraores_spear_adamantite.png differ diff --git a/xtraores/textures/xtraores_spear_cobalt.png b/xtraores/textures/xtraores_spear_cobalt.png index 99963ac..ce6b747 100644 Binary files a/xtraores/textures/xtraores_spear_cobalt.png and b/xtraores/textures/xtraores_spear_cobalt.png differ diff --git a/xtraores/textures/xtraores_spear_geminitinum.png b/xtraores/textures/xtraores_spear_geminitinum.png index 0348b74..7ac9145 100644 Binary files a/xtraores/textures/xtraores_spear_geminitinum.png and b/xtraores/textures/xtraores_spear_geminitinum.png differ diff --git a/xtraores/textures/xtraores_spear_gungir.png b/xtraores/textures/xtraores_spear_gungir.png index 4300083..dc4a3c3 100644 Binary files a/xtraores/textures/xtraores_spear_gungir.png and b/xtraores/textures/xtraores_spear_gungir.png differ diff --git a/xtraores/textures/xtraores_spear_osmium.png b/xtraores/textures/xtraores_spear_osmium.png index 300e1fc..69bccbe 100644 Binary files a/xtraores/textures/xtraores_spear_osmium.png and b/xtraores/textures/xtraores_spear_osmium.png differ diff --git a/xtraores/textures/xtraores_spear_platinum.png b/xtraores/textures/xtraores_spear_platinum.png index fdbcffd..224ca38 100644 Binary files a/xtraores/textures/xtraores_spear_platinum.png and b/xtraores/textures/xtraores_spear_platinum.png differ diff --git a/xtraores/textures/xtraores_spear_rarium.png b/xtraores/textures/xtraores_spear_rarium.png index 0271e07..d77b852 100644 Binary files a/xtraores/textures/xtraores_spear_rarium.png and b/xtraores/textures/xtraores_spear_rarium.png differ diff --git a/xtraores/textures/xtraores_spear_titanium.png b/xtraores/textures/xtraores_spear_titanium.png index 05fe49c..5e7e7d4 100644 Binary files a/xtraores/textures/xtraores_spear_titanium.png and b/xtraores/textures/xtraores_spear_titanium.png differ diff --git a/xtraores/textures/xtraores_spear_unobtanium.png b/xtraores/textures/xtraores_spear_unobtanium.png index 51e03cf..7adebfe 100644 Binary files a/xtraores/textures/xtraores_spear_unobtanium.png and b/xtraores/textures/xtraores_spear_unobtanium.png differ diff --git a/xtraores/textures/xtraores_sword_adamantite.png b/xtraores/textures/xtraores_sword_adamantite.png index 3678425..110d11b 100644 Binary files a/xtraores/textures/xtraores_sword_adamantite.png and b/xtraores/textures/xtraores_sword_adamantite.png differ diff --git a/xtraores/textures/xtraores_sword_cobalt.png b/xtraores/textures/xtraores_sword_cobalt.png index 129dd28..7bb1e10 100644 Binary files a/xtraores/textures/xtraores_sword_cobalt.png and b/xtraores/textures/xtraores_sword_cobalt.png differ diff --git a/xtraores/textures/xtraores_sword_excalibur.png b/xtraores/textures/xtraores_sword_excalibur.png index c5dfc65..17459ae 100644 Binary files a/xtraores/textures/xtraores_sword_excalibur.png and b/xtraores/textures/xtraores_sword_excalibur.png differ diff --git a/xtraores/textures/xtraores_sword_geminitinum.png b/xtraores/textures/xtraores_sword_geminitinum.png index 090ca9b..a233005 100644 Binary files a/xtraores/textures/xtraores_sword_geminitinum.png and b/xtraores/textures/xtraores_sword_geminitinum.png differ diff --git a/xtraores/textures/xtraores_sword_osmium.png b/xtraores/textures/xtraores_sword_osmium.png index 6b113ac..28b8b1f 100644 Binary files a/xtraores/textures/xtraores_sword_osmium.png and b/xtraores/textures/xtraores_sword_osmium.png differ diff --git a/xtraores/textures/xtraores_sword_platinum.png b/xtraores/textures/xtraores_sword_platinum.png index 966cc85..c1fe01e 100644 Binary files a/xtraores/textures/xtraores_sword_platinum.png and b/xtraores/textures/xtraores_sword_platinum.png differ diff --git a/xtraores/textures/xtraores_sword_rarium.png b/xtraores/textures/xtraores_sword_rarium.png index d264221..4328697 100644 Binary files a/xtraores/textures/xtraores_sword_rarium.png and b/xtraores/textures/xtraores_sword_rarium.png differ diff --git a/xtraores/textures/xtraores_sword_titanium.png b/xtraores/textures/xtraores_sword_titanium.png index 518bdf6..eb197fe 100644 Binary files a/xtraores/textures/xtraores_sword_titanium.png and b/xtraores/textures/xtraores_sword_titanium.png differ diff --git a/xtraores/textures/xtraores_sword_unobtanium.png b/xtraores/textures/xtraores_sword_unobtanium.png index 145f6cf..32dd99e 100644 Binary files a/xtraores/textures/xtraores_sword_unobtanium.png and b/xtraores/textures/xtraores_sword_unobtanium.png differ diff --git a/xtraores/textures/xtraores_titanium_bar.png b/xtraores/textures/xtraores_titanium_bar.png deleted file mode 100644 index 5b52cba..0000000 Binary files a/xtraores/textures/xtraores_titanium_bar.png and /dev/null differ diff --git a/xtraores/textures/xtraores_titanium_barrel.png b/xtraores/textures/xtraores_titanium_barrel.png deleted file mode 100644 index c8e643d..0000000 Binary files a/xtraores/textures/xtraores_titanium_barrel.png and /dev/null differ diff --git a/xtraores/textures/xtraores_titanium_block.png b/xtraores/textures/xtraores_titanium_block.png new file mode 100644 index 0000000..74176c9 Binary files /dev/null and b/xtraores/textures/xtraores_titanium_block.png differ diff --git a/xtraores/textures/xtraores_titanium_block_chiseled.png b/xtraores/textures/xtraores_titanium_block_chiseled.png new file mode 100644 index 0000000..9f9620a Binary files /dev/null and b/xtraores/textures/xtraores_titanium_block_chiseled.png differ diff --git a/xtraores/textures/xtraores_titanium_block_compressed.png b/xtraores/textures/xtraores_titanium_block_compressed.png new file mode 100644 index 0000000..7f4eac6 Binary files /dev/null and b/xtraores/textures/xtraores_titanium_block_compressed.png differ diff --git a/xtraores/textures/xtraores_titanium_bottom.png b/xtraores/textures/xtraores_titanium_bottom.png deleted file mode 100644 index 05627d6..0000000 Binary files a/xtraores/textures/xtraores_titanium_bottom.png and /dev/null differ diff --git a/xtraores/textures/xtraores_titanium_brick.png b/xtraores/textures/xtraores_titanium_brick.png index a226786..7aeaca3 100644 Binary files a/xtraores/textures/xtraores_titanium_brick.png and b/xtraores/textures/xtraores_titanium_brick.png differ diff --git a/xtraores/textures/xtraores_titanium_bullet.png b/xtraores/textures/xtraores_titanium_bullet.png deleted file mode 100644 index 9e856c9..0000000 Binary files a/xtraores/textures/xtraores_titanium_bullet.png and /dev/null differ diff --git a/xtraores/textures/xtraores_titanium_dust.png b/xtraores/textures/xtraores_titanium_dust.png new file mode 100644 index 0000000..0df5071 Binary files /dev/null and b/xtraores/textures/xtraores_titanium_dust.png differ diff --git a/xtraores/textures/xtraores_titanium_gun.png b/xtraores/textures/xtraores_titanium_gun.png deleted file mode 100644 index b595c5e..0000000 Binary files a/xtraores/textures/xtraores_titanium_gun.png and /dev/null differ diff --git a/xtraores/textures/xtraores_titanium_handle.png b/xtraores/textures/xtraores_titanium_handle.png deleted file mode 100644 index c0ca8f4..0000000 Binary files a/xtraores/textures/xtraores_titanium_handle.png and /dev/null differ diff --git a/xtraores/textures/xtraores_titanium_ingot.png b/xtraores/textures/xtraores_titanium_ingot.png new file mode 100644 index 0000000..c35f37b Binary files /dev/null and b/xtraores/textures/xtraores_titanium_ingot.png differ diff --git a/xtraores/textures/xtraores_titanium_lump.png b/xtraores/textures/xtraores_titanium_lump.png index 736c34a..98dda81 100644 Binary files a/xtraores/textures/xtraores_titanium_lump.png and b/xtraores/textures/xtraores_titanium_lump.png differ diff --git a/xtraores/textures/xtraores_titanium_mechanism.png b/xtraores/textures/xtraores_titanium_mechanism.png deleted file mode 100644 index e1b0631..0000000 Binary files a/xtraores/textures/xtraores_titanium_mechanism.png and /dev/null differ diff --git a/xtraores/textures/xtraores_titanium_shot.png b/xtraores/textures/xtraores_titanium_shot.png deleted file mode 100644 index 6b68278..0000000 Binary files a/xtraores/textures/xtraores_titanium_shot.png and /dev/null differ diff --git a/xtraores/textures/xtraores_titanium_top.png b/xtraores/textures/xtraores_titanium_top.png deleted file mode 100644 index 42303a3..0000000 Binary files a/xtraores/textures/xtraores_titanium_top.png and /dev/null differ diff --git a/xtraores/textures/xtraores_unobtanium_bar.png b/xtraores/textures/xtraores_unobtanium_bar.png deleted file mode 100644 index 57badb0..0000000 Binary files a/xtraores/textures/xtraores_unobtanium_bar.png and /dev/null differ diff --git a/xtraores/textures/xtraores_unobtanium_block.png b/xtraores/textures/xtraores_unobtanium_block.png new file mode 100644 index 0000000..c9a7243 Binary files /dev/null and b/xtraores/textures/xtraores_unobtanium_block.png differ diff --git a/xtraores/textures/xtraores_unobtanium_block_chiseled.png b/xtraores/textures/xtraores_unobtanium_block_chiseled.png new file mode 100644 index 0000000..05aab8f Binary files /dev/null and b/xtraores/textures/xtraores_unobtanium_block_chiseled.png differ diff --git a/xtraores/textures/xtraores_unobtanium_block_compressed.png b/xtraores/textures/xtraores_unobtanium_block_compressed.png new file mode 100644 index 0000000..c3bf89f Binary files /dev/null and b/xtraores/textures/xtraores_unobtanium_block_compressed.png differ diff --git a/xtraores/textures/xtraores_unobtanium_brick.png b/xtraores/textures/xtraores_unobtanium_brick.png index 1f4ecba..d81c11f 100644 Binary files a/xtraores/textures/xtraores_unobtanium_brick.png and b/xtraores/textures/xtraores_unobtanium_brick.png differ diff --git a/xtraores/textures/xtraores_unobtanium_dust.png b/xtraores/textures/xtraores_unobtanium_dust.png new file mode 100644 index 0000000..e43744b Binary files /dev/null and b/xtraores/textures/xtraores_unobtanium_dust.png differ diff --git a/xtraores/textures/xtraores_unobtanium_ingot.png b/xtraores/textures/xtraores_unobtanium_ingot.png new file mode 100644 index 0000000..285e209 Binary files /dev/null and b/xtraores/textures/xtraores_unobtanium_ingot.png differ diff --git a/xtraores/textures/xtraores_unobtanium_lump.png b/xtraores/textures/xtraores_unobtanium_lump.png index a77c82c..7a74b70 100644 Binary files a/xtraores/textures/xtraores_unobtanium_lump.png and b/xtraores/textures/xtraores_unobtanium_lump.png differ diff --git a/xtraores/textures/xtraores_wcs.png b/xtraores/textures/xtraores_wcs.png deleted file mode 100644 index 28bab98..0000000 Binary files a/xtraores/textures/xtraores_wcs.png and /dev/null differ diff --git a/xtraores/textures/xtraores_wct.png b/xtraores/textures/xtraores_wct.png deleted file mode 100644 index 9827c95..0000000 Binary files a/xtraores/textures/xtraores_wct.png and /dev/null differ diff --git a/xtraores/textures/xtraores_window.png b/xtraores/textures/xtraores_window.png deleted file mode 100644 index 5f932cf..0000000 Binary files a/xtraores/textures/xtraores_window.png and /dev/null differ diff --git a/xtraores/textures/xtraores_wood.png b/xtraores/textures/xtraores_wood.png deleted file mode 100644 index b6f148c..0000000 Binary files a/xtraores/textures/xtraores_wood.png and /dev/null differ diff --git a/xtraores_armor/README.txt b/xtraores_armor/README.txt deleted file mode 100644 index dff2255..0000000 --- a/xtraores_armor/README.txt +++ /dev/null @@ -1,6 +0,0 @@ -Adds tin, silver and technic materials to 3d_armor. -Requires technic mod to be installed for craft registration. - -Depends: 3d_armor - -Source code and textures by poet.nohit diff --git a/xtraores_armor/depends.txt b/xtraores_armor/depends.txt index b6cac21..29bfbbf 100644 --- a/xtraores_armor/depends.txt +++ b/xtraores_armor/depends.txt @@ -1 +1,2 @@ 3d_armor +xtraores \ No newline at end of file diff --git a/xtraores_armor/init.lua b/xtraores_armor/init.lua index 3660ff7..ec66ebe 100644 --- a/xtraores_armor/init.lua +++ b/xtraores_armor/init.lua @@ -1,269 +1,145 @@ - minetest.register_tool("xtraores_armor:helmet_platinum", { - description = "Platinum Helmet", - inventory_image = "xtraores_armor_inv_helmet_platinum.png", - groups = {armor_head=12, armor_heal=7, armor_use=200}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:chestplate_platinum", { - description = "Platinum Chestplate", - inventory_image = "xtraores_armor_inv_chestplate_platinum.png", - groups = {armor_torso=17, armor_heal=7, armor_use=200}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:leggings_platinum", { - description = "Platinum Leggings", - inventory_image = "xtraores_armor_inv_leggings_platinum.png", - groups = {armor_legs=17, armor_heal=7, armor_use=200}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:boots_platinum", { - description = "Platinum Boots", - inventory_image = "xtraores_armor_inv_boots_platinum.png", - groups = {armor_feet=12, armor_heal=7, armor_use=200}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:shield_platinum", { - description = "Platinum Shield", - inventory_image = "xtraores_armor_inv_shield_platinum.png", - groups = {armor_shield=12, armor_heal=7, armor_use=200}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:helmet_cobalt", { - description = "Cobalt Helmet", - inventory_image = "xtraores_armor_inv_helmet_cobalt.png", - groups = {armor_head=15, armor_heal=12, physics_speed=0.15, armor_use=75}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:chestplate_cobalt", { - description = "Cobalt Chestplate", - inventory_image = "xtraores_armor_inv_chestplate_cobalt.png", - groups = {armor_torso=20, armor_heal=12, physics_speed=0.15, armor_use=75}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:leggings_cobalt", { - description = "Cobalt Leggings", - inventory_image = "xtraores_armor_inv_leggings_cobalt.png", - groups = {armor_legs=20, armor_heal=12, physics_speed=0.15, armor_use=75}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:boots_cobalt", { - description = "Cobalt Boots", - inventory_image = "xtraores_armor_inv_boots_cobalt.png", - groups = {armor_feet=15, armor_heal=12, physics_speed=0.15, armor_use=75}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:shield_cobalt", { - description = "Cobalt Shield", - inventory_image = "xtraores_armor_inv_shield_cobalt.png", - groups = {armor_shield=15, armor_heal=12, physics_speed=0.15, armor_use=75}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:helmet_osmium", { - description = "Osmium Helmet", - inventory_image = "xtraores_armor_inv_helmet_osmium.png", - groups = {armor_head=15.4, armor_heal=12, physics_jump=0.15, armor_use=50}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:chestplate_osmium", { - description = "Osmium Chestplate", - inventory_image = "xtraores_armor_inv_chestplate_osmium.png", - groups = {armor_torso=20.4, armor_heal=12, physics_jump=0.15, armor_use=50}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:leggings_osmium", { - description = "Osmium Leggings", - inventory_image = "xtraores_armor_inv_leggings_osmium.png", - groups = {armor_legs=20.4, armor_heal=12, physics_jump=0.15, armor_use=50}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:boots_osmium", { - description = "Osmium Boots", - inventory_image = "xtraores_armor_inv_boots_osmium.png", - groups = {armor_feet=15.4, armor_heal=12, physics_jump=0.15, armor_use=50}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:shield_osmium", { - description = "Osmium Shield", - inventory_image = "xtraores_armor_inv_shield_osmium.png", - groups = {armor_shield=15.4, armor_heal=12, physics_jump=0.15, armor_use=50}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:helmet_adamantite", { - description = "Adamantite Helmet", - inventory_image = "xtraores_armor_inv_helmet_adamantite.png", - groups = {armor_head=16, armor_heal=12, physics_gravity=-0.15, armor_use=30}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:chestplate_adamantite", { - description = "Adamantite Chestplate", - inventory_image = "xtraores_armor_inv_chestplate_adamantite.png", - groups = {armor_torso=21, armor_heal=12, physics_gravity=-0.15, armor_use=30}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:leggings_adamantite", { - description = "Adamantite Leggings", - inventory_image = "xtraores_armor_inv_leggings_adamantite.png", - groups = {armor_legs=21, armor_heal=12, physics_gravity=-0.15, armor_use=30}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:boots_adamantite", { - description = "Adamantite Boots", - inventory_image = "xtraores_armor_inv_boots_adamantite.png", - groups = {armor_feet=16, armor_heal=12, physics_gravity=-0.15, armor_use=30}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:shield_adamantite", { - description = "Adamantite Shield", - inventory_image = "xtraores_armor_inv_shield_adamantite.png", - groups = {armor_shield=16, armor_heal=12, physics_gravity=-0.15, armor_use=75}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:helmet_rarium", { - description = "Rarium Helmet", - inventory_image = "xtraores_armor_inv_helmet_rarium.png", - groups = {armor_head=16.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:chestplate_rarium", { - description = "Rarium Chestplate", - inventory_image = "xtraores_armor_inv_chestplate_rarium.png", - groups = {armor_torso=21.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:leggings_rarium", { - description = "Rarium Leggings", - inventory_image = "xtraores_armor_inv_leggings_rarium.png", - groups = {armor_legs=21.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:boots_rarium", { - description = "Rarium Boots", - inventory_image = "xtraores_armor_inv_boots_rarium.png", - groups = {armor_feet=16.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:shield_rarium", { - description = "Rarium Shield", - inventory_image = "xtraores_armor_inv_shield_rarium.png", - groups = {armor_shield=16.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:helmet_unobtanium", { - description = "Unobtanium Helmet", - inventory_image = "xtraores_armor_inv_helmet_unobtanium.png", - groups = {armor_head=17, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:chestplate_unobtanium", { - description = "Unobtanium Chestplate", - inventory_image = "xtraores_armor_inv_chestplate_unobtanium.png", - groups = {armor_torso=22, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:leggings_unobtanium", { - description = "Unobtanium Leggings", - inventory_image = "xtraores_armor_inv_leggings_unobtanium.png", - groups = {armor_legs=22, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:boots_unobtanium", { - description = "Unobtanium Boots", - inventory_image = "xtraores_armor_inv_boots_unobtanium.png", - groups = {armor_feet=17, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:shield_unobtanium", { - description = "Unobtanium Shield", - inventory_image = "xtraores_armor_inv_shield_unobtanium.png", - groups = {armor_shield=17, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, - wear = 0, +--Is 3d_armor actually enabled? +if minetest.get_modpath("3d_armor") then + --Armor registration function + function xtraores.register_armor(name, def) + armor:register_armor("xtraores_armor:helmet_"..name, { + description = xtraores.upper(name).." Helmet", + inventory_image = "xtraores_armor_inv_helmet_"..name..".png", + groups = def.helmet_groups, + wear = 0, + }) + + armor:register_armor("xtraores_armor:chestplate_"..name, { + description = xtraores.upper(name).." Chestplate", + inventory_image = "xtraores_armor_inv_chestplate_"..name..".png", + groups = def.chestplate_groups, + wear = 0, + }) + + armor:register_armor("xtraores_armor:leggings_"..name, { + description = xtraores.upper(name).." Leggings", + inventory_image = "xtraores_armor_inv_leggings_"..name..".png", + groups = def.leggings_groups, + wear = 0, + }) + + armor:register_armor("xtraores_armor:boots_"..name, { + description = xtraores.upper(name).." Boots", + inventory_image = "xtraores_armor_inv_boots_"..name..".png", + groups = def.boots_groups, + wear = 0, + }) + + armor:register_armor("xtraores_armor:shield_"..name, { + description = xtraores.upper(name).." Shield", + inventory_image = "xtraores_armor_inv_shield_"..name..".png", + groups = def.shield_groups, + wear = 0, + }) + + local i = "xtraores:"..name.."_ingot" + + minetest.register_craft({ + output = "xtraores_armor:helmet_"..name, + recipe = { + {i, i, i}, + {i, "", i}, + {"", "", ""}, + }, + }) + minetest.register_craft({ + output = "xtraores_armor:chestplate_"..name, + recipe = { + {i, "", i}, + {i, i, i}, + {i, i, i}, + }, + }) + minetest.register_craft({ + output = "xtraores_armor:leggings_"..name, + recipe = { + {i, i, i}, + {i, "", i}, + {i, "", i}, + }, + }) + minetest.register_craft({ + output = "xtraores_armor:boots_"..name, + recipe = { + {i, "", i}, + {i, "", i}, + }, + }) + minetest.register_craft({ + output = "xtraores_armor:shield_"..name, + recipe = { + {i, i, i}, + {i, i, i}, + {"", i, ""}, + }, + }) + end + + --Register the armors (that's a lot of words) + xtraores.register_armor("platinum", { + helmet_helmet_groups = {armor_head=12, armor_heal=7, armor_use=200}, + chestplate_chestplate_groups = {armor_torso=17, armor_heal=7, armor_use=200}, + leggings_leggings_groups = {armor_legs=17, armor_heal=7, armor_use=200}, + boots_boots_groups = {armor_feet=12, armor_heal=7, armor_use=200}, + shield_shield_groups = {armor_shield=12, armor_heal=7, armor_use=200}, }) - minetest.register_tool("xtraores_armor:helmet_titanium", { - description = "Titanium Helmet", - inventory_image = "xtraores_armor_inv_helmet_titanium.png", - groups = {armor_head=17.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:chestplate_titanium", { - description = "Titanium Chestplate", - inventory_image = "xtraores_armor_inv_chestplate_titanium.png", - groups = {armor_torso=22.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:leggings_titanium", { - description = "Titanium Leggings", - inventory_image = "xtraores_armor_inv_leggings_titanium.png", - groups = {armor_legs=22.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:boots_titanium", { - description = "Titanium Boots", - inventory_image = "xtraores_armor_inv_boots_titanium.png", - groups = {armor_feet=17.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, - wear = 0, - }) - minetest.register_tool("xtraores_armor:shield_titanium", { - description = "Titanium Shield", - inventory_image = "xtraores_armor_inv_shield_titanium.png", - groups = {armor_shield=17.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, - wear = 0, + xtraores.register_armor("cobalt", { + helmet_helmet_groups = {armor_head=15, armor_heal=12, physics_speed=0.15, armor_use=75}, + chestplate_chestplate_groups = {armor_torso=20, armor_heal=12, physics_speed=0.15, armor_use=75}, + leggings_leggings_groups = {armor_legs=20, armor_heal=12, physics_speed=0.15, armor_use=75}, + boots_boots_groups = {armor_feet=15, armor_heal=12, physics_speed=0.15, armor_use=75}, + shield_shield_groups = {armor_shield=15, armor_heal=12, physics_speed=0.15, armor_use=75}, }) + xtraores.register_armor("osmium", { + helmet_groups = {armor_head=15.4, armor_heal=12, physics_jump=0.15, armor_use=50}, + chestplate_groups = {armor_torso=20.4, armor_heal=12, physics_jump=0.15, armor_use=50}, + leggings_groups = {armor_legs=20.4, armor_heal=12, physics_jump=0.15, armor_use=50}, + boots_groups = {armor_feet=15.4, armor_heal=12, physics_jump=0.15, armor_use=50}, + shield_groups = {armor_shield=15.4, armor_heal=12, physics_jump=0.15, armor_use=50}, + }) --- Register Craft Recipies + xtraores.register_armor("adamantite", { + helmet_groups = {armor_head=16, armor_heal=12, physics_gravity=-0.15, armor_use=30}, + chestplate_groups = {armor_torso=21, armor_heal=12, physics_gravity=-0.15, armor_use=30}, + leggings_groups = {armor_legs=21, armor_heal=12, physics_gravity=-0.15, armor_use=30}, + boots_groups = {armor_feet=16, armor_heal=12, physics_gravity=-0.15, armor_use=30}, + shield_groups = {armor_shield=16, armor_heal=12, physics_gravity=-0.15, armor_use=75}, + }) -local craft_ingreds = { - platinum = "xtraores:platinum_bar", - cobalt = "xtraores:cobalt_bar", - osmium = "xtraores:osmium_bar", - adamantite = "xtraores:adamantite_bar", - rarium = "xtraores:rarium_bar", - unobtanium = "xtraores:unobtanium_bar", - titanium = "xtraores:titanium_bar", -} + xtraores.register_armor("rarium", { + helmet_groups = {armor_head=16.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, + chestplate_groups = {armor_torso=21.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, + leggings_groups = {armor_legs=21.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, + boots_groups = {armor_feet=16.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, + shield_groups = {armor_shield=16.4, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_use=20}, + }) -for k, v in pairs(craft_ingreds) do - minetest.register_craft({ - output = "xtraores_armor:helmet_"..k, - recipe = { - {v, v, v}, - {v, "", v}, - {"", "", ""}, - }, + xtraores.register_armor("unobtanium", { + helmet_groups = {armor_head=17, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, + chestplate_groups = {armor_torso=22, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, + leggings_groups = {armor_legs=22, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, + boots_groups = {armor_feet=17, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, + shield_groups = {armor_shield=17, armor_heal=12, physics_gravity=-0.15, physics_speed=0.15, physics_jump=0.15, armor_fire=1, armor_use=20}, }) - minetest.register_craft({ - output = "xtraores_armor:chestplate_"..k, - recipe = { - {v, "", v}, - {v, v, v}, - {v, v, v}, - }, - }) - minetest.register_craft({ - output = "xtraores_armor:leggings_"..k, - recipe = { - {v, v, v}, - {v, "", v}, - {v, "", v}, - }, - }) - minetest.register_craft({ - output = "xtraores_armor:boots_"..k, - recipe = { - {v, "", v}, - {v, "", v}, - }, - }) - minetest.register_craft({ - output = "xtraores_armor:shield_"..k, - recipe = { - {v, v, v}, - {v, v, v}, - {"", v, ""}, - }, + + xtraores.register_armor("titanium", { + helmet_groups = {armor_head=17.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, + chestplate_groups = {armor_torso=22.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, + leggings_groups = {armor_legs=22.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, + boots_groups = {armor_feet=17.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, + shield_groups = {armor_shield=17.6, armor_heal=14, physics_gravity=-0.18, physics_speed=0.25, physics_jump=0.16, armor_fire=1, armor_use=20}, }) + + minetest.log("action", "[MOD] Xtraores: Module (armor) loaded!") end +--That's a lot of words. This file used to be ~300 lines though \ No newline at end of file diff --git a/xtraores_armor/textures/xtraores_armor_boots_adamantite.png b/xtraores_armor/textures/xtraores_armor_boots_adamantite.png index 39dce5e..b2e6e79 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_adamantite.png and b/xtraores_armor/textures/xtraores_armor_boots_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_adamantite_preview.png b/xtraores_armor/textures/xtraores_armor_boots_adamantite_preview.png index 5c8d098..28c26e9 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_adamantite_preview.png and b/xtraores_armor/textures/xtraores_armor_boots_adamantite_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_cobalt.png b/xtraores_armor/textures/xtraores_armor_boots_cobalt.png index 619c7dc..7d57bf2 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_cobalt.png and b/xtraores_armor/textures/xtraores_armor_boots_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_cobalt_preview.png b/xtraores_armor/textures/xtraores_armor_boots_cobalt_preview.png index 1398911..ffc9476 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_cobalt_preview.png and b/xtraores_armor/textures/xtraores_armor_boots_cobalt_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_osmium.png b/xtraores_armor/textures/xtraores_armor_boots_osmium.png index 6339565..bfca61c 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_osmium.png and b/xtraores_armor/textures/xtraores_armor_boots_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_osmium_preview.png b/xtraores_armor/textures/xtraores_armor_boots_osmium_preview.png index 5bf1282..b4e15a0 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_osmium_preview.png and b/xtraores_armor/textures/xtraores_armor_boots_osmium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_platinum.png b/xtraores_armor/textures/xtraores_armor_boots_platinum.png index c782e6c..7d324eb 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_platinum.png and b/xtraores_armor/textures/xtraores_armor_boots_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_platinum_preview.png b/xtraores_armor/textures/xtraores_armor_boots_platinum_preview.png index 4790e1d..a27220b 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_platinum_preview.png and b/xtraores_armor/textures/xtraores_armor_boots_platinum_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_rarium.png b/xtraores_armor/textures/xtraores_armor_boots_rarium.png index 32fc836..7ed1b34 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_rarium.png and b/xtraores_armor/textures/xtraores_armor_boots_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_rarium_preview.png b/xtraores_armor/textures/xtraores_armor_boots_rarium_preview.png index 5f152cc..a63868d 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_rarium_preview.png and b/xtraores_armor/textures/xtraores_armor_boots_rarium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_titanium.png b/xtraores_armor/textures/xtraores_armor_boots_titanium.png index 5be3eb4..3ccf36b 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_titanium.png and b/xtraores_armor/textures/xtraores_armor_boots_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_titanium_preview.png b/xtraores_armor/textures/xtraores_armor_boots_titanium_preview.png index f686d5d..91ba43e 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_titanium_preview.png and b/xtraores_armor/textures/xtraores_armor_boots_titanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_unobtanium.png b/xtraores_armor/textures/xtraores_armor_boots_unobtanium.png index 89ea8c8..8518ee0 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_boots_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_boots_unobtanium_preview.png b/xtraores_armor/textures/xtraores_armor_boots_unobtanium_preview.png index 9f1dbda..72f2aa2 100644 Binary files a/xtraores_armor/textures/xtraores_armor_boots_unobtanium_preview.png and b/xtraores_armor/textures/xtraores_armor_boots_unobtanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_adamantite.png b/xtraores_armor/textures/xtraores_armor_chestplate_adamantite.png index 2510cf0..4e1a769 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_adamantite.png and b/xtraores_armor/textures/xtraores_armor_chestplate_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_adamantite_preview.png b/xtraores_armor/textures/xtraores_armor_chestplate_adamantite_preview.png index e5b776a..42ef3ee 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_adamantite_preview.png and b/xtraores_armor/textures/xtraores_armor_chestplate_adamantite_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_cobalt.png b/xtraores_armor/textures/xtraores_armor_chestplate_cobalt.png index b98cf1c..6e7efe0 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_cobalt.png and b/xtraores_armor/textures/xtraores_armor_chestplate_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_cobalt_preview.png b/xtraores_armor/textures/xtraores_armor_chestplate_cobalt_preview.png index eda1640..ab878fe 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_cobalt_preview.png and b/xtraores_armor/textures/xtraores_armor_chestplate_cobalt_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_osmium.png b/xtraores_armor/textures/xtraores_armor_chestplate_osmium.png index c0852f7..f8f530f 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_osmium.png and b/xtraores_armor/textures/xtraores_armor_chestplate_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_osmium_preview.png b/xtraores_armor/textures/xtraores_armor_chestplate_osmium_preview.png index d9ac403..42f67ad 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_osmium_preview.png and b/xtraores_armor/textures/xtraores_armor_chestplate_osmium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_platinum.png b/xtraores_armor/textures/xtraores_armor_chestplate_platinum.png index 71530aa..c0eef8d 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_platinum.png and b/xtraores_armor/textures/xtraores_armor_chestplate_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_platinum_preview.png b/xtraores_armor/textures/xtraores_armor_chestplate_platinum_preview.png index 892a41d..6cddcb5 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_platinum_preview.png and b/xtraores_armor/textures/xtraores_armor_chestplate_platinum_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_rarium.png b/xtraores_armor/textures/xtraores_armor_chestplate_rarium.png index 42ad009..4ad11a6 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_rarium.png and b/xtraores_armor/textures/xtraores_armor_chestplate_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_rarium_preview.png b/xtraores_armor/textures/xtraores_armor_chestplate_rarium_preview.png index 8d9905e..80b2457 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_rarium_preview.png and b/xtraores_armor/textures/xtraores_armor_chestplate_rarium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_titanium.png b/xtraores_armor/textures/xtraores_armor_chestplate_titanium.png index 38d4dc3..1c8af29 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_titanium.png and b/xtraores_armor/textures/xtraores_armor_chestplate_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_titanium_preview.png b/xtraores_armor/textures/xtraores_armor_chestplate_titanium_preview.png index 18eb0e5..86dbc69 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_titanium_preview.png and b/xtraores_armor/textures/xtraores_armor_chestplate_titanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_unobtanium.png b/xtraores_armor/textures/xtraores_armor_chestplate_unobtanium.png index 854b29e..2adb3e4 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_chestplate_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_chestplate_unobtanium_preview.png b/xtraores_armor/textures/xtraores_armor_chestplate_unobtanium_preview.png index 0a55a32..f1fbfa2 100644 Binary files a/xtraores_armor/textures/xtraores_armor_chestplate_unobtanium_preview.png and b/xtraores_armor/textures/xtraores_armor_chestplate_unobtanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_adamantite.png b/xtraores_armor/textures/xtraores_armor_helmet_adamantite.png index e6422f3..86e847d 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_adamantite.png and b/xtraores_armor/textures/xtraores_armor_helmet_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_adamantite_preview.png b/xtraores_armor/textures/xtraores_armor_helmet_adamantite_preview.png index 3b3853c..e9eaea3 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_adamantite_preview.png and b/xtraores_armor/textures/xtraores_armor_helmet_adamantite_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_cobalt.png b/xtraores_armor/textures/xtraores_armor_helmet_cobalt.png index 7daa4c7..4fa6876 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_cobalt.png and b/xtraores_armor/textures/xtraores_armor_helmet_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_cobalt_preview.png b/xtraores_armor/textures/xtraores_armor_helmet_cobalt_preview.png index e715a38..be78d97 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_cobalt_preview.png and b/xtraores_armor/textures/xtraores_armor_helmet_cobalt_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_crown.png b/xtraores_armor/textures/xtraores_armor_helmet_crown.png deleted file mode 100644 index d9d4fc8..0000000 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_crown.png and /dev/null differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_crown_preview.png b/xtraores_armor/textures/xtraores_armor_helmet_crown_preview.png deleted file mode 100644 index 0c0e933..0000000 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_crown_preview.png and /dev/null differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_osmium.png b/xtraores_armor/textures/xtraores_armor_helmet_osmium.png index 55ece7a..6a2b86f 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_osmium.png and b/xtraores_armor/textures/xtraores_armor_helmet_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_osmium_preview.png b/xtraores_armor/textures/xtraores_armor_helmet_osmium_preview.png index 9d36bc5..3520f88 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_osmium_preview.png and b/xtraores_armor/textures/xtraores_armor_helmet_osmium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_platinum.png b/xtraores_armor/textures/xtraores_armor_helmet_platinum.png index d5e4f2d..36d25ed 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_platinum.png and b/xtraores_armor/textures/xtraores_armor_helmet_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_platinum_preview.png b/xtraores_armor/textures/xtraores_armor_helmet_platinum_preview.png index 48f77e2..b7d9490 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_platinum_preview.png and b/xtraores_armor/textures/xtraores_armor_helmet_platinum_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_rarium.png b/xtraores_armor/textures/xtraores_armor_helmet_rarium.png index 113fca8..44f206b 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_rarium.png and b/xtraores_armor/textures/xtraores_armor_helmet_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_rarium_preview.png b/xtraores_armor/textures/xtraores_armor_helmet_rarium_preview.png index 6624fc0..539075c 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_rarium_preview.png and b/xtraores_armor/textures/xtraores_armor_helmet_rarium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_titanium.png b/xtraores_armor/textures/xtraores_armor_helmet_titanium.png index b0e6ee9..03cce78 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_titanium.png and b/xtraores_armor/textures/xtraores_armor_helmet_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_titanium_preview.png b/xtraores_armor/textures/xtraores_armor_helmet_titanium_preview.png index 24056d4..35e92db 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_titanium_preview.png and b/xtraores_armor/textures/xtraores_armor_helmet_titanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_unobtanium.png b/xtraores_armor/textures/xtraores_armor_helmet_unobtanium.png index 9ba8137..8e82f2f 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_helmet_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_helmet_unobtanium_preview.png b/xtraores_armor/textures/xtraores_armor_helmet_unobtanium_preview.png index 417ed85..9c020ee 100644 Binary files a/xtraores_armor/textures/xtraores_armor_helmet_unobtanium_preview.png and b/xtraores_armor/textures/xtraores_armor_helmet_unobtanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_boots_adamantite.png b/xtraores_armor/textures/xtraores_armor_inv_boots_adamantite.png index 5560cde..34e5e51 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_boots_adamantite.png and b/xtraores_armor/textures/xtraores_armor_inv_boots_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_boots_cobalt.png b/xtraores_armor/textures/xtraores_armor_inv_boots_cobalt.png index bda6682..ecd43b8 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_boots_cobalt.png and b/xtraores_armor/textures/xtraores_armor_inv_boots_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_boots_osmium.png b/xtraores_armor/textures/xtraores_armor_inv_boots_osmium.png index 02244cc..610b935 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_boots_osmium.png and b/xtraores_armor/textures/xtraores_armor_inv_boots_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_boots_platinum.png b/xtraores_armor/textures/xtraores_armor_inv_boots_platinum.png index 6f7922e..0de544e 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_boots_platinum.png and b/xtraores_armor/textures/xtraores_armor_inv_boots_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_boots_rarium.png b/xtraores_armor/textures/xtraores_armor_inv_boots_rarium.png index ebdaf66..650bae6 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_boots_rarium.png and b/xtraores_armor/textures/xtraores_armor_inv_boots_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_boots_titanium.png b/xtraores_armor/textures/xtraores_armor_inv_boots_titanium.png index f971fcf..da2c8b9 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_boots_titanium.png and b/xtraores_armor/textures/xtraores_armor_inv_boots_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_boots_unobtanium.png b/xtraores_armor/textures/xtraores_armor_inv_boots_unobtanium.png index add3d3f..bdf9995 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_boots_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_inv_boots_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_chestplate_adamantite.png b/xtraores_armor/textures/xtraores_armor_inv_chestplate_adamantite.png index a2bac1e..e5739a3 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_chestplate_adamantite.png and b/xtraores_armor/textures/xtraores_armor_inv_chestplate_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_chestplate_cobalt.png b/xtraores_armor/textures/xtraores_armor_inv_chestplate_cobalt.png index ec2b0b9..05821f2 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_chestplate_cobalt.png and b/xtraores_armor/textures/xtraores_armor_inv_chestplate_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_chestplate_osmium.png b/xtraores_armor/textures/xtraores_armor_inv_chestplate_osmium.png index 90d92eb..f21b6af 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_chestplate_osmium.png and b/xtraores_armor/textures/xtraores_armor_inv_chestplate_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_chestplate_platinum.png b/xtraores_armor/textures/xtraores_armor_inv_chestplate_platinum.png index 13cb56c..ac5ab97 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_chestplate_platinum.png and b/xtraores_armor/textures/xtraores_armor_inv_chestplate_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_chestplate_rarium.png b/xtraores_armor/textures/xtraores_armor_inv_chestplate_rarium.png index 286dc85..1e0c9f3 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_chestplate_rarium.png and b/xtraores_armor/textures/xtraores_armor_inv_chestplate_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_chestplate_titanium.png b/xtraores_armor/textures/xtraores_armor_inv_chestplate_titanium.png index 6998556..1eac056 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_chestplate_titanium.png and b/xtraores_armor/textures/xtraores_armor_inv_chestplate_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_chestplate_unobtanium.png b/xtraores_armor/textures/xtraores_armor_inv_chestplate_unobtanium.png index 711cf7f..bec605d 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_chestplate_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_inv_chestplate_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_helmet_adamantite.png b/xtraores_armor/textures/xtraores_armor_inv_helmet_adamantite.png index 2352263..e79ca3b 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_helmet_adamantite.png and b/xtraores_armor/textures/xtraores_armor_inv_helmet_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_helmet_cobalt.png b/xtraores_armor/textures/xtraores_armor_inv_helmet_cobalt.png index 1d35ade..f251a09 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_helmet_cobalt.png and b/xtraores_armor/textures/xtraores_armor_inv_helmet_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_helmet_crown.png b/xtraores_armor/textures/xtraores_armor_inv_helmet_crown.png deleted file mode 100644 index a690f51..0000000 Binary files a/xtraores_armor/textures/xtraores_armor_inv_helmet_crown.png and /dev/null differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_helmet_osmium.png b/xtraores_armor/textures/xtraores_armor_inv_helmet_osmium.png index fea637e..3e3e16f 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_helmet_osmium.png and b/xtraores_armor/textures/xtraores_armor_inv_helmet_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_helmet_platinum.png b/xtraores_armor/textures/xtraores_armor_inv_helmet_platinum.png index bab3d6c..c0b96b6 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_helmet_platinum.png and b/xtraores_armor/textures/xtraores_armor_inv_helmet_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_helmet_rarium.png b/xtraores_armor/textures/xtraores_armor_inv_helmet_rarium.png index e8f72c2..ecefbff 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_helmet_rarium.png and b/xtraores_armor/textures/xtraores_armor_inv_helmet_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_helmet_titanium.png b/xtraores_armor/textures/xtraores_armor_inv_helmet_titanium.png index 63c0913..d8ee15a 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_helmet_titanium.png and b/xtraores_armor/textures/xtraores_armor_inv_helmet_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_helmet_unobtanium.png b/xtraores_armor/textures/xtraores_armor_inv_helmet_unobtanium.png index b59d0af..f42465f 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_helmet_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_inv_helmet_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_leggings_adamantite.png b/xtraores_armor/textures/xtraores_armor_inv_leggings_adamantite.png index 033ab9d..b90ddbc 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_leggings_adamantite.png and b/xtraores_armor/textures/xtraores_armor_inv_leggings_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_leggings_cobalt.png b/xtraores_armor/textures/xtraores_armor_inv_leggings_cobalt.png index 93add27..06c43ca 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_leggings_cobalt.png and b/xtraores_armor/textures/xtraores_armor_inv_leggings_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_leggings_osmium.png b/xtraores_armor/textures/xtraores_armor_inv_leggings_osmium.png index ef79a9c..d14bd95 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_leggings_osmium.png and b/xtraores_armor/textures/xtraores_armor_inv_leggings_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_leggings_platinum.png b/xtraores_armor/textures/xtraores_armor_inv_leggings_platinum.png index 20bd287..4f8d7ae 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_leggings_platinum.png and b/xtraores_armor/textures/xtraores_armor_inv_leggings_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_leggings_rarium.png b/xtraores_armor/textures/xtraores_armor_inv_leggings_rarium.png index fd82690..bc48480 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_leggings_rarium.png and b/xtraores_armor/textures/xtraores_armor_inv_leggings_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_leggings_titanium.png b/xtraores_armor/textures/xtraores_armor_inv_leggings_titanium.png index d5476b3..de507ff 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_leggings_titanium.png and b/xtraores_armor/textures/xtraores_armor_inv_leggings_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_leggings_unobtanium.png b/xtraores_armor/textures/xtraores_armor_inv_leggings_unobtanium.png index bc4b2c7..f827365 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_leggings_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_inv_leggings_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_shield_adamantite.png b/xtraores_armor/textures/xtraores_armor_inv_shield_adamantite.png index ae830b0..20a0761 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_shield_adamantite.png and b/xtraores_armor/textures/xtraores_armor_inv_shield_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_shield_cobalt.png b/xtraores_armor/textures/xtraores_armor_inv_shield_cobalt.png index 90b80a0..c301f53 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_shield_cobalt.png and b/xtraores_armor/textures/xtraores_armor_inv_shield_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_shield_osmium.png b/xtraores_armor/textures/xtraores_armor_inv_shield_osmium.png index c68b4dd..d2309ff 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_shield_osmium.png and b/xtraores_armor/textures/xtraores_armor_inv_shield_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_shield_platinum.png b/xtraores_armor/textures/xtraores_armor_inv_shield_platinum.png index dcaa7d2..571fd19 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_shield_platinum.png and b/xtraores_armor/textures/xtraores_armor_inv_shield_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_shield_rarium.png b/xtraores_armor/textures/xtraores_armor_inv_shield_rarium.png index c71686e..7b57d92 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_shield_rarium.png and b/xtraores_armor/textures/xtraores_armor_inv_shield_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_shield_titanium.png b/xtraores_armor/textures/xtraores_armor_inv_shield_titanium.png index d2bd171..4f39727 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_shield_titanium.png and b/xtraores_armor/textures/xtraores_armor_inv_shield_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_inv_shield_unobtanium.png b/xtraores_armor/textures/xtraores_armor_inv_shield_unobtanium.png index 4df5e19..2cbd5e3 100644 Binary files a/xtraores_armor/textures/xtraores_armor_inv_shield_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_inv_shield_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_adamantite.png b/xtraores_armor/textures/xtraores_armor_leggings_adamantite.png index 4c49f35..4b5bda2 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_adamantite.png and b/xtraores_armor/textures/xtraores_armor_leggings_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_adamantite_preview.png b/xtraores_armor/textures/xtraores_armor_leggings_adamantite_preview.png index 247a68d..bc3fc12 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_adamantite_preview.png and b/xtraores_armor/textures/xtraores_armor_leggings_adamantite_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_cobalt.png b/xtraores_armor/textures/xtraores_armor_leggings_cobalt.png index e48853e..556c15d 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_cobalt.png and b/xtraores_armor/textures/xtraores_armor_leggings_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_cobalt_preview.png b/xtraores_armor/textures/xtraores_armor_leggings_cobalt_preview.png index 77475a1..a5a0c59 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_cobalt_preview.png and b/xtraores_armor/textures/xtraores_armor_leggings_cobalt_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_osmium.png b/xtraores_armor/textures/xtraores_armor_leggings_osmium.png index 7cb1d7f..56afc03 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_osmium.png and b/xtraores_armor/textures/xtraores_armor_leggings_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_osmium_preview.png b/xtraores_armor/textures/xtraores_armor_leggings_osmium_preview.png index 7de7939..8ed3fab 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_osmium_preview.png and b/xtraores_armor/textures/xtraores_armor_leggings_osmium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_platinum.png b/xtraores_armor/textures/xtraores_armor_leggings_platinum.png index 2ddf1c2..0fef568 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_platinum.png and b/xtraores_armor/textures/xtraores_armor_leggings_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_platinum_preview - Kopija.png b/xtraores_armor/textures/xtraores_armor_leggings_platinum_preview - Kopija.png deleted file mode 100644 index 572fb1b..0000000 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_platinum_preview - Kopija.png and /dev/null differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_platinum_preview.png b/xtraores_armor/textures/xtraores_armor_leggings_platinum_preview.png new file mode 100644 index 0000000..b843a3f Binary files /dev/null and b/xtraores_armor/textures/xtraores_armor_leggings_platinum_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_rarium.png b/xtraores_armor/textures/xtraores_armor_leggings_rarium.png index cca9619..48fd598 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_rarium.png and b/xtraores_armor/textures/xtraores_armor_leggings_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_rarium_preview.png b/xtraores_armor/textures/xtraores_armor_leggings_rarium_preview.png index 7033c9d..58fd947 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_rarium_preview.png and b/xtraores_armor/textures/xtraores_armor_leggings_rarium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_titanium.png b/xtraores_armor/textures/xtraores_armor_leggings_titanium.png index 0eadaab..78e38b4 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_titanium.png and b/xtraores_armor/textures/xtraores_armor_leggings_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_titanium_preview.png b/xtraores_armor/textures/xtraores_armor_leggings_titanium_preview.png index 1c1c0bc..6b241c0 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_titanium_preview.png and b/xtraores_armor/textures/xtraores_armor_leggings_titanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_unobtanium.png b/xtraores_armor/textures/xtraores_armor_leggings_unobtanium.png index 3f2bcbb..c4494e3 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_leggings_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_leggings_unobtanium_preview.png b/xtraores_armor/textures/xtraores_armor_leggings_unobtanium_preview.png index 316f87c..e4a7d77 100644 Binary files a/xtraores_armor/textures/xtraores_armor_leggings_unobtanium_preview.png and b/xtraores_armor/textures/xtraores_armor_leggings_unobtanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_adamantite.png b/xtraores_armor/textures/xtraores_armor_shield_adamantite.png index c2cafb7..9b8c276 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_adamantite.png and b/xtraores_armor/textures/xtraores_armor_shield_adamantite.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_adamantite_preview.png b/xtraores_armor/textures/xtraores_armor_shield_adamantite_preview.png index 2c27bfd..0c80fb9 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_adamantite_preview.png and b/xtraores_armor/textures/xtraores_armor_shield_adamantite_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_cobalt.png b/xtraores_armor/textures/xtraores_armor_shield_cobalt.png index c4d8a75..f0f096a 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_cobalt.png and b/xtraores_armor/textures/xtraores_armor_shield_cobalt.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_cobalt_preview.png b/xtraores_armor/textures/xtraores_armor_shield_cobalt_preview.png index a80058e..16af65a 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_cobalt_preview.png and b/xtraores_armor/textures/xtraores_armor_shield_cobalt_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_osmium.png b/xtraores_armor/textures/xtraores_armor_shield_osmium.png index 845410a..98bbc4a 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_osmium.png and b/xtraores_armor/textures/xtraores_armor_shield_osmium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_osmium_preview.png b/xtraores_armor/textures/xtraores_armor_shield_osmium_preview.png index 4c3b540..2210398 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_osmium_preview.png and b/xtraores_armor/textures/xtraores_armor_shield_osmium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_platinum.png b/xtraores_armor/textures/xtraores_armor_shield_platinum.png index 17db9a9..8d00b7b 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_platinum.png and b/xtraores_armor/textures/xtraores_armor_shield_platinum.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_platinum_preview.png b/xtraores_armor/textures/xtraores_armor_shield_platinum_preview.png index 360f7b1..d547f50 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_platinum_preview.png and b/xtraores_armor/textures/xtraores_armor_shield_platinum_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_rarium.png b/xtraores_armor/textures/xtraores_armor_shield_rarium.png index 727996f..93f7f9c 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_rarium.png and b/xtraores_armor/textures/xtraores_armor_shield_rarium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_rarium_preview.png b/xtraores_armor/textures/xtraores_armor_shield_rarium_preview.png index 7829228..4e02106 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_rarium_preview.png and b/xtraores_armor/textures/xtraores_armor_shield_rarium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_titanium.png b/xtraores_armor/textures/xtraores_armor_shield_titanium.png index 0b29ac4..798b1c9 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_titanium.png and b/xtraores_armor/textures/xtraores_armor_shield_titanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_titanium_preview.png b/xtraores_armor/textures/xtraores_armor_shield_titanium_preview.png index 0611d93..8284d96 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_titanium_preview.png and b/xtraores_armor/textures/xtraores_armor_shield_titanium_preview.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_unobtanium.png b/xtraores_armor/textures/xtraores_armor_shield_unobtanium.png index d171cf1..57b8ed3 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_unobtanium.png and b/xtraores_armor/textures/xtraores_armor_shield_unobtanium.png differ diff --git a/xtraores_armor/textures/xtraores_armor_shield_unobtanium_preview.png b/xtraores_armor/textures/xtraores_armor_shield_unobtanium_preview.png index ce610a9..a493c48 100644 Binary files a/xtraores_armor/textures/xtraores_armor_shield_unobtanium_preview.png and b/xtraores_armor/textures/xtraores_armor_shield_unobtanium_preview.png differ diff --git a/xtraores_guns/bullets.lua b/xtraores_guns/bullets.lua new file mode 100644 index 0000000..cfa916b --- /dev/null +++ b/xtraores_guns/bullets.lua @@ -0,0 +1,555 @@ +--Is Technic enabled? +if minetest.get_modpath("technic") then + --Let's just copy the Technic stuff because the API is a pain + local S = technic.getter + + local fs_helpers = pipeworks.fs_helpers + local tube_entry = "^pipeworks_tube_connection_metallic.png" + + local tube = { + insert_object = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:add_item("src", stack) + end, + can_insert = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + if meta:get_int("splitstacks") == 1 then + stack = stack:peek_item(1) + end + return inv:room_for_item("src", stack) + end, + connect_sides = {left = 1, right = 1, back = 1, top = 1, bottom = 1}, + } + + local connect_default = {"bottom", "back", "left", "right"} + + local function round(v) + return math.floor(v + 0.5) + end + + --Modify it for our needs, of course + function xtraores.register_base_machine(data) + local typename = data.typename + local input_size = 4--technic.recipes[typename].input_size + local machine_name = data.machine_name + local machine_desc = data.machine_desc + local tier = data.tier + local ltier = string.lower(tier) + + local groups = {cracky = 2, technic_machine = 1, ["technic_"..ltier] = 1} + if data.tube then + groups.tubedevice = 1 + groups.tubedevice_receiver = 1 + end + local active_groups = {not_in_creative_inventory = 1} + for k, v in pairs(groups) do active_groups[k] = v end + + local formspec = + "invsize[8,9;]".. + "list[current_name;src;"..(4-input_size)..",1;4,1;]".. + "list[current_name;dst;5,1;2,2;]".. + "list[current_player;main;0,5;8,4;]".. + "label[0,0;"..machine_desc:format(tier).."]".. + "listring[current_name;dst]".. + "listring[current_player;main]".. + "listring[current_name;src]".. + "listring[current_player;main]".. + "image_button[0,2;0.5,0.5;info.png;info;]".. + "tooltip[info;Input Required:\n• Gunpowder\n• Brass Ingot\n• Lead, Copper, or Silver Ingot\n• Bullet Mold;#5c5c5c;#FFFFFF]" + if data.upgrade then + formspec = formspec.. + "list[current_name;upgrade1;1,3;1,1;]".. + "list[current_name;upgrade2;2,3;1,1;]".. + "label[1,4;"..S("Upgrade Slots").."]".. + "listring[current_name;upgrade1]".. + "listring[current_player;main]".. + "listring[current_name;upgrade2]".. + "listring[current_player;main]" + end + + local run = function(pos, node) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local eu_input = meta:get_int(tier.."_EU_input") + + local machine_desc_tier = machine_desc:format(tier) + local machine_node = "xtraores_guns:"..ltier.."_"..machine_name + local machine_demand = data.demand + + -- Setup meta data if it does not exist. + if not eu_input then + meta:set_int(tier.."_EU_demand", machine_demand[1]) + meta:set_int(tier.."_EU_input", 0) + return + end + + local EU_upgrade, tube_upgrade = 0, 0 + if data.upgrade then + EU_upgrade, tube_upgrade = technic.handle_machine_upgrades(meta) + end + if data.tube then + technic.handle_machine_pipeworks(pos, tube_upgrade) + end + + local powered = eu_input >= machine_demand[EU_upgrade+1] + if powered then + meta:set_int("src_time", meta:get_int("src_time") + round(data.speed*10)) + end + while true do + local result = technic.get_recipe(typename, inv:get_list("src")) + if not result then + technic.swap_node(pos, machine_node) + meta:set_string("infotext", S("%s Idle"):format(machine_desc_tier)) + meta:set_int(tier.."_EU_demand", 0) + meta:set_int("src_time", 0) + return + end + meta:set_int(tier.."_EU_demand", machine_demand[EU_upgrade+1]) + technic.swap_node(pos, machine_node.."_active") + meta:set_string("infotext", S("%s Active"):format(machine_desc_tier)) + if meta:get_int("src_time") < round(result.time*10) then + if not powered then + technic.swap_node(pos, machine_node) + meta:set_string("infotext", S("%s Unpowered"):format(machine_desc_tier)) + end + return + end + local output = result.output + if type(output) ~= "table" then output = { output } end + local output_stacks = {} + for _, o in ipairs(output) do + table.insert(output_stacks, ItemStack(o)) + end + local room_for_output = true + inv:set_size("dst_tmp", inv:get_size("dst")) + inv:set_list("dst_tmp", inv:get_list("dst")) + for _, o in ipairs(output_stacks) do + if not inv:room_for_item("dst_tmp", o) then + room_for_output = false + break + end + inv:add_item("dst_tmp", o) + end + if not room_for_output then + technic.swap_node(pos, machine_node) + meta:set_string("infotext", S("%s Idle"):format(machine_desc_tier)) + meta:set_int(tier.."_EU_demand", 0) + meta:set_int("src_time", round(result.time*10)) + return + end + meta:set_int("src_time", meta:get_int("src_time") - round(result.time*10)) + inv:set_list("src", result.new_input) + inv:set_list("dst", inv:get_list("dst_tmp")) + end + end + + local tentry = tube_entry + if ltier == "lv" then + tentry = "" + end + + minetest.register_node("xtraores_guns:"..ltier.."_"..machine_name, { + description = machine_desc:format(tier), + tiles = { + "technic_"..ltier.."_"..machine_name.."_top.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_panel.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_side.png^[transformFX"..tentry, + "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_panel.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_front.png" + }, + paramtype2 = "facedir", + groups = groups, + tube = data.tube and tube or nil, + connect_sides = data.connect_sides or connect_default, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + local node = minetest.get_node(pos) + local meta = minetest.get_meta(pos) + + local form_buttons = "" + if not string.find(node.name, ":lv_") then + form_buttons = fs_helpers.cycling_button( + meta, + pipeworks.button_base, + "splitstacks", + { + pipeworks.button_off, + pipeworks.button_on + } + )..pipeworks.button_label + end + + meta:set_string("infotext", machine_desc:format(tier)) + meta:set_int("tube_time", 0) + meta:set_string("formspec", formspec..form_buttons) + local inv = meta:get_inventory() + inv:set_size("src", input_size) + inv:set_size("dst", 4) + inv:set_size("upgrade1", 1) + inv:set_size("upgrade2", 1) + end, + can_dig = technic.machine_can_dig, + allow_metadata_inventory_put = technic.machine_inventory_put, + allow_metadata_inventory_take = technic.machine_inventory_take, + allow_metadata_inventory_move = technic.machine_inventory_move, + technic_run = run, + after_place_node = data.tube and pipeworks.after_place, + after_dig_node = technic.machine_after_dig_node, + on_receive_fields = function(pos, formname, fields, sender) + local node = minetest.get_node(pos) + if not pipeworks.may_configure(pos, sender) then return end + fs_helpers.on_receive_fields(pos, fields) + local meta = minetest.get_meta(pos) + local form_buttons = "" + if not string.find(node.name, ":lv_") then + form_buttons = fs_helpers.cycling_button( + meta, + pipeworks.button_base, + "splitstacks", + { + pipeworks.button_off, + pipeworks.button_on + } + )..pipeworks.button_label + end + meta:set_string("formspec", formspec..form_buttons) + end, + }) + + minetest.register_node("xtraores_guns:"..ltier.."_"..machine_name.."_active",{ + description = machine_desc:format(tier), + tiles = { + "technic_"..ltier.."_"..machine_name.."_top_active.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_panel.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_side_active.png^[transformFX"..tentry, + "technic_"..ltier.."_"..machine_name.."_side_active.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_panel.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_front_active.png" + }, + paramtype2 = "facedir", + drop = "xtraores_guns:"..ltier.."_"..machine_name, + groups = active_groups, + connect_sides = data.connect_sides or connect_default, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + tube = data.tube and tube or nil, + can_dig = technic.machine_can_dig, + allow_metadata_inventory_put = technic.machine_inventory_put, + allow_metadata_inventory_take = technic.machine_inventory_take, + allow_metadata_inventory_move = technic.machine_inventory_move, + technic_run = run, + technic_disabled_machine_name = "xtraores_guns:"..ltier.."_"..machine_name, + on_receive_fields = function(pos, formname, fields, sender) + local node = minetest.get_node(pos) + if not pipeworks.may_configure(pos, sender) then return end + fs_helpers.on_receive_fields(pos, fields) + local meta = minetest.get_meta(pos) + local form_buttons = "" + if not string.find(node.name, ":lv_") then + form_buttons = fs_helpers.cycling_button( + meta, + pipeworks.button_base, + "splitstacks", + { + pipeworks.button_off, + pipeworks.button_on + } + )..pipeworks.button_label + end + meta:set_string("formspec", formspec..form_buttons) + end, + }) + + --Looky! New machines! + technic.register_machine(tier, "xtraores_guns:"..ltier.."_"..machine_name, technic.receiver) + technic.register_machine(tier, "xtraores_guns:"..ltier.."_"..machine_name.."_active", technic.receiver) + + end -- End registration + + function technic.register_bullet_press(data) + xtraores.register_base_machine(data) + end + + technic.register_recipe_type("press", { + description = "Pressing", + input_size = 4, + }) + + if minetest.get_modpath("unified_inventory") then + --Unified_inventory doesn't like new crafting types + unified_inventory.register_craft_type("press", { + description = "Pressing", + width = 4, + height = 1, + }) + end + + function technic.register_press_recipe(data) + data.time = data.time or 20 + technic.register_recipe("press", data) + end + + --Bullet crafts + local metal = {"default:copper_ingot", "moreores:silver_ingot", "technic:lead_ingot"} + + for _, name in pairs(metal) do + local recipes = { + {"tnt:gunpowder 5", name.." 1", "technic:brass_ingot 1", "xtraores_guns:mold_308 1", "xtraores_guns:bullet_308 400"}, + {"tnt:gunpowder 5", name.." 1", "technic:brass_ingot 1", "xtraores_guns:mold_357 1", "xtraores_guns:bullet_357 400"} + } + for _, data in pairs(recipes) do + technic.register_press_recipe({ input = { data[1], data[2], data[3], data[4] }, output = { data[5] } }) + local input = { data[1], data[2], data[3], data[4] } + if minetest.get_modpath("unified_inventory") then + unified_inventory.register_craft({ + type = "press", + output = data[5], + items = input, + width = 0, + }) + end + end + end + + minetest.register_craft({ + output = "xtraores_guns:mv_bullet_press", + recipe = { + {"mesecons_pistons:piston_normal_off", "technic:motor", "mesecons_pistons:piston_normal_off"}, + {"pipeworks:tube_1", "technic:machine_casing", "pipeworks:tube_1"}, + {"technic:fine_copper_wire", "technic:mv_cable", "technic:fine_copper_wire"}, + } + }) + + technic.register_bullet_press({ + typename = "press", + machine_desc = "Bullet Press", + machine_name = "bullet_press", + tier = "MV", + demand = { 3000, 2000, 1000 }, + speed = 1, + upgrade = 1, + tube = 1, + }) + + --This is going to be replaced + minetest.clear_craft({ + type = "shapeless", + recipe = {"default:coal_lump", "default:gravel"} + }) + + local coal + + --Do we have charcoal? If not, use normal coal dust + if minetest.get_modpath("ethereal") then + minetest.register_craftitem("xtraores_guns:charcoal_dust", { + description = "Charcoal Dust", + inventory_image = "charcoal_dust.png", + }) + + technic.register_grinder_recipe({ + input = {"ethereal:charcoal_lump"}, + output = "xtraores_guns:charcoal_dust 2", + time = 5, + }) + + coal = "xtraores_guns:charcoal_dust" + else + coal = "technic:coal_dust" + end + + --Do we have salt crystals? If not, register the coal recipe without saltpeter + if minetest.get_modpath("caverealms") then + minetest.register_craftitem("xtraores_guns:salt_dust", { + description = "Saltpeter", + inventory_image = "salt_dust.png", + }) + + local crystal_size = { 1, 2, 3, 4, 5 } + + for i in ipairs(crystal_size) do + if i == 1 then + nodename = "caverealms:salt_gem" + else + nodename = "caverealms:salt_gem_"..i + end + + technic.register_grinder_recipe({ + input = {nodename}, + output = "xtraores_guns:salt_dust "..tostring((i * 3)), + time = 4, + }) + end + + minetest.register_craft({ + output = "tnt:gunpowder 3", + type = "shapeless", + recipe = {coal, "xtraores_guns:salt_dust", "technic:sulfur_dust"} + }) + else + minetest.register_craft({ + output = "tnt:gunpowder 2", + type = "shapeless", + recipe = {coal, "technic:sulfur_dust"} + }) + end + + local power + + --Do we have a power crystal? Or shall we go vanilla? + if minetest.get_modpath("homedecor") then + power = "homedecor:power_crystal" + else + power = "default:mese_block" + end + + minetest.register_craft({ + output = "xtraores_guns:bullet_laser 100", + recipe = { + {"technic:carbon_steel_ingot", power, "technic:carbon_steel_ingot"}, + } + }) +else + --Technic wasn't enabled :( + local casing + local laser_casing + local metal + local power + + --Homedecor registers technic:brass_ingot for whatever reason + if minetest.get_modpath("homedecor") then + casing = "technic:brass_ingot" + power = "homedecor:power_crystal" + else + casing = "default:steel_ingot" + power = "default:mese_block" + end + + --Moreores has some nice things + if minetest.get_modpath("moreores") then + metal = "moreores:silver_ingot" + laser_casing = "moreores:mithril_ingot" + else + metal = "default:copper_ingot" + laser_casing = "default:tin_ingot" + end + + --Register manual bullet crafts + minetest.register_craft({ + type = "shapeless", + output = "xtraores_guns:bullet_357 150", + recipe = {"tnt:gunpowder", metal, casing, "xtraores_guns:mold_357"}, + replacements = {{"xtraores_guns:mold_357", "xtraores_guns:mold_357"}}, + }) + + minetest.register_craft({ + type = "shapeless", + output = "xtraores_guns:bullet_308 150", + recipe = {"tnt:gunpowder", metal, casing, "xtraores_guns:mold_308"}, + replacements = {{"xtraores_guns:mold_308", "xtraores_guns:mold_308"}}, + }) + + minetest.register_craft({ + output = "xtraores_guns:bullet_laser 75", + recipe = { + {laser_casing, power, laser_casing}, + } + }) +end + +--We will still utilize bullet molds +minetest.register_node("xtraores_guns:mold_308", { + description = ".308 Bullet Mold", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + }, + }, + tiles = {"mold_308.png", "mold_308.png", "mold_side.png", "mold_side.png", "mold_side.png", "mold_side.png"}, + on_place = function(ItemStack) + return ItemStack + end +}) + +minetest.register_node("xtraores_guns:mold_357", { + description = ".357 Bullet Mold", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + }, + }, + tiles = {"mold_357.png", "mold_357.png", "mold_side.png", "mold_side.png", "mold_side.png", "mold_side.png"}, + on_place = function(ItemStack) + return ItemStack + end +}) + +local sheeting + +--Can we use plastic? +if minetest.get_modpath("homedecor") then + sheeting = "homedecor:plastic_sheeting" +else + sheeting = "default:paper" +end + +--Make the molds +minetest.register_craft({ + output = "xtraores_guns:mold_357", + recipe = { + {sheeting, sheeting, sheeting}, + {"", "", sheeting}, + {sheeting, "", sheeting}, + + } +}) + +minetest.register_craft({ + output = "xtraores_guns:mold_308", + recipe = { + {sheeting, "", sheeting}, + {"", "", sheeting}, + {sheeting, "", sheeting}, + + } +}) + +--Bullets (they go in the guns) +minetest.register_craftitem("xtraores_guns:bullet_357", { + description = ".357 Bullet", + stack_max = 400, + inventory_image = "bullet_357.png", +}) + +minetest.register_craftitem("xtraores_guns:bullet_308", { + description = ".308 Bullet", + stack_max = 400, + inventory_image = "bullet_308.png", +}) + +minetest.register_craftitem("xtraores_guns:bullet_laser", { + description = "Laser Charge", + stack_max = 200, + inventory_image = "bullet_laser.png", +}) + +--We don't need these any more, change them +minetest.register_alias("xtraores:titanium_bullet", "xtraores_guns:bullet_308") +minetest.register_alias("xtraores:375", "xtraores_guns:bullet_357") +minetest.register_alias("xtraores_mdwp:charge", "xtraores_guns:bullet_laser") + +--New gunpowder texture (because why the barrel?..) +minetest.override_item("tnt:gunpowder", { + inventory_image = "gunpowder.png", + wield_image = "gunpowder.png", +}) + + +--Pew pew \ No newline at end of file diff --git a/xtraores_guns/depends.txt b/xtraores_guns/depends.txt new file mode 100644 index 0000000..c1368b7 --- /dev/null +++ b/xtraores_guns/depends.txt @@ -0,0 +1,8 @@ +default +tnt +xtraores +technic? +ethereal? +caverealms? +pipeworks? +homedecor? \ No newline at end of file diff --git a/xtraores_guns/guns.lua b/xtraores_guns/guns.lua new file mode 100644 index 0000000..bacee54 --- /dev/null +++ b/xtraores_guns/guns.lua @@ -0,0 +1,351 @@ +--Registers a gun \o/ +function xtraores.register_gun(name, def) + local udesc + local bdef + + if def.desc then + udesc = def.description + else + udesc = xtraores.upper(name).." Gun" + end + + if tonumber(def.bullet_type) ~= nil then + bdef = "."..tostring(def.bullet_type) + else + bdef = tostring(def.bullet_type) + end + + minetest.register_tool("xtraores_guns:"..name.."_gun", { + description = udesc.." | "..tostring(def.damage).." dmg (requires "..bdef.." bullets)", + inventory_image = "gun_"..name..".png", + on_use = function(itemstack, user, pointed_thing) + local inv = user:get_inventory() + local stack = "xtraores_guns:bullet_"..tostring(def.bullet_type).." 1" + local pos = user:getpos() + local dir = user:get_look_dir() + local yaw = user:get_look_yaw() + if inv:contains_item("main", stack) then + inv:remove_item("main", stack) + if pos and dir and yaw then + pos.y = pos.y + 1.6 + local obj = minetest.add_entity(pos, "xtraores_guns:"..string.sub(name, 1, 1).."b") + if obj then + minetest.sound_play("shot_"..def.sound, {object=obj, gain=0.2}) + obj:setvelocity({x=dir.x * def.speed, y=dir.y * def.speed, z=dir.z * def.speed}) + obj:setacceleration({x=dir.x * -0, y=-0, z=dir.z * -0}) + obj:setyaw(yaw + math.pi) + local ent = obj:get_luaentity() + if ent then + ent.player = ent.player or user + end + end + end + else + minetest.sound_play("empty", {object=user, gain=0.5}) + end + return itemstack + end, + }) + + minetest.register_entity("xtraores_guns:"..string.sub(name, 1, 1).."b", { + physical = false, + timer = 0, + visual = "sprite", + visual_size = {x=def.visual_size, y=def.visual_size,}, + textures = {"shot_"..def.visual_type..".png"}, + lastpos= {}, + collisionbox = {0, 0, 0, 0, 0, 0}, + on_step = function(self, dtime) + self.timer = self.timer + dtime + local pos = self.object:getpos() + local node = minetest.get_node(pos) + + if self.timer > 0.06 then + local objs = minetest.get_objects_inside_radius({x = pos.x, y = pos.y, z = pos.z}, 2) + for k, obj in pairs(objs) do + if obj:get_luaentity() ~= nil then + if obj:get_luaentity().name ~= "xtraores_guns:"..string.sub(name, 1, 1).."b" and obj:get_luaentity().name ~= "__builtin:item" then + local damage = def.damage + obj:punch(self.object, 1.0, { + full_punch_interval = 1.0, + damage_groups= {fleshy = damage}, + }, nil) + minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) + self.object:remove() + end + else + local damage = def.damage + obj:punch(self.object, 1.0, { + full_punch_interval = 1.0, + damage_groups= {fleshy = damage}, + }, nil) + minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) + self.object:remove() + end + end + end + + if self.lastpos.x ~= nil then + if minetest.registered_nodes[node.name].walkable then + if not minetest.setting_getbool("creative_mode") then + minetest.add_item(self.lastpos, "") + end + minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) + self.object:remove() + end + end + self.lastpos= {x = pos.x, y = pos.y, z = pos.z} + end + }) +end + +--[[ + +How to register a gun: + +xtraores.register_gun("name", { + description = "string" (optional) + damage = damage inflicted (number), + speed = speed of bullet (number), + bullet_type = type of bullet needed (number or string), + visual_size = size of bullet entity (number), + visual_type = texture of bullet entity (string), + sound = name of sound played on fire (string) +}) + +]] + +--Register the guns +xtraores.register_gun("titanium", { + damage = 70, + speed = 280, + bullet_type = 308, + visual_size = 0.075, + visual_type = "normal", + sound = "normal", +}) + +xtraores.register_gun("precious", { + damage = 95, + speed = 280, + bullet_type = 308, + visual_size = 0.075, + visual_type = "normal", + sound = "normal", +}) + +xtraores.register_gun("laser", { + damage = 200, + speed = 50, + bullet_type = "laser", + visual_size = 0.9, + visual_type = "laser", + sound = "laser", +}) + +xtraores.register_gun("rainbow", { + damage = 250, + speed = 50, + bullet_type = "laser", + visual_size = 0.9, + visual_type = "rainbow", + sound = "laser", +}) + +xtraores.register_gun("deagle", { + description = "Desert Eagle", + damage = 45, + speed = 280, + bullet_type = 357, + visual_size = 0.075, + visual_type = "normal", + sound = "normal", +}) + +--Move guns from xtraores to xtraores_guns +minetest.register_alias("xtraores:titanium_gun", "xtraores_guns:titanium_gun") +minetest.register_alias("xtraores:precious_gun", "xtraores_guns:precious_gun") +minetest.register_alias("xtraores:deagle", "xtraores_guns:deagle_gun") + +minetest.register_alias("xtraores_mdwp:laser_riffle", "xtraores_guns:rainbow_gun") +minetest.register_alias("xtraores_mdwp:rainbowgun", "xtraores_guns:laser_gun") + +--We don't need these any more +local parts = { + "barrel", + "top", + "bottom", + "handle", + "mechanism", +} + +for _, name in pairs(parts) do + minetest.register_alias("xtraores:titanium_"..name, "xtraores:titanium_ingot") +end + +minetest.register_alias("xtraores_ext:bullet", "xtraores_guns:bullet_308") +minetest.register_alias("xtraores_ext:riffle", "xtraores_guns:titanium_gun") +minetest.register_alias("xtraores_ext:riffleb", "xtraores_guns:titanium_gun") +minetest.register_alias("xtraores_mdwp:shuriken", "default:steel_ingot") +minetest.register_alias("xtraores:chunai", "default:steel_ingot") + + +--Let's add new stuff +minetest.register_craftitem("xtraores_guns:mechanism", { + description = "Gun Mechanism", + inventory_image = "mech.png", +}) + +minetest.register_craftitem("xtraores_guns:spring", { + description = "Spring", + inventory_image = "spring.png", +}) + +minetest.register_craftitem("xtraores_guns:latch", { + description = "Latch", + inventory_image = "latch.png", +}) + +minetest.register_craftitem("xtraores_guns:lense", { + description = "Lense", + inventory_image = "lense.png", +}) + +--What can we use for materials? +local metal +local laser_metal +local grip +local power +local sheeting + +if minetest.get_modpath("technic") then + metal = "technic:stainless_steel_ingot" + grip = "technic:rubber" + laser_metal = "technic:carbon_steel_ingot" +else + metal = "default:steel_ingot" + grip = "wool:black" + laser_metal = "default:tin_ingot" +end + +if minetest.get_modpath("homedecor") then + power = "homedecor:power_crystal" + sheeting = "homedecor:plastic_sheeting" +else + power = "default:mese_block" + sheeting = "default:steel_ingot" +end + +--Register the crafts +minetest.register_craft({ + output = "xtraores_guns:spring 9", + recipe = { + {metal, "", metal}, + {"", metal, ""}, + {metal, "", metal}, + + } +}) + +minetest.register_craft({ + output = "xtraores_guns:latch 9", + recipe = { + {metal, metal, metal}, + {"", "", metal}, + {"", "", metal}, + + } +}) + +minetest.register_craft({ + output = "xtraores_guns:latch 9", + recipe = { + {metal, metal, metal}, + {metal, "", ""}, + {metal, "", ""}, + + } +}) + +minetest.register_craft({ + output = "xtraores_guns:lense 3", + recipe = { + {"", "default:glass"}, + {"default:glass", ""}, + {"", "default:glass"}, + + } +}) + +minetest.register_craft({ + output = "xtraores_guns:lense 3", + recipe = { + {"default:glass", ""}, + {"", "default:glass"}, + {"default:glass", ""}, + + } +}) + +--Gun crafts because I didn't want to bother adding them to the function +minetest.register_craft({ + output = "xtraores_guns:mechanism", + recipe = { + {"xtraores_guns:spring", "xtraores_guns:latch", metal}, + {"", metal, "xtraores_guns:latch"}, + {"", "", "xtraores_guns:spring"}, + } +}) + +minetest.register_craft({ + output = "xtraores_guns:titanium_gun", + recipe = { + {"xtraores:titanium_ingot", "xtraores:titanium_ingot", "xtraores:titanium_ingot"}, + {"", "xtraores_guns:mechanism", grip}, + {"", "", grip}, + } +}) + +minetest.register_craft({ + output = "xtraores_guns:deagle_gun", + recipe = { + {metal, metal, metal}, + {"", "xtraores_guns:mechanism", grip}, + {"", "", grip}, + + } +}) + +minetest.register_craft({ + output = "xtraores_guns:precious_gun", + recipe = { + {"xtraores:geminitinum_ingot", "xtraores:geminitinum_ingot", "xtraores:geminitinum_ingot"}, + {"", "xtraores_guns:mechanism", grip}, + {"", "", grip}, + + } +}) + +minetest.register_craft({ + output = "xtraores_guns:laser_gun", + recipe = { + {"xtraores_guns:lense", power, laser_metal}, + {"", "xtraores_guns:mechanism", sheeting}, + {"", "", sheeting}, + + } +}) + +minetest.register_craft({ + output = "xtraores_guns:rainbow_gun", + recipe = { + {"xtraores_guns:lense", power, "xtraores:geminitinum_ingot"}, + {"", "xtraores_guns:mechanism", sheeting}, + {"", "", sheeting}, + + } +}) + + +--Fire at Will! +--*Will ducks* \ No newline at end of file diff --git a/xtraores_guns/init.lua b/xtraores_guns/init.lua new file mode 100644 index 0000000..7f89e1f --- /dev/null +++ b/xtraores_guns/init.lua @@ -0,0 +1,8 @@ +--Do the things +dofile(minetest.get_modpath("xtraores_guns").."/guns.lua") +dofile(minetest.get_modpath("xtraores_guns").."/bullets.lua") + +minetest.log("action", "[MOD] Xtraores: Module (guns) loaded!") + + +--Things done! \o/ \ No newline at end of file diff --git a/xtraores/sounds/empty.ogg b/xtraores_guns/sounds/empty.ogg similarity index 100% rename from xtraores/sounds/empty.ogg rename to xtraores_guns/sounds/empty.ogg diff --git a/xtraores/sounds/shot_heavy.ogg b/xtraores_guns/sounds/shot_heavy.ogg similarity index 100% rename from xtraores/sounds/shot_heavy.ogg rename to xtraores_guns/sounds/shot_heavy.ogg diff --git a/xtraores/sounds/shot_laser.ogg b/xtraores_guns/sounds/shot_laser.ogg similarity index 100% rename from xtraores/sounds/shot_laser.ogg rename to xtraores_guns/sounds/shot_laser.ogg diff --git a/xtraores/sounds/shot.ogg b/xtraores_guns/sounds/shot_normal.ogg similarity index 100% rename from xtraores/sounds/shot.ogg rename to xtraores_guns/sounds/shot_normal.ogg diff --git a/xtraores_guns/textures/bullet_308.png b/xtraores_guns/textures/bullet_308.png new file mode 100644 index 0000000..9d45a11 Binary files /dev/null and b/xtraores_guns/textures/bullet_308.png differ diff --git a/xtraores_guns/textures/bullet_357.png b/xtraores_guns/textures/bullet_357.png new file mode 100644 index 0000000..78998ab Binary files /dev/null and b/xtraores_guns/textures/bullet_357.png differ diff --git a/xtraores_guns/textures/bullet_laser.png b/xtraores_guns/textures/bullet_laser.png new file mode 100644 index 0000000..4a78975 Binary files /dev/null and b/xtraores_guns/textures/bullet_laser.png differ diff --git a/xtraores_guns/textures/charcoal_dust.png b/xtraores_guns/textures/charcoal_dust.png new file mode 100644 index 0000000..7da3df5 Binary files /dev/null and b/xtraores_guns/textures/charcoal_dust.png differ diff --git a/xtraores_guns/textures/gun_deagle.png b/xtraores_guns/textures/gun_deagle.png new file mode 100644 index 0000000..2fbf86d Binary files /dev/null and b/xtraores_guns/textures/gun_deagle.png differ diff --git a/xtraores_guns/textures/gun_deagle_old.png b/xtraores_guns/textures/gun_deagle_old.png new file mode 100644 index 0000000..6ca93d0 Binary files /dev/null and b/xtraores_guns/textures/gun_deagle_old.png differ diff --git a/xtraores_guns/textures/gun_deagle_wield.png b/xtraores_guns/textures/gun_deagle_wield.png new file mode 100644 index 0000000..0b368b1 Binary files /dev/null and b/xtraores_guns/textures/gun_deagle_wield.png differ diff --git a/xtraores_guns/textures/gun_laser.png b/xtraores_guns/textures/gun_laser.png new file mode 100644 index 0000000..e78d359 Binary files /dev/null and b/xtraores_guns/textures/gun_laser.png differ diff --git a/xtraores_guns/textures/gun_precious.png b/xtraores_guns/textures/gun_precious.png new file mode 100644 index 0000000..8ff1a05 Binary files /dev/null and b/xtraores_guns/textures/gun_precious.png differ diff --git a/xtraores_guns/textures/gun_precious_wield.png b/xtraores_guns/textures/gun_precious_wield.png new file mode 100644 index 0000000..8ff1a05 Binary files /dev/null and b/xtraores_guns/textures/gun_precious_wield.png differ diff --git a/xtraores_guns/textures/gun_rainbow.png b/xtraores_guns/textures/gun_rainbow.png new file mode 100644 index 0000000..7d34290 Binary files /dev/null and b/xtraores_guns/textures/gun_rainbow.png differ diff --git a/xtraores_guns/textures/gun_test.png b/xtraores_guns/textures/gun_test.png new file mode 100644 index 0000000..ba4cb92 Binary files /dev/null and b/xtraores_guns/textures/gun_test.png differ diff --git a/xtraores_guns/textures/gun_titanium.png b/xtraores_guns/textures/gun_titanium.png new file mode 100644 index 0000000..c075046 Binary files /dev/null and b/xtraores_guns/textures/gun_titanium.png differ diff --git a/xtraores_guns/textures/gun_titanium_wield.png b/xtraores_guns/textures/gun_titanium_wield.png new file mode 100644 index 0000000..c075046 Binary files /dev/null and b/xtraores_guns/textures/gun_titanium_wield.png differ diff --git a/xtraores_guns/textures/gunpowder.png b/xtraores_guns/textures/gunpowder.png new file mode 100644 index 0000000..1f8ce61 Binary files /dev/null and b/xtraores_guns/textures/gunpowder.png differ diff --git a/xtraores_guns/textures/info.png b/xtraores_guns/textures/info.png new file mode 100644 index 0000000..6e7f15f Binary files /dev/null and b/xtraores_guns/textures/info.png differ diff --git a/xtraores_guns/textures/latch.png b/xtraores_guns/textures/latch.png new file mode 100644 index 0000000..7346fa2 Binary files /dev/null and b/xtraores_guns/textures/latch.png differ diff --git a/xtraores_guns/textures/lense.png b/xtraores_guns/textures/lense.png new file mode 100644 index 0000000..d8e6984 Binary files /dev/null and b/xtraores_guns/textures/lense.png differ diff --git a/xtraores_guns/textures/mech.png b/xtraores_guns/textures/mech.png new file mode 100644 index 0000000..9c48baa Binary files /dev/null and b/xtraores_guns/textures/mech.png differ diff --git a/xtraores_guns/textures/mold_308.png b/xtraores_guns/textures/mold_308.png new file mode 100644 index 0000000..c896d67 Binary files /dev/null and b/xtraores_guns/textures/mold_308.png differ diff --git a/xtraores_guns/textures/mold_357.png b/xtraores_guns/textures/mold_357.png new file mode 100644 index 0000000..5e1cc43 Binary files /dev/null and b/xtraores_guns/textures/mold_357.png differ diff --git a/xtraores_guns/textures/mold_side.png b/xtraores_guns/textures/mold_side.png new file mode 100644 index 0000000..94f8a18 Binary files /dev/null and b/xtraores_guns/textures/mold_side.png differ diff --git a/xtraores_guns/textures/salt_dust.png b/xtraores_guns/textures/salt_dust.png new file mode 100644 index 0000000..ecf2b07 Binary files /dev/null and b/xtraores_guns/textures/salt_dust.png differ diff --git a/xtraores_guns/textures/shooter_pistol_wield.png b/xtraores_guns/textures/shooter_pistol_wield.png new file mode 100644 index 0000000..b03bbff Binary files /dev/null and b/xtraores_guns/textures/shooter_pistol_wield.png differ diff --git a/xtraores_guns/textures/shot_laser.png b/xtraores_guns/textures/shot_laser.png new file mode 100644 index 0000000..7db7c1e Binary files /dev/null and b/xtraores_guns/textures/shot_laser.png differ diff --git a/xtraores_guns/textures/shot_normal.png b/xtraores_guns/textures/shot_normal.png new file mode 100644 index 0000000..112757a Binary files /dev/null and b/xtraores_guns/textures/shot_normal.png differ diff --git a/xtraores_guns/textures/shot_rainbow.png b/xtraores_guns/textures/shot_rainbow.png new file mode 100644 index 0000000..c20847a Binary files /dev/null and b/xtraores_guns/textures/shot_rainbow.png differ diff --git a/xtraores_guns/textures/spring.png b/xtraores_guns/textures/spring.png new file mode 100644 index 0000000..e386b39 Binary files /dev/null and b/xtraores_guns/textures/spring.png differ diff --git a/xtraores_guns/textures/technic_mv_bullet_press_front.png b/xtraores_guns/textures/technic_mv_bullet_press_front.png new file mode 100644 index 0000000..d2163c8 Binary files /dev/null and b/xtraores_guns/textures/technic_mv_bullet_press_front.png differ diff --git a/xtraores_guns/textures/technic_mv_bullet_press_front_active.png b/xtraores_guns/textures/technic_mv_bullet_press_front_active.png new file mode 100644 index 0000000..85e1826 Binary files /dev/null and b/xtraores_guns/textures/technic_mv_bullet_press_front_active.png differ diff --git a/xtraores_guns/textures/technic_mv_bullet_press_panel.png b/xtraores_guns/textures/technic_mv_bullet_press_panel.png new file mode 100644 index 0000000..bc7e71a Binary files /dev/null and b/xtraores_guns/textures/technic_mv_bullet_press_panel.png differ diff --git a/xtraores_guns/textures/technic_mv_bullet_press_side.png b/xtraores_guns/textures/technic_mv_bullet_press_side.png new file mode 100644 index 0000000..a41a68d Binary files /dev/null and b/xtraores_guns/textures/technic_mv_bullet_press_side.png differ diff --git a/xtraores_guns/textures/technic_mv_bullet_press_side_active.png b/xtraores_guns/textures/technic_mv_bullet_press_side_active.png new file mode 100644 index 0000000..8562774 Binary files /dev/null and b/xtraores_guns/textures/technic_mv_bullet_press_side_active.png differ diff --git a/xtraores_guns/textures/technic_mv_bullet_press_top.png b/xtraores_guns/textures/technic_mv_bullet_press_top.png new file mode 100644 index 0000000..913bdbb Binary files /dev/null and b/xtraores_guns/textures/technic_mv_bullet_press_top.png differ diff --git a/xtraores_guns/textures/technic_mv_bullet_press_top_active.png b/xtraores_guns/textures/technic_mv_bullet_press_top_active.png new file mode 100644 index 0000000..ae9f10e Binary files /dev/null and b/xtraores_guns/textures/technic_mv_bullet_press_top_active.png differ diff --git a/xtraores_guns/textures/xcf/gun_laser.xcf b/xtraores_guns/textures/xcf/gun_laser.xcf new file mode 100644 index 0000000..4867a0f Binary files /dev/null and b/xtraores_guns/textures/xcf/gun_laser.xcf differ diff --git a/xtraores_guns/textures/xcf/technic_mv_bullet_press_front.xcf b/xtraores_guns/textures/xcf/technic_mv_bullet_press_front.xcf new file mode 100644 index 0000000..73b1d13 Binary files /dev/null and b/xtraores_guns/textures/xcf/technic_mv_bullet_press_front.xcf differ diff --git a/xtraores_guns/textures/xcf/technic_mv_bullet_press_front_active.xcf b/xtraores_guns/textures/xcf/technic_mv_bullet_press_front_active.xcf new file mode 100644 index 0000000..5365b56 Binary files /dev/null and b/xtraores_guns/textures/xcf/technic_mv_bullet_press_front_active.xcf differ diff --git a/xtraores_guns/textures/xcf/technic_mv_bullet_press_panel.xcf b/xtraores_guns/textures/xcf/technic_mv_bullet_press_panel.xcf new file mode 100644 index 0000000..bbccbb0 Binary files /dev/null and b/xtraores_guns/textures/xcf/technic_mv_bullet_press_panel.xcf differ diff --git a/xtraores_guns/textures/xcf/technic_mv_bullet_press_side.xcf b/xtraores_guns/textures/xcf/technic_mv_bullet_press_side.xcf new file mode 100644 index 0000000..ae90fe8 Binary files /dev/null and b/xtraores_guns/textures/xcf/technic_mv_bullet_press_side.xcf differ diff --git a/xtraores_guns/textures/xcf/technic_mv_bullet_press_side_active.xcf b/xtraores_guns/textures/xcf/technic_mv_bullet_press_side_active.xcf new file mode 100644 index 0000000..cf2deef Binary files /dev/null and b/xtraores_guns/textures/xcf/technic_mv_bullet_press_side_active.xcf differ diff --git a/xtraores_guns/textures/xcf/technic_mv_bullet_press_top.xcf b/xtraores_guns/textures/xcf/technic_mv_bullet_press_top.xcf new file mode 100644 index 0000000..25df31e Binary files /dev/null and b/xtraores_guns/textures/xcf/technic_mv_bullet_press_top.xcf differ diff --git a/xtraores_guns/textures/xcf/technic_mv_bullet_press_top_active.xcf b/xtraores_guns/textures/xcf/technic_mv_bullet_press_top_active.xcf new file mode 100644 index 0000000..0c6aacf Binary files /dev/null and b/xtraores_guns/textures/xcf/technic_mv_bullet_press_top_active.xcf differ diff --git a/xtraores_marble/depends.txt b/xtraores_marble/depends.txt new file mode 100644 index 0000000..ea5e9e2 --- /dev/null +++ b/xtraores_marble/depends.txt @@ -0,0 +1,3 @@ +default +stairs +xtraores \ No newline at end of file diff --git a/xtraores_marble/init.lua b/xtraores_marble/init.lua new file mode 100644 index 0000000..4e3141f --- /dev/null +++ b/xtraores_marble/init.lua @@ -0,0 +1,137 @@ +--Registration function to register all the marble things +function xtraores.register_marble(name, def) + local desc + if name ~= "" then + desc = xtraores.upper(name).." " + else + desc = name + end + + minetest.register_node("xtraores_marble:"..name.."marble", { + description = desc.."Marble", + tiles = {"xtraores_"..name.."marble.png"}, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_ore({ + ore_type = "scatter", + ore = "xtraores_marble:"..name.."marble", + wherein = "default:stone", + clust_scarcity = 7*7*7, + clust_num_ores = 5, + clust_size = 3, + y_min = -31000, + y_max = def.height, + flags = "absheight", + }) + + minetest.register_node("xtraores_marble:"..name.."marble_polished", { + description = "Polished "..desc.."Marble", + tiles = {"xtraores_"..name.."marble_polished.png"}, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_node("xtraores_marble:"..name.."marble_bricks", { + description = desc.."Marble Bricks", + tiles = {"xtraores_"..name.."marble_bricks.png"}, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_craft({ + output = "xtraores_marble:"..name.."marble_polished", + recipe = { + {"xtraores_marble:"..name.."marble"}, + } + }) + + minetest.register_craft({ + output = "xtraores_marble:"..name.."marble_bricks 4", + recipe = { + {"xtraores_marble:"..name.."marble", "xtraores_marble:"..name.."marble"}, + {"xtraores_marble:"..name.."marble", "xtraores_marble:"..name.."marble"}, + } + }) + + minetest.register_node("xtraores_marble:"..name.."marble_column", { + description = desc.."Marble Column", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + { -0.4, -0.50, -0.4, 0.4, 0.5, 0.4}, + { -0.5, -0.50, -0.5, 0.5, -0.3125, 0.5}, + { -0.5, 0.3125, -0.5, 0.5, 0.5, 0.5}, + }, + }, + tiles = {"xtraores_"..name.."marble_column_top.png", "xtraores_"..name.."marble_column_top.png", + "xtraores_"..name.."marble_column_side.png", "xtraores_"..name.."marble_column_side.png", + "xtraores_"..name.."marble_column_side.png", "xtraores_"..name.."marble_column_side.png"}, + is_ground_content = true, + paramtype = "light", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_craft({ + output = "xtraores_marble:"..name.."marble_column 2", + recipe = { + {"xtraores_marble:"..name.."marble"}, + {"xtraores_marble:"..name.."marble"}, + } + }) + + stairs.register_stair_and_slab(name.."marble", "xtraores_marble:"..name.."marble", + {cracky = 3}, + {"xtraores_"..name.."marble.png"}, + desc.."Marble Stair", + desc.."Marble Slab", + default.node_sound_stone_defaults()) + + stairs.register_stair_and_slab(name.."marble_polished", "xtraores_marble:"..name.."marble_polished", + {cracky = 3}, + {"xtraores_"..name.."marble_polished.png"}, + "Polished "..desc.." Marble Stair", + "Polished "..desc.." Marble Slab", + + default.node_sound_stone_defaults()) + + stairs.register_stair_and_slab(name.."marble_bricks", "xtraores_marble:"..name.."marble_bricks", + {cracky = 3}, + {"xtraores_"..name.."marble_bricks.png"}, + desc.."Marble Brick Stair", + desc.."Marble Brick Slab", + default.node_sound_stone_defaults()) + + minetest.register_alias("xtraores:"..name.."marble", "xtraores_marble:"..name.."marble") + minetest.register_alias("xtraores:"..name.."marble_polished", "xtraores_marble:"..name.."marble_polished") + minetest.register_alias("xtraores:"..name.."marble_bricks", "xtraores_marble:"..name.."marble_bricks") + minetest.register_alias("xtraores_mblox:"..name.."marble_column", "xtraores_marble:"..name.."marble_column") +end + +--Register the marble things +xtraores.register_marble("red", { + height = -8000 +}) + +xtraores.register_marble("blue", { + height = -4000 +}) + +xtraores.register_marble("black", { + height = -2000 +}) + +xtraores.register_marble("", { + height = -1000 +}) + +minetest.log("action", "[MOD] Xtraores: Module (marble) loaded!") + + +--Well that was fast diff --git a/xtraores_marble/textures/xtraores_blackmarble.png b/xtraores_marble/textures/xtraores_blackmarble.png new file mode 100644 index 0000000..6e4bb45 Binary files /dev/null and b/xtraores_marble/textures/xtraores_blackmarble.png differ diff --git a/xtraores_marble/textures/xtraores_blackmarble_bricks.png b/xtraores_marble/textures/xtraores_blackmarble_bricks.png new file mode 100644 index 0000000..8e8c2e3 Binary files /dev/null and b/xtraores_marble/textures/xtraores_blackmarble_bricks.png differ diff --git a/xtraores_marble/textures/xtraores_blackmarble_column_side.png b/xtraores_marble/textures/xtraores_blackmarble_column_side.png new file mode 100644 index 0000000..2a5f962 Binary files /dev/null and b/xtraores_marble/textures/xtraores_blackmarble_column_side.png differ diff --git a/xtraores_marble/textures/xtraores_blackmarble_column_top.png b/xtraores_marble/textures/xtraores_blackmarble_column_top.png new file mode 100644 index 0000000..199d912 Binary files /dev/null and b/xtraores_marble/textures/xtraores_blackmarble_column_top.png differ diff --git a/xtraores_marble/textures/xtraores_blackmarble_polished.png b/xtraores_marble/textures/xtraores_blackmarble_polished.png new file mode 100644 index 0000000..08794b0 Binary files /dev/null and b/xtraores_marble/textures/xtraores_blackmarble_polished.png differ diff --git a/xtraores_marble/textures/xtraores_bluemarble.png b/xtraores_marble/textures/xtraores_bluemarble.png new file mode 100644 index 0000000..e23bcb7 Binary files /dev/null and b/xtraores_marble/textures/xtraores_bluemarble.png differ diff --git a/xtraores_marble/textures/xtraores_bluemarble_bricks.png b/xtraores_marble/textures/xtraores_bluemarble_bricks.png new file mode 100644 index 0000000..3a56f91 Binary files /dev/null and b/xtraores_marble/textures/xtraores_bluemarble_bricks.png differ diff --git a/xtraores_marble/textures/xtraores_bluemarble_column_side.png b/xtraores_marble/textures/xtraores_bluemarble_column_side.png new file mode 100644 index 0000000..23c6dfd Binary files /dev/null and b/xtraores_marble/textures/xtraores_bluemarble_column_side.png differ diff --git a/xtraores_marble/textures/xtraores_bluemarble_column_top.png b/xtraores_marble/textures/xtraores_bluemarble_column_top.png new file mode 100644 index 0000000..b605a7e Binary files /dev/null and b/xtraores_marble/textures/xtraores_bluemarble_column_top.png differ diff --git a/xtraores_marble/textures/xtraores_bluemarble_polished.png b/xtraores_marble/textures/xtraores_bluemarble_polished.png new file mode 100644 index 0000000..861413c Binary files /dev/null and b/xtraores_marble/textures/xtraores_bluemarble_polished.png differ diff --git a/xtraores_marble/textures/xtraores_marble.png b/xtraores_marble/textures/xtraores_marble.png new file mode 100644 index 0000000..feaf2e6 Binary files /dev/null and b/xtraores_marble/textures/xtraores_marble.png differ diff --git a/xtraores_marble/textures/xtraores_marble_bricks.png b/xtraores_marble/textures/xtraores_marble_bricks.png new file mode 100644 index 0000000..26c6362 Binary files /dev/null and b/xtraores_marble/textures/xtraores_marble_bricks.png differ diff --git a/xtraores_marble/textures/xtraores_marble_column_side.png b/xtraores_marble/textures/xtraores_marble_column_side.png new file mode 100644 index 0000000..747cd56 Binary files /dev/null and b/xtraores_marble/textures/xtraores_marble_column_side.png differ diff --git a/xtraores_marble/textures/xtraores_marble_column_top.png b/xtraores_marble/textures/xtraores_marble_column_top.png new file mode 100644 index 0000000..d2784a4 Binary files /dev/null and b/xtraores_marble/textures/xtraores_marble_column_top.png differ diff --git a/xtraores_marble/textures/xtraores_marble_polished.png b/xtraores_marble/textures/xtraores_marble_polished.png new file mode 100644 index 0000000..08a7bd5 Binary files /dev/null and b/xtraores_marble/textures/xtraores_marble_polished.png differ diff --git a/xtraores_marble/textures/xtraores_redmarble.png b/xtraores_marble/textures/xtraores_redmarble.png new file mode 100644 index 0000000..ddd81b9 Binary files /dev/null and b/xtraores_marble/textures/xtraores_redmarble.png differ diff --git a/xtraores_marble/textures/xtraores_redmarble_bricks.png b/xtraores_marble/textures/xtraores_redmarble_bricks.png new file mode 100644 index 0000000..40a39e3 Binary files /dev/null and b/xtraores_marble/textures/xtraores_redmarble_bricks.png differ diff --git a/xtraores_marble/textures/xtraores_redmarble_column_side.png b/xtraores_marble/textures/xtraores_redmarble_column_side.png new file mode 100644 index 0000000..d5e42ae Binary files /dev/null and b/xtraores_marble/textures/xtraores_redmarble_column_side.png differ diff --git a/xtraores_marble/textures/xtraores_redmarble_column_top.png b/xtraores_marble/textures/xtraores_redmarble_column_top.png new file mode 100644 index 0000000..0b68781 Binary files /dev/null and b/xtraores_marble/textures/xtraores_redmarble_column_top.png differ diff --git a/xtraores_marble/textures/xtraores_redmarble_polished.png b/xtraores_marble/textures/xtraores_redmarble_polished.png new file mode 100644 index 0000000..0c622eb Binary files /dev/null and b/xtraores_marble/textures/xtraores_redmarble_polished.png differ diff --git a/xtraores_mblox/depends.txt b/xtraores_mblox/depends.txt deleted file mode 100644 index 4ad96d5..0000000 --- a/xtraores_mblox/depends.txt +++ /dev/null @@ -1 +0,0 @@ -default diff --git a/xtraores_mblox/init.lua b/xtraores_mblox/init.lua deleted file mode 100644 index 739d9c0..0000000 --- a/xtraores_mblox/init.lua +++ /dev/null @@ -1,107 +0,0 @@ -minetest.register_craft({ - output = 'xtraores_mblox:redmarble_column 2', - recipe = { - {'xtraores:redmarble'}, - {'xtraores:redmarble'}, - } -}) - -minetest.register_node("xtraores_mblox:redmarble_column", { - description = "Red Marble Column", - drawtype = "nodebox", - node_box = { - type = "fixed", - fixed = { - { -0.4, -0.50, -0.4, 0.4, 0.5, 0.4}, { -0.5, -0.50, -0.5, 0.5, -0.3125, 0.5}, - { -0.5, 0.3125, -0.5, 0.5, 0.5, 0.5}, - }, - }, - tiles = {"xtraores_rct.png", "xtraores_rct.png", - "xtraores_rcs.png", "xtraores_rcs.png", - "xtraores_rcs.png", "xtraores_rcs.png"}, - is_ground_content = true, - paramtype = "light", - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craft({ - output = 'xtraores_mblox:bluemarble_column 2', - recipe = { - {'xtraores:bluemarble'}, - {'xtraores:bluemarble'}, - } -}) - -minetest.register_node("xtraores_mblox:bluemarble_column", { - description = "Blue Marble Column", - drawtype = "nodebox", - node_box = { - type = "fixed", - fixed = { - { -0.4, -0.50, -0.4, 0.4, 0.5, 0.4}, { -0.5, -0.50, -0.5, 0.5, -0.3125, 0.5}, - { -0.5, 0.3125, -0.5, 0.5, 0.5, 0.5}, - }, - }, - tiles = {"xtraores_blct.png", "xtraores_blct.png", - "xtraores_blcs.png", "xtraores_blcs.png", - "xtraores_blcs.png", "xtraores_blcs.png"}, - is_ground_content = true, - paramtype = "light", - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craft({ - output = 'xtraores_mblox:blackmarble_column 2', - recipe = { - {'xtraores:blackmarble'}, - {'xtraores:blackmarble'}, - } -}) - -minetest.register_node("xtraores_mblox:blackmarble_column", { - description = "Black Marble Column", - drawtype = "nodebox", - node_box = { - type = "fixed", - fixed = { - { -0.4, -0.50, -0.4, 0.4, 0.5, 0.4}, { -0.5, -0.50, -0.5, 0.5, -0.3125, 0.5}, - { -0.5, 0.3125, -0.5, 0.5, 0.5, 0.5}, - }, - }, - tiles = {"xtraores_bct.png", "xtraores_bct.png", - "xtraores_bcs.png", "xtraores_bcs.png", - "xtraores_bcs.png", "xtraores_bcs.png"}, - is_ground_content = true, - paramtype = "light", - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_craft({ - output = 'xtraores_mblox:marble_column 2', - recipe = { - {'xtraores:marble'}, - {'xtraores:marble'}, - } -}) - -minetest.register_node("xtraores_mblox:marble_column", { - description = "White Marble Column", - drawtype = "nodebox", - node_box = { - type = "fixed", - fixed = { - { -0.4, -0.50, -0.4, 0.4, 0.5, 0.4}, { -0.5, -0.50, -0.5, 0.5, -0.3125, 0.5}, - { -0.5, 0.3125, -0.5, 0.5, 0.5, 0.5}, - }, - }, - tiles = {"xtraores_wct.png", "xtraores_wct.png", - "xtraores_wcs.png", "xtraores_wcs.png", - "xtraores_wcs.png", "xtraores_wcs.png"}, - is_ground_content = true, - paramtype = "light", - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), -}) diff --git a/xtraores_mdwp/depends.txt b/xtraores_mdwp/depends.txt deleted file mode 100644 index 4ad96d5..0000000 --- a/xtraores_mdwp/depends.txt +++ /dev/null @@ -1 +0,0 @@ -default diff --git a/xtraores_mdwp/init.lua b/xtraores_mdwp/init.lua deleted file mode 100644 index 8180953..0000000 --- a/xtraores_mdwp/init.lua +++ /dev/null @@ -1,200 +0,0 @@ - -minetest.register_craftitem("xtraores_mdwp:charge", { - description = "Power Charge", - stack_max = 200, - inventory_image = "xtraores_charge.png", -}) - -minetest.register_tool("xtraores_mdwp:laser_riffle", { - description = "Laser Riffle | 250 dmg (requries power charge)", - inventory_image = "xtraores_laser_riffle.png", - on_use = function(itemstack, user, pointed_thing) - local inv = user:get_inventory() - if not inv:contains_item("main", "xtraores_mdwp:charge 1") then - minetest.sound_play("empty", {object=user}) - return itemstack - end - if not minetest.setting_getbool("creative_mode") then - inv:remove_item("main", "xtraores_mdwp:charge") - end - local pos = user:getpos() - local dir = user:get_look_dir() - local yaw = user:get_look_yaw() - if pos and dir and yaw then - pos.y = pos.y + 1.6 - local obj = minetest.add_entity(pos, "xtraores_mdwp:lb") - if obj then - minetest.sound_play("shot_laser", {object=obj}) - obj:setvelocity({x=dir.x * 50, y=dir.y * 50, z=dir.z * 50}) - obj:setacceleration({x=dir.x * 0, y=0, z=dir.z * 0}) - obj:setyaw(yaw + math.pi) - local ent = obj:get_luaentity() - if ent then - ent.player = ent.player or user - end - end - end - return itemstack - end, -}) - -local XTRAORES_MDWP_LB = { - physical = false, - timer = 0, - visual = "sprite", - visual_size = {x=0.9, y=0.9,}, - textures = {'xolaser.png'}, - lastpos= {}, - collisionbox = {0, 0, 0, 0, 0, 0}, -} - -XTRAORES_MDWP_LB.on_step = function(self, dtime) - self.timer = self.timer + dtime - local pos = self.object:getpos() - local node = minetest.get_node(pos) - - if self.timer > 0.09 then - local objs = minetest.get_objects_inside_radius({x = pos.x, y = pos.y, z = pos.z}, 1) - for k, obj in pairs(objs) do - if obj:get_luaentity() ~= nil then - if obj:get_luaentity().name ~= "xtraores_mdwp:lb" and obj:get_luaentity().name ~= "__builtin:item" then - local damage = 250 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - else - local damage = 250 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - end - - if self.lastpos.x ~= nil then - if minetest.registered_nodes[node.name].walkable then - if not minetest.setting_getbool("creative_mode") then - minetest.add_item(self.lastpos, "") - end - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - self.lastpos= {x = pos.x, y = pos.y, z = pos.z} -end - -minetest.register_entity("xtraores_mdwp:lb", XTRAORES_MDWP_LB ) - -minetest.register_craft({ - output = 'xtraores_mdwp:laser_riffle', - recipe = { - {'xtraores_misc:microchip', 'xtraores:riffle', 'xtraores:precious_gun'}, - {'', 'xtraores_misc:microchip', 'xtraores:titanium_bar'}, - {'', '', 'xtraores_misc:microchip'}, - - } -}) - -minetest.register_craft({ - output = 'xtraores_mdwp:charge 15', - recipe = { - {'', 'xtraores:geminitinum_bar', ''}, - {'xtraores:geminitinum_bar', 'default:mese', 'xtraores:geminitinum_bar'}, - {'xtraores:geminitinum_bar', 'default:mese', 'xtraores:geminitinum_bar'}, - } -}) - -minetest.register_tool("xtraores_mdwp:rainbowgun", { - description = "Rainbow Gun | 45 dmg (ammo not required)", - inventory_image = "xtraores_rainbowgun.png", - on_use = function(itemstack, user, pointed_thing) - local inv = user:get_inventory() - if not inv:contains_item("main", "") then - minetest.sound_play("empty", {object=user}) - return itemstack - end - if not minetest.setting_getbool("creative_mode") then - inv:remove_item("main", "") - end - local pos = user:getpos() - local dir = user:get_look_dir() - local yaw = user:get_look_yaw() - if pos and dir and yaw then - pos.y = pos.y + 1.6 - local obj = minetest.add_entity(pos, "xtraores_mdwp:rb") - if obj then - minetest.sound_play("shot_laser", {object=obj}) - obj:setvelocity({x=dir.x * 50, y=dir.y * 50, z=dir.z * 50}) - obj:setacceleration({x=dir.x * 0, y=0, z=dir.z * 0}) - obj:setyaw(yaw + math.pi) - local ent = obj:get_luaentity() - if ent then - ent.player = ent.player or user - end - end - end - return itemstack - end, -}) - -local XTRAORES_MDWP_RB = { - physical = false, - timer = 0, - visual = "sprite", - visual_size = {x=0.9, y=0.9,}, - textures = {'xolaser_rainbow.png'}, - lastpos= {}, - collisionbox = {0, 0, 0, 0, 0, 0}, -} - -XTRAORES_MDWP_RB.on_step = function(self, dtime) - self.timer = self.timer + dtime - local pos = self.object:getpos() - local node = minetest.get_node(pos) - - if self.timer > 0.2 then - local objs = minetest.get_objects_inside_radius({x = pos.x, y = pos.y, z = pos.z}, 1) - for k, obj in pairs(objs) do - if obj:get_luaentity() ~= nil then - if obj:get_luaentity().name ~= "xtraores_mdwp:rb" and obj:get_luaentity().name ~= "__builtin:item" then - local damage = 45 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - else - local damage = 45 - obj:punch(self.object, 1.0, { - full_punch_interval = 1.0, - damage_groups= {fleshy = damage}, - }, nil) - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - end - - if self.lastpos.x ~= nil then - if minetest.registered_nodes[node.name].walkable then - if not minetest.setting_getbool("creative_mode") then - minetest.add_item(self.lastpos, "") - end - minetest.sound_play("default_dig_cracky", {pos = self.lastpos, gain = 0.8}) - self.object:remove() - end - end - self.lastpos= {x = pos.x, y = pos.y, z = pos.z} -end - -minetest.register_entity("xtraores_mdwp:rb", XTRAORES_MDWP_RB ) - diff --git a/xtraores_rainbow/depends.txt b/xtraores_rainbow/depends.txt index 4ad96d5..ee5fa2e 100644 --- a/xtraores_rainbow/depends.txt +++ b/xtraores_rainbow/depends.txt @@ -1 +1,2 @@ default +xtraores diff --git a/xtraores_rainbow/init.lua b/xtraores_rainbow/init.lua index 01acb2c..e076ac1 100644 --- a/xtraores_rainbow/init.lua +++ b/xtraores_rainbow/init.lua @@ -1,8 +1,21 @@ +--Move to xtraores_rainbow +minetest.register_alias("xtraores:rainbow", "xtraores_rainbow:rainbow") + +minetest.register_node("xtraores_rainbow:rainbow", { + description = "Rainbow Block", + tiles = {"xtraores_rainbow_block.png"}, + light_source = default.LIGHT_MAX - 1, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_craft({ - output = 'xtraores_rainbow:glass 8', + output = "xtraores_rainbow:rainbow 8", recipe = { - {'xtraores:rainbow', 'default:glass'}, - {'xtraores:rainbow', 'default:glass'}, + {"xtraores:adamantite_ingot", "xtraores:rarium_ingot", "xtraores:platinum_ingot"}, + {"xtraores:cobalt_ingot", "default:glass", "xtraores:osmium_ingot"}, + {"default:diamond", "default:mese_crystal", "default:copper_ingot"}, } }) @@ -19,6 +32,15 @@ minetest.register_node("xtraores_rainbow:glass", { sounds = default.node_sound_glass_defaults(), }) +minetest.register_craft({ + output = "xtraores_rainbow:glass 8", + recipe = { + {"", "default:glass", ""}, + {"default:glass", "xtraores_rainbow:rainbow", "default:glass"}, + {"", "default:glass", ""}, + } +}) + minetest.register_node("xtraores_rainbow:wood", { description = "Rainbow Planks", tiles = {"xtraores_wood.png"}, @@ -29,10 +51,15 @@ minetest.register_node("xtraores_rainbow:wood", { }) minetest.register_craft({ - output = 'xtraores_rainbow:wood 3', + output = "xtraores_rainbow:wood 5", recipe = { - {'xtraores:rainbow'}, - {'default:wood'}, - {'default:wood'}, + {"", "default:wood", ""}, + {"default:wood", "xtraores_rainbow:rainbow", "default:wood"}, + {"", "default:wood", ""}, } -}) \ No newline at end of file +}) + +minetest.log("action", "[MOD] Xtraores: Module (rainbow) loaded!") + + +--Can you taste the rainbow yet? \ No newline at end of file diff --git a/xtraores_rainbow/textures/xtraores_rainbow_block.png b/xtraores_rainbow/textures/xtraores_rainbow_block.png new file mode 100644 index 0000000..5bf8e00 Binary files /dev/null and b/xtraores_rainbow/textures/xtraores_rainbow_block.png differ diff --git a/xtraores_rainbow/textures/xtraores_window.png b/xtraores_rainbow/textures/xtraores_window.png new file mode 100644 index 0000000..fa37f0f Binary files /dev/null and b/xtraores_rainbow/textures/xtraores_window.png differ diff --git a/xtraores_rainbow/textures/xtraores_wood.png b/xtraores_rainbow/textures/xtraores_wood.png new file mode 100644 index 0000000..007c9cc Binary files /dev/null and b/xtraores_rainbow/textures/xtraores_wood.png differ diff --git a/xtraores_stairs/depends.txt b/xtraores_stairs/depends.txt deleted file mode 100644 index e95acbc..0000000 --- a/xtraores_stairs/depends.txt +++ /dev/null @@ -1 +0,0 @@ -stairs \ No newline at end of file diff --git a/xtraores_stairs/init.lua b/xtraores_stairs/init.lua deleted file mode 100644 index 81d33c4..0000000 --- a/xtraores_stairs/init.lua +++ /dev/null @@ -1,87 +0,0 @@ -stairs.register_stair_and_slab("redmarble", "xtraores:redmarble", - {cracky = 3}, - {"xtraores_redmarble.png"}, - "Red Marble Stair", - "Red Marble Slab", - default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("redmarble_polished", "xtraores:redmarble_polished", - {cracky = 3}, - {"xtraores_redmarble_polished.png"}, - "Polished Red Marble Stair", - "Polished Red Marble Slab", - -default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("redmarble_bricks", "xtraores:redmarble_bricks", - {cracky = 3}, - {"xtraores_redmarble_bricks.png"}, - "Red Marble Brick Stair", - "Red Marble Brick Slab", - default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("bluemarble", "xtraores:bluemarble", - {cracky = 3}, - {"xtraores_bluemarble.png"}, - "Blue Marble Stair", - "Blue Marble Slab", - default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("bluemarble_polished", "xtraores:bluemarble_polished", - {cracky = 3}, - {"xtraores_bluemarble_polished.png"}, - "Polished Blue Marble Stair", - "Polished Blue Marble Slab", - -default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("bluemarble_bricks", "xtraores:bluemarble_bricks", - {cracky = 3}, - {"xtraores_bluemarble_bricks.png"}, - "Blue Marble Brick Stair", - "Blue Marble Brick Slab", - default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("marble", "xtraores:marble", - {cracky = 3}, - {"xtraores_marble.png"}, - "Marble Stair", - "Marble Slab", - default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("marble_polished", "xtraores:marble_polished", - {cracky = 3}, - {"xtraores_marble_polished.png"}, - "Polished Marble Stair", - "Polished Marble Slab", - -default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("marble_bricks", "xtraores:marble_bricks", - {cracky = 3}, - {"xtraores_marble_bricks.png"}, - "Marble Brick Stair", - "Marble Brick Slab", - default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("blackmarble", "xtraores:blackmarble", - {cracky = 3}, - {"xtraores_blackmarble.png"}, - "Black Marble Stair", - "Black Marble Slab", - default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("blackmarble_polished", "xtraores:blackmarble_polished", - {cracky = 3}, - {"xtraores_blackmarble_polished.png"}, - "Polished Black Marble Stair", - "Polished Black Marble Slab", - default.node_sound_stone_defaults()) - -stairs.register_stair_and_slab("blackmarble_bricks", "xtraores:blackmarble_bricks", - {cracky = 3}, - {"xtraores_blackmarble_bricks.png"}, - "Black Marble Brick Stair", - "Black Marble Brick Slab", - default.node_sound_stone_defaults()) -