Marble/Granite veins, Cavorite Tool Upgrades
Finally got off my bum and made Cavorite somewhat useful.
12
abms.lua
@ -46,6 +46,18 @@ minetest.register_abm({
|
||||
orename = "moreores:mineral_mithril"
|
||||
orerad = 1
|
||||
end
|
||||
if node.name == "skylands:mineral_uranium" then
|
||||
orename = "technic:mineral_uranium"
|
||||
orerad = 1
|
||||
end
|
||||
if node.name == "skylands:mineral_chromium" then
|
||||
orename = "technic:mineral_chromium"
|
||||
orerad = 1
|
||||
end
|
||||
if node.name == "skylands:mineral_zinc" then
|
||||
orename = "technic:mineral_zinc"
|
||||
orerad = 1
|
||||
end
|
||||
if node.name == "skylands:sky_silicon" then
|
||||
orename = "skylands:mineral_silicon"
|
||||
orerad = 1
|
||||
|
@ -4,3 +4,4 @@ stairs
|
||||
mesecons?
|
||||
moreblocks?
|
||||
moreores?
|
||||
technic?
|
||||
|
70
init.lua
@ -1,6 +1,6 @@
|
||||
-- skylands 4.0 by HeroOfTheWinds, based on floatindev 0.2.0 by paramat
|
||||
-- skylands 4.2 by HeroOfTheWinds, based on floatindev 0.2.0 by paramat
|
||||
-- For latest stable Minetest and back to 0.4.8
|
||||
-- Depends default, fire, stairs, moreblocks?, moreores?, mesecons?
|
||||
-- Depends default, fire, stairs, moreblocks?, moreores?, mesecons?, technic?
|
||||
-- License: code WTFPL
|
||||
|
||||
-- Parameters
|
||||
@ -40,6 +40,8 @@ local ORECHA = 1 / (6 * 6 * 6)
|
||||
local PILCHA = 0.002
|
||||
local PARCHA = 0.0001
|
||||
|
||||
local VEINTHR = 0.25 -- threshold for veins of marble and granite. - higher = wider and more common
|
||||
|
||||
local HEAVEN = 8000 --altitude at which "heaven" islands begin appearing
|
||||
local HEAVINT = 800 --interval between "heaven" layers; also determines layer width
|
||||
|
||||
@ -120,6 +122,28 @@ local np_humid = {
|
||||
persist = 0.5
|
||||
}
|
||||
|
||||
-- 3D noise for marble generation
|
||||
|
||||
local np_marble = {
|
||||
offset = 0,
|
||||
scale = 15,
|
||||
spread = {x=130, y=130, z=130},
|
||||
seed = 23,
|
||||
octaves = 3,
|
||||
persist = 0.70
|
||||
}
|
||||
|
||||
-- 3D noise for granite generation
|
||||
|
||||
local np_granite = {
|
||||
offset = 0,
|
||||
scale = 15,
|
||||
spread = {x=130, y=130, z=130},
|
||||
seed = 24,
|
||||
octaves = 3,
|
||||
persist = 0.70
|
||||
}
|
||||
|
||||
-- Stuff
|
||||
|
||||
skylands = {}
|
||||
@ -129,14 +153,16 @@ dofile(minetest.get_modpath("skylands").."/stairs.lua")
|
||||
dofile(minetest.get_modpath("skylands").."/wheat.lua")
|
||||
dofile(minetest.get_modpath("skylands").."/abms.lua")
|
||||
dofile(minetest.get_modpath("skylands").."/functions.lua")
|
||||
dofile(minetest.get_modpath("skylands").."/tools.lua")
|
||||
dofile(minetest.get_modpath("skylands").."/pools.lua")
|
||||
|
||||
|
||||
|
||||
--vars for if mesecons, moreblocks and moreores are installed
|
||||
--vars for if mesecons, moreblocks, technic and moreores are installed
|
||||
local mblocks = false
|
||||
local mores = false
|
||||
local mcons = false
|
||||
local tech = false
|
||||
|
||||
|
||||
-- On generated function
|
||||
@ -146,6 +172,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
mblocks = minetest.get_modpath("moreblocks")
|
||||
mores = minetest.get_modpath("moreores")
|
||||
mcons = minetest.get_modpath("mesecons")
|
||||
tech = minetest.get_modpath("technic")
|
||||
|
||||
if minp.x < XMIN or maxp.x > XMAX
|
||||
or minp.y < YMIN or maxp.y > YMAX
|
||||
@ -202,6 +229,12 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
local c_stotin = minetest.get_content_id("skylands:mineral_tin")
|
||||
local c_stomithril = minetest.get_content_id("skylands:mineral_mithril")
|
||||
local c_stosilver = minetest.get_content_id("skylands:mineral_silver")
|
||||
--technic
|
||||
local c_stouranium = minetest.get_content_id("skylands:mineral_uranium")
|
||||
local c_stozinc = minetest.get_content_id("skylands:mineral_zinc")
|
||||
local c_stochrom = minetest.get_content_id("skylands:mineral_chromium")
|
||||
local c_marble = minetest.get_content_id("technic:marble")
|
||||
local c_granite = minetest.get_content_id("technic:granite")
|
||||
|
||||
local c_flistone = minetest.get_content_id("skylands:stone")
|
||||
local c_flidestone = minetest.get_content_id("skylands:desertstone")
|
||||
@ -236,6 +269,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
local nvals_temp = minetest.get_perlin_map(np_temp, chulens):get3dMap_flat(minposxyz)
|
||||
local nvals_humid = minetest.get_perlin_map(np_humid, chulens):get3dMap_flat(minposxyz)
|
||||
|
||||
local nvals_granite = minetest.get_perlin_map(np_granite, chulens):get3dMap_flat(minposxyz)
|
||||
local nvals_marble = minetest.get_perlin_map(np_marble, chulens):get3dMap_flat(minposxyz)
|
||||
|
||||
local lakepoints = {} --table to store points to scan for lake generation
|
||||
local li = 1 --index for lakepoints
|
||||
|
||||
@ -415,8 +451,26 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
data[vi] = c_flistone
|
||||
end
|
||||
elseif math.random() < ORECHA then
|
||||
local osel = math.random(40)
|
||||
if osel >= 38 then
|
||||
local osel = math.random(46)
|
||||
if osel >= 44 then
|
||||
if tech then
|
||||
data[vi] = c_stozinc
|
||||
else
|
||||
data[vi] = c_stocopp
|
||||
end
|
||||
elseif osel >= 42 then --life the universe and everything
|
||||
if tech then
|
||||
data[vi] = c_stouranium --or not.
|
||||
else
|
||||
data[vi] = c_stodiam
|
||||
end
|
||||
elseif osel >= 40 then
|
||||
if tech then
|
||||
data[vi] = c_stochrom
|
||||
else
|
||||
data[vi] = c_stocav
|
||||
end
|
||||
elseif osel >= 38 then
|
||||
if mcons then
|
||||
data[vi] = c_stosil
|
||||
else
|
||||
@ -464,6 +518,12 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
else
|
||||
data[vi] = c_flistone
|
||||
end
|
||||
if nvals_marble[nixyz] >= -VEINTHR and nvals_marble[nixyz] <= VEINTHR then
|
||||
data[vi] = c_marble
|
||||
end
|
||||
if nvals_granite[nixyz] >= -VEINTHR and nvals_granite[nixyz] <= VEINTHR then
|
||||
data[vi] = c_granite
|
||||
end
|
||||
stable[si] = stable[si] + 1
|
||||
end
|
||||
|
||||
|
28
nodes.lua
@ -330,6 +330,34 @@ minetest.register_node("skylands:mineral_mithril", {
|
||||
drop = "moreores:mithril_lump"
|
||||
})
|
||||
|
||||
--technic ores
|
||||
minetest.register_node( "skylands:mineral_uranium", {
|
||||
description = "Uranium Ore",
|
||||
tiles = { "default_stone.png^technic_mineral_uranium.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, radioactive=1, skyores=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
drop = 'craft "technic:uranium" 1',
|
||||
})
|
||||
|
||||
minetest.register_node( "skylands:mineral_chromium", {
|
||||
description = "Chromium Ore",
|
||||
tiles = { "default_stone.png^technic_mineral_chromium.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, skyores=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
drop = 'craft "technic:chromium_lump" 1',
|
||||
})
|
||||
|
||||
minetest.register_node( "skylands:mineral_zinc", {
|
||||
description = "Zinc Ore",
|
||||
tile_images = { "default_stone.png^technic_mineral_zinc.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, skyores=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
drop = 'craft "technic:zinc_lump" 1',
|
||||
})
|
||||
|
||||
--Skylands-specific ores
|
||||
|
||||
--Silicon
|
||||
|
Before Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3.5 KiB |
BIN
textures/skylands_cavorite_handle.png
Normal file
After Width: | Height: | Size: 251 B |
BIN
textures/skylands_cavorite_tool_bronzeaxe.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
textures/skylands_cavorite_tool_bronzepick.png
Normal file
After Width: | Height: | Size: 376 B |
BIN
textures/skylands_cavorite_tool_bronzeshovel.png
Normal file
After Width: | Height: | Size: 391 B |
BIN
textures/skylands_cavorite_tool_bronzesword.png
Normal file
After Width: | Height: | Size: 293 B |
BIN
textures/skylands_cavorite_tool_diamondaxe.png
Normal file
After Width: | Height: | Size: 316 B |
BIN
textures/skylands_cavorite_tool_diamondpick.png
Normal file
After Width: | Height: | Size: 380 B |
BIN
textures/skylands_cavorite_tool_diamondshovel.png
Normal file
After Width: | Height: | Size: 382 B |
BIN
textures/skylands_cavorite_tool_diamondsword.png
Normal file
After Width: | Height: | Size: 309 B |
BIN
textures/skylands_cavorite_tool_meseaxe.png
Normal file
After Width: | Height: | Size: 311 B |
BIN
textures/skylands_cavorite_tool_mesepick.png
Normal file
After Width: | Height: | Size: 315 B |
BIN
textures/skylands_cavorite_tool_meseshovel.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
textures/skylands_cavorite_tool_mesesword.png
Normal file
After Width: | Height: | Size: 285 B |
BIN
textures/skylands_cavorite_tool_steelaxe.png
Normal file
After Width: | Height: | Size: 315 B |
BIN
textures/skylands_cavorite_tool_steelpick.png
Normal file
After Width: | Height: | Size: 326 B |
BIN
textures/skylands_cavorite_tool_steelshovel.png
Normal file
After Width: | Height: | Size: 367 B |
BIN
textures/skylands_cavorite_tool_steelsword.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
textures/skylands_cavorite_tool_stoneaxe.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
textures/skylands_cavorite_tool_stonepick.png
Normal file
After Width: | Height: | Size: 399 B |
BIN
textures/skylands_cavorite_tool_stoneshovel.png
Normal file
After Width: | Height: | Size: 374 B |
BIN
textures/skylands_cavorite_tool_stonesword.png
Normal file
After Width: | Height: | Size: 363 B |
BIN
textures/skylands_cavorite_tool_woodaxe.png
Normal file
After Width: | Height: | Size: 312 B |
BIN
textures/skylands_cavorite_tool_woodpick.png
Normal file
After Width: | Height: | Size: 371 B |
BIN
textures/skylands_cavorite_tool_woodshovel.png
Normal file
After Width: | Height: | Size: 355 B |
BIN
textures/skylands_cavorite_tool_woodsword.png
Normal file
After Width: | Height: | Size: 323 B |
548
tools.lua
Normal file
@ -0,0 +1,548 @@
|
||||
minetest.register_craftitem("skylands:cavorite_handle", {
|
||||
description = "Cavorite Tool Handle",
|
||||
inventory_image = "skylands_cavorite_handle.png",
|
||||
})
|
||||
|
||||
--
|
||||
-- Picks
|
||||
--
|
||||
|
||||
minetest.register_tool("skylands:cavorite_pick_wood", {
|
||||
description = "Cavorite-Enhanced Wooden Pickaxe",
|
||||
inventory_image = "skylands_cavorite_tool_woodpick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.8,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
cracky = {times={[3]=1.10}, uses=8, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=2},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_pick_stone", {
|
||||
description = "Cavorite-Enhanced Stone Pickaxe",
|
||||
inventory_image = "skylands_cavorite_tool_stonepick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.87,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
cracky = {times={[2]=1.33, [3]=0.8}, uses=15, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=3},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_pick_steel", {
|
||||
description = "Cavorite-Enhanced Steel Pickaxe",
|
||||
inventory_image = "skylands_cavorite_tool_steelpick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.67,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
cracky = {times={[1]=2.67, [2]=1.07, [3]=0.53}, uses=15, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_pick_bronze", {
|
||||
description = "Cavorite-Enhanced Bronze Pickaxe",
|
||||
inventory_image = "skylands_cavorite_tool_bronzepick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.67,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
cracky = {times={[1]=2.67, [2]=1.07, [3]=0.53}, uses=23, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_pick_mese", {
|
||||
description = "Cavorite-Enhanced Mese Pickaxe",
|
||||
inventory_image = "skylands_cavorite_tool_mesepick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.6,
|
||||
max_drop_level=3,
|
||||
groupcaps={
|
||||
cracky = {times={[1]=1.6, [2]=0.8, [3]=0.40}, uses=15, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=5},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_pick_diamond", {
|
||||
description = "Cavorite-Enhanced Diamond Pickaxe",
|
||||
inventory_image = "skylands_cavorite_tool_diamondpick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.6,
|
||||
max_drop_level=3,
|
||||
groupcaps={
|
||||
cracky = {times={[1]=1.33, [2]=0.67, [3]=0.33}, uses=23, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=5},
|
||||
},
|
||||
})
|
||||
|
||||
--
|
||||
-- Shovels
|
||||
--
|
||||
|
||||
minetest.register_tool("skylands:cavorite_shovel_wood", {
|
||||
description = "Cavorite-Enhanced Wooden Shovel",
|
||||
inventory_image = "skylands_cavorite_tool_woodshovel.png",
|
||||
wield_image = "skylands_cavorite_tool_woodshovel.png^[transformR90",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.8,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
crumbly = {times={[1]=2.00, [2]=1.07, [3]=0.40}, uses=7, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=2},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_shovel_stone", {
|
||||
description = "Cavorite-Enhanced Stone Shovel",
|
||||
inventory_image = "skylands_cavorite_tool_stoneshovel.png",
|
||||
wield_image = "skylands_cavorite_tool_stoneshovel.png^[transformR90",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.93,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
crumbly = {times={[1]=1.20, [2]=0.80, [3]=0.33}, uses=15, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=2},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_shovel_steel", {
|
||||
description = "Cavorite-Enhanced Steel Shovel",
|
||||
inventory_image = "skylands_cavorite_tool_steelshovel.png",
|
||||
wield_image = "skylands_cavorite_tool_steelshovel.png^[transformR90",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.73,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly = {times={[1]=1.00, [2]=0.60, [3]=0.27}, uses=22, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=3},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_shovel_bronze", {
|
||||
description = "Cavorite-Enhanced Bronze Shovel",
|
||||
inventory_image = "skylands_cavorite_tool_bronzeshovel.png",
|
||||
wield_image = "skylands_cavorite_tool_bronzeshovel.png^[transformR90",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.73,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly = {times={[1]=1.00, [2]=0.60, [3]=0.27}, uses=30, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=3},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_shovel_mese", {
|
||||
description = "Cavorite-Enhanced Mese Shovel",
|
||||
inventory_image = "skylands_cavorite_tool_meseshovel.png",
|
||||
wield_image = "skylands_cavorite_tool_meseshovel.png^[transformR90",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.67,
|
||||
max_drop_level=3,
|
||||
groupcaps={
|
||||
crumbly = {times={[1]=0.80, [2]=0.40, [3]=0.20}, uses=15, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_shovel_diamond", {
|
||||
description = "Cavorite-Enhanced Diamond Shovel",
|
||||
inventory_image = "skylands_cavorite_tool_diamondshovel.png",
|
||||
wield_image = "skylands_cavorite_tool_diamondshovel.png^[transformR90",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.67,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly = {times={[1]=0.73, [2]=0.33, [3]=0.20}, uses=23, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
})
|
||||
|
||||
--
|
||||
-- Axes
|
||||
--
|
||||
|
||||
minetest.register_tool("skylands:cavorite_axe_wood", {
|
||||
description = "Cavorite-Enhanced Wooden Axe",
|
||||
inventory_image = "skylands_cavorite_tool_woodaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.67,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
choppy = {times={[2]=2.00, [3]=1.33}, uses=7, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=2},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_axe_stone", {
|
||||
description = "Cavorite-Enhanced Stone Axe",
|
||||
inventory_image = "skylands_cavorite_tool_stoneaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.8,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
choppy={times={[1]=2.00, [2]=1.33, [3]=1.00}, uses=15, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=3},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_axe_steel", {
|
||||
description = "Cavorite-Enhanced Steel Axe",
|
||||
inventory_image = "skylands_cavorite_tool_steelaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.67,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times={[1]=1.67, [2]=0.93, [3]=0.67}, uses=15, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_axe_bronze", {
|
||||
description = "Cavorite-Enhanced Bronze Axe",
|
||||
inventory_image = "skylands_cavorite_tool_bronzeaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.67,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times={[1]=1.67, [2]=0.93, [3]=0.67}, uses=15, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_axe_mese", {
|
||||
description = "Cavorite-Enhanced Mese Axe",
|
||||
inventory_image = "skylands_cavorite_tool_meseaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.6,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times={[1]=1.47, [2]=0.67, [3]=0.40}, uses=15, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=6},
|
||||
},
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_axe_diamond", {
|
||||
description = "Cavorite-Enhanced Diamond Axe",
|
||||
inventory_image = "skylands_cavorite_tool_diamondaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.6,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times={[1]=1.40, [2]=0.60, [3]=0.33}, uses=20, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=7},
|
||||
},
|
||||
})
|
||||
|
||||
--
|
||||
-- Swords
|
||||
--
|
||||
|
||||
minetest.register_tool("skylands:cavorite_sword_wood", {
|
||||
description = "Cavorite-Enhanced Wooden Sword",
|
||||
inventory_image = "skylands_cavorite_tool_woodsword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.67,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
snappy={times={[2]=1.07, [3]=0.27}, uses=7, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=2},
|
||||
}
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_sword_stone", {
|
||||
description = "Cavorite-Enhanced Stone Sword",
|
||||
inventory_image = "skylands_cavorite_tool_stonesword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.8,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
snappy={times={[2]=0.93, [3]=0.27}, uses=15, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
}
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_sword_steel", {
|
||||
description = "Cavorite-Enhanced Steel Sword",
|
||||
inventory_image = "skylands_cavorite_tool_steelsword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.53,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
snappy={times={[1]=1.67, [2]=0.8, [3]=0.23}, uses=15, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=6},
|
||||
}
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_sword_bronze", {
|
||||
description = "Cavorite-Enhanced Bronze Sword",
|
||||
inventory_image = "skylands_cavorite_tool_bronzesword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.53,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
snappy={times={[1]=1.67, [2]=0.8, [3]=0.23}, uses=30, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=6},
|
||||
}
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_sword_mese", {
|
||||
description = "Cavorite-Enhanced Mese Sword",
|
||||
inventory_image = "skylands_cavorite_tool_mesesword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.47,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
snappy={times={[1]=1.33, [2]=0.67, [3]=0.23}, uses=20, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=7},
|
||||
}
|
||||
})
|
||||
minetest.register_tool("skylands:cavorite_sword_diamond", {
|
||||
description = "Cavorite-Enhanced Diamond Sword",
|
||||
inventory_image = "skylands_cavorite_tool_diamondsword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.47,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
snappy={times={[1]=1.27, [2]=0.60, [3]=0.20}, uses=30, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=8},
|
||||
}
|
||||
})
|
||||
|
||||
---
|
||||
--- Crafting
|
||||
---
|
||||
|
||||
--cavorite handle, base of all tool upgrades
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_handle",
|
||||
recipe = {
|
||||
{"skylands:cavorite"},
|
||||
{"skylands:cavorite"},
|
||||
}
|
||||
})
|
||||
|
||||
--tool upgrade recipes
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_pick_wood",
|
||||
recipe = {
|
||||
{"default:pick_wood"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_pick_stone",
|
||||
recipe = {
|
||||
{"default:pick_stone"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_pick_steel",
|
||||
recipe = {
|
||||
{"default:pick_steel"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_pick_bronze",
|
||||
recipe = {
|
||||
{"default:pick_bronze"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_pick_mese",
|
||||
recipe = {
|
||||
{"default:pick_mese"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_pick_diamond",
|
||||
recipe = {
|
||||
{"default:pick_diamond"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_shovel_wood",
|
||||
recipe = {
|
||||
{"default:shovel_wood"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_shovel_stone",
|
||||
recipe = {
|
||||
{"default:shovel_stone"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_shovel_steel",
|
||||
recipe = {
|
||||
{"default:shovel_steel"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_shovel_bronze",
|
||||
recipe = {
|
||||
{"default:shovel_bronze"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_shovel_mese",
|
||||
recipe = {
|
||||
{"default:shovel_mese"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_shovel_diamond",
|
||||
recipe = {
|
||||
{"default:shovel_diamond"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_axe_wood",
|
||||
recipe = {
|
||||
{"default:axe_wood"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_axe_stone",
|
||||
recipe = {
|
||||
{"default:axe_stone"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_axe_steel",
|
||||
recipe = {
|
||||
{"default:axe_steel"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_axe_bronze",
|
||||
recipe = {
|
||||
{"default:axe_bronze"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_axe_mese",
|
||||
recipe = {
|
||||
{"default:axe_mese"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_axe_diamond",
|
||||
recipe = {
|
||||
{"default:axe_diamond"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_sword_wood",
|
||||
recipe = {
|
||||
{"default:sword_wood"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_sword_stone",
|
||||
recipe = {
|
||||
{"default:sword_stone"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_sword_steel",
|
||||
recipe = {
|
||||
{"default:sword_steel"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_sword_bronze",
|
||||
recipe = {
|
||||
{"default:sword_bronze"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_sword_mese",
|
||||
recipe = {
|
||||
{"default:sword_mese"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "skylands:cavorite_sword_diamond",
|
||||
recipe = {
|
||||
{"default:sword_diamond"},
|
||||
{"skylands:cavorite_handle"},
|
||||
{"skylands:cavorite_handle"},
|
||||
}
|
||||
})
|