2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Registered armors.
|
|
|
|
--
|
|
|
|
-- @topic armor
|
|
|
|
|
|
|
|
|
2017-08-06 18:43:41 +02:00
|
|
|
-- support for i18n
|
2020-08-31 05:47:57 +02:00
|
|
|
local S = armor.get_translator
|
2017-03-31 20:54:12 +02:00
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Admin Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:helmet_admin
|
|
|
|
-- @img 3d_armor_inv_helmet_admin.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 100
|
|
|
|
-- @grp armor_use 0
|
|
|
|
-- @grp armor_water 1
|
|
|
|
-- @grp not_in_creative_inventory 1
|
|
|
|
-- @armorgrp fleshy 100
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_admin", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Admin Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_admin.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=100},
|
|
|
|
groups = {armor_head=1, armor_heal=100, armor_use=0, armor_water=1,
|
2017-03-17 21:05:55 +01:00
|
|
|
not_in_creative_inventory=1},
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
|
|
|
return
|
|
|
|
end,
|
|
|
|
})
|
2015-03-08 19:29:17 +01:00
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Admin Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:chestplate_admin
|
|
|
|
-- @img 3d_armor_inv_chestplate_admin.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 100
|
|
|
|
-- @grp armor_use 0
|
|
|
|
-- @grp not_in_creative_inventory 1
|
|
|
|
-- @armorgrp fleshy 100
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_admin", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Admin Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_admin.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=100},
|
|
|
|
groups = {armor_torso=1, armor_heal=100, armor_use=0,
|
2017-03-17 21:05:55 +01:00
|
|
|
not_in_creative_inventory=1},
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
|
|
|
return
|
|
|
|
end,
|
|
|
|
})
|
2013-09-12 01:29:30 +02:00
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Admin Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_admin
|
|
|
|
-- @img 3d_armor_inv_leggings_admin.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 100
|
|
|
|
-- @grp armor_use 0
|
|
|
|
-- @grp not_in_creative_inventory 1
|
|
|
|
-- @armorgrp fleshy 100
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_admin", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Admin Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_admin.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=100},
|
|
|
|
groups = {armor_legs=1, armor_heal=100, armor_use=0,
|
2017-03-17 21:05:55 +01:00
|
|
|
not_in_creative_inventory=1},
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
2013-11-12 22:22:52 +01:00
|
|
|
return
|
2017-03-17 21:05:55 +01:00
|
|
|
end,
|
|
|
|
})
|
2013-11-12 22:22:52 +01:00
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Admin Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_admin
|
|
|
|
-- @img 3d_armor_inv_boots_admin.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 100
|
|
|
|
-- @grp armor_use 0
|
|
|
|
-- @grp not_in_creative_inventory 1
|
|
|
|
-- @armorgrp fleshy 100
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_admin", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Admin Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_admin.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=100},
|
|
|
|
groups = {armor_feet=1, armor_heal=100, armor_use=0,
|
2017-03-17 21:05:55 +01:00
|
|
|
not_in_creative_inventory=1},
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
2014-04-21 20:10:24 +02:00
|
|
|
return
|
2017-03-17 21:05:55 +01:00
|
|
|
end,
|
|
|
|
})
|
2013-06-22 20:31:57 +02:00
|
|
|
|
2017-04-09 19:37:55 +02:00
|
|
|
minetest.register_alias("adminboots", "3d_armor:boots_admin")
|
|
|
|
minetest.register_alias("adminhelmet", "3d_armor:helmet_admin")
|
|
|
|
minetest.register_alias("adminchestplate", "3d_armor:chestplate_admin")
|
|
|
|
minetest.register_alias("adminleggings", "3d_armor:leggings_admin")
|
2017-04-05 18:46:09 +02:00
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Wood
|
|
|
|
--
|
|
|
|
-- Requires setting `armor_material_wood`.
|
|
|
|
--
|
|
|
|
-- @section wood
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
if armor.materials.wood then
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Wood Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:helmet_wood
|
|
|
|
-- @img 3d_armor_inv_helmet_wood.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 2000
|
|
|
|
-- @grp flammable 1
|
|
|
|
-- @armorgrp fleshy 5
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 3
|
|
|
|
-- @damagegrp crumbly 2
|
|
|
|
-- @damagegrp level 1
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_wood", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Wood Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_wood.png",
|
2017-04-09 18:34:22 +02:00
|
|
|
groups = {armor_head=1, armor_heal=0, armor_use=2000, flammable=1},
|
2017-04-05 18:46:09 +02:00
|
|
|
armor_groups = {fleshy=5},
|
|
|
|
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Wood Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:chestplate_wood
|
|
|
|
-- @img 3d_armor_inv_chestplate_wood.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 2000
|
|
|
|
-- @grp flammable 1
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 3
|
|
|
|
-- @damagegrp crumbly 2
|
|
|
|
-- @damagegrp level 1
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_wood", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Wood Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_wood.png",
|
2017-04-09 18:34:22 +02:00
|
|
|
groups = {armor_torso=1, armor_heal=0, armor_use=2000, flammable=1},
|
2017-04-05 18:46:09 +02:00
|
|
|
armor_groups = {fleshy=10},
|
|
|
|
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Wood Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_wood
|
|
|
|
-- @img 3d_armor_inv_leggings_wood.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 1000
|
|
|
|
-- @grp flammable 1
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 3
|
|
|
|
-- @damagegrp crumbly 2
|
|
|
|
-- @damagegrp level 1
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_wood", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Wood Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_wood.png",
|
2017-04-09 18:34:22 +02:00
|
|
|
groups = {armor_legs=1, armor_heal=0, armor_use=2000, flammable=1},
|
2017-04-19 20:42:12 +02:00
|
|
|
armor_groups = {fleshy=10},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Wood Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_wood
|
|
|
|
-- @img 3d_armor_inv_boots_wood.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 2000
|
|
|
|
-- @grp flammable 1
|
|
|
|
-- @armorgrp fleshy 5
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 3
|
|
|
|
-- @damagegrp crumbly 2
|
|
|
|
-- @damagegrp level 1
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_wood", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Wood Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_wood.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=5},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
2017-04-09 18:34:22 +02:00
|
|
|
groups = {armor_feet=1, armor_heal=0, armor_use=2000, flammable=1},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2020-04-30 05:04:16 +02:00
|
|
|
local wood_armor_fuel = {
|
|
|
|
helmet = 6,
|
|
|
|
chestplate = 8,
|
|
|
|
leggings = 7,
|
|
|
|
boots = 5
|
|
|
|
}
|
|
|
|
for armor, burn in pairs(wood_armor_fuel) do
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "3d_armor:" .. armor .. "_wood",
|
|
|
|
burntime = burn,
|
|
|
|
})
|
|
|
|
end
|
2013-06-22 20:31:57 +02:00
|
|
|
end
|
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Cactus
|
|
|
|
--
|
|
|
|
-- Requires setting `armor_material_cactus`.
|
|
|
|
--
|
|
|
|
-- @section cactus
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
if armor.materials.cactus then
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Cactus Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:helmet_cactus
|
|
|
|
-- @img 3d_armor_inv_helmet_cactus.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 1000
|
|
|
|
-- @armorgrp fleshy 5
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 3
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 2
|
|
|
|
-- @damagegrp level 1
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_cactus", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Cactus Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_cactus.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
groups = {armor_head=1, armor_heal=0, armor_use=1000},
|
2017-04-05 18:46:09 +02:00
|
|
|
armor_groups = {fleshy=5},
|
|
|
|
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Cactus Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:chestplate_cactus
|
|
|
|
-- @img 3d_armor_inv_chestplate_cactus.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 1000
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 3
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 2
|
|
|
|
-- @damagegrp level 1
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_cactus", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Cactus Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_cactus.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
groups = {armor_torso=1, armor_heal=0, armor_use=1000},
|
2017-04-05 18:46:09 +02:00
|
|
|
armor_groups = {fleshy=10},
|
|
|
|
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Cactus Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_cactus
|
|
|
|
-- @img 3d_armor_inv_leggings_cactus.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 1000
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 3
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 2
|
|
|
|
-- @damagegrp level 1
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_cactus", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Cactus Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_cactus.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
groups = {armor_legs=1, armor_heal=0, armor_use=1000},
|
2017-04-19 20:42:12 +02:00
|
|
|
armor_groups = {fleshy=10},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Cactus Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_cactus
|
|
|
|
-- @img 3d_armor_inv_boots_cactus.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 1000
|
|
|
|
-- @armorgrp fleshy 5
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 3
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 2
|
|
|
|
-- @damagegrp level 1
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_cactus", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Cactus Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_cactus.png",
|
2017-03-23 01:52:32 +01:00
|
|
|
groups = {armor_feet=1, armor_heal=0, armor_use=1000},
|
2017-04-05 18:46:09 +02:00
|
|
|
armor_groups = {fleshy=5},
|
|
|
|
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2020-04-30 05:04:16 +02:00
|
|
|
local cactus_armor_fuel = {
|
|
|
|
helmet = 14,
|
|
|
|
chestplate = 16,
|
|
|
|
leggings = 15,
|
|
|
|
boots = 13
|
|
|
|
}
|
|
|
|
for armor, burn in pairs(cactus_armor_fuel) do
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "3d_armor:" .. armor .. "_cactus",
|
|
|
|
burntime = burn,
|
|
|
|
})
|
|
|
|
end
|
2014-04-13 18:41:19 +02:00
|
|
|
end
|
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Steel
|
|
|
|
--
|
|
|
|
-- Requires setting `armor_material_steel`.
|
|
|
|
--
|
|
|
|
-- @section steel
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
if armor.materials.steel then
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Steel Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:helmet_steel
|
|
|
|
-- @img 3d_armor_inv_helmet_steel.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 800
|
|
|
|
-- @grp physics_speed -0.01
|
|
|
|
-- @grp physica_gravity 0.01
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 3
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 1
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_steel", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Steel Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_steel.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_head=1, armor_heal=0, armor_use=800,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.01, physics_gravity=0.01},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=10},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Steel Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:chestplate_steel
|
|
|
|
-- @img 3d_armor_inv_chestplate_steel.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 800
|
|
|
|
-- @grp physics_speed
|
|
|
|
-- @grp physics_gravity
|
|
|
|
-- @armorgrp fleshy
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 3
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 1
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_steel", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Steel Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_steel.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_torso=1, armor_heal=0, armor_use=800,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.04, physics_gravity=0.04},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Steel Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_steel
|
|
|
|
-- @img 3d_armor_inv_leggings_steel.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 800
|
|
|
|
-- @grp physics_speed -0.03
|
|
|
|
-- @grp physics_gravity 0.03
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 3
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 1
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_steel", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Steel Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_steel.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_legs=1, armor_heal=0, armor_use=800,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.03, physics_gravity=0.03},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Steel Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_steel
|
|
|
|
-- @img 3d_armor_inv_boots_steel.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 0
|
|
|
|
-- @grp armor_use 800
|
|
|
|
-- @grp physics_speed -0.01
|
|
|
|
-- @grp physics_gravity 0.01
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 3
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 1
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_steel", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Steel Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_steel.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_feet=1, armor_heal=0, armor_use=800,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.01, physics_gravity=0.01},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=10},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2015-03-08 16:21:37 +01:00
|
|
|
end
|
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Bronze
|
|
|
|
--
|
|
|
|
-- Requires setting `armor_material_bronze`.
|
|
|
|
--
|
|
|
|
-- @section bronze
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
if armor.materials.bronze then
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Bronze Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:helmet_bronze
|
|
|
|
-- @img 3d_armor_inv_helmet_bronze.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 6
|
|
|
|
-- @grp armor_use 400
|
|
|
|
-- @grp physics_speed -0.01
|
|
|
|
-- @grp physics_gravity 0.01
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 1
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_bronze", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Bronze Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_bronze.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_head=1, armor_heal=6, armor_use=400,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.01, physics_gravity=0.01},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=10},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Bronze Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:chestplate_bronze
|
|
|
|
-- @img 3d_armor_inv_chestplate_bronze.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 6
|
|
|
|
-- @grp armor_use 400
|
|
|
|
-- @grp physics_speed -0.04
|
|
|
|
-- @grp physics_gravity 0.04
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 1
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_bronze", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Bronze Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_bronze.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_torso=1, armor_heal=6, armor_use=400,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.04, physics_gravity=0.04},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Bronze Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_bronze
|
|
|
|
-- @img 3d_armor_inv_leggings_bronze.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 6
|
|
|
|
-- @grp armor_use 400
|
|
|
|
-- @grp physics_speed -0.03
|
|
|
|
-- @grp physics_gravity 0.03
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 1
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_bronze", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Bronze Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_bronze.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_legs=1, armor_heal=6, armor_use=400,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.03, physics_gravity=0.03},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Bronze Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_bronze
|
|
|
|
-- @img 3d_armor_inv_boots_bronze.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 6
|
|
|
|
-- @grp armor_use 400
|
|
|
|
-- @grp physics_speed -0.01
|
|
|
|
-- @grp physics_gravity 0.01
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 3
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 1
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_bronze", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Bronze Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_bronze.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_feet=1, armor_heal=6, armor_use=400,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.01, physics_gravity=0.01},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=10},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2014-04-14 20:25:10 +02:00
|
|
|
end
|
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Diamond
|
|
|
|
--
|
|
|
|
-- Requires setting `armor_material_diamond`.
|
|
|
|
--
|
|
|
|
-- @section diamond
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
if armor.materials.diamond then
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Diamond Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:_diamond
|
|
|
|
-- @img 3d_armor_inv_helmet_diamond.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 200
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp choppy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_diamond", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Diamond Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_diamond.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_head=1, armor_heal=12, armor_use=200},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Diamond Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:chestplate_diamond
|
|
|
|
-- @img 3d_armor_inv_chestplate_diamond.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 200
|
|
|
|
-- @armorgrp fleshy 20
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp choppy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_diamond", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Diamond Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_diamond.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_torso=1, armor_heal=12, armor_use=200},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=20},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Diamond Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_diamond
|
|
|
|
-- @img 3d_armor_inv_leggings_diamond.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 200
|
|
|
|
-- @armorgrp fleshy 20
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp choppy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_diamond", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Diamond Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_diamond.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_legs=1, armor_heal=12, armor_use=200},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=20},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Diamond Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_diamond
|
|
|
|
-- @img 3d_armor_inv_boots_diamond.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 200
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp choppy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_diamond", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Diamond Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_diamond.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_feet=1, armor_heal=12, armor_use=200},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2014-04-13 18:41:19 +02:00
|
|
|
end
|
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Gold
|
|
|
|
--
|
|
|
|
-- Requires `armor_material_gold`.
|
|
|
|
--
|
|
|
|
-- @section gold
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
if armor.materials.gold then
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Gold Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:helmet_gold
|
|
|
|
-- @img 3d_armor_inv_helmet_gold.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 6
|
|
|
|
-- @grp armor_use 300
|
|
|
|
-- @grp physics_speed -0.02
|
|
|
|
-- @grp physics_gravity 0.02
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 1
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 3
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_gold", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Gold Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_gold.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_head=1, armor_heal=6, armor_use=300,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.02, physics_gravity=0.02},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=10},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Gold Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:chestplate_gold
|
|
|
|
-- @img 3d_armor_inv_chestplate_gold.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 6
|
|
|
|
-- @grp armor_use 300
|
|
|
|
-- @grp physics_speed -0.05
|
|
|
|
-- @grp physics_gravity 0.05
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 1
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 3
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_gold", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Gold Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_gold.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_torso=1, armor_heal=6, armor_use=300,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.05, physics_gravity=0.05},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Gold Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_gold
|
|
|
|
-- @img 3d_armor_inv_leggings_gold.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 6
|
|
|
|
-- @grp armor_use 300
|
|
|
|
-- @grp physics_speed -0.04
|
|
|
|
-- @grp physics_gravity 0.04
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 1
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 3
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_gold", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Gold Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_gold.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_legs=1, armor_heal=6, armor_use=300,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.04, physics_gravity=0.04},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Gold Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_gold
|
|
|
|
-- @img 3d_armor_inv_boots_gold.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 6
|
|
|
|
-- @grp armor_use 300
|
|
|
|
-- @grp physics_speed -0.02
|
|
|
|
-- @grp physics_gravity 0.02
|
|
|
|
-- @armorgrp fleshy 10
|
|
|
|
-- @damagegrp cracky 1
|
|
|
|
-- @damagegrp snappy 2
|
|
|
|
-- @damagegrp choppy 2
|
|
|
|
-- @damagegrp crumbly 3
|
|
|
|
-- @damagegrp level 2
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_gold", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Gold Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_gold.png",
|
2017-04-09 19:37:55 +02:00
|
|
|
groups = {armor_feet=1, armor_heal=6, armor_use=300,
|
2017-04-09 19:49:44 +02:00
|
|
|
physics_speed=-0.02, physics_gravity=0.02},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=10},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2015-04-02 21:59:45 +02:00
|
|
|
end
|
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Mithril
|
|
|
|
--
|
|
|
|
-- Requires `armor_material_mithril`.
|
|
|
|
--
|
|
|
|
-- @section mithril
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
if armor.materials.mithril then
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Mithril Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:helmet_mithril
|
|
|
|
-- @img 3d_armor_inv_helmet_mithril.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 100
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_mithril", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Mithril Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_mithril.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_head=1, armor_heal=12, armor_use=100},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Mithril Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:chestplate_mithril
|
|
|
|
-- @img 3d_armor_inv_chestplate_mithril.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 100
|
|
|
|
-- @armorgrp fleshy 20
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_mithril", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Mithril Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_mithril.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_torso=1, armor_heal=12, armor_use=100},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=20},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Mithril Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_mithril
|
|
|
|
-- @img 3d_armor_inv_leggings_mithril.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 100
|
|
|
|
-- @armorgrp fleshy 20
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_mithril", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Mithril Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_mithril.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_legs=1, armor_heal=12, armor_use=100},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=20},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Mithril Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_mithril
|
|
|
|
-- @img 3d_armor_inv_boots_mithril.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 100
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_mithril", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Mithril Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_mithril.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_feet=1, armor_heal=12, armor_use=100},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2017-03-08 20:36:30 +01:00
|
|
|
end
|
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Crystal
|
|
|
|
--
|
|
|
|
-- Requires `armor_material_crystal`.
|
|
|
|
--
|
|
|
|
-- @section crystal
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
if armor.materials.crystal then
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Crystal Helmet
|
|
|
|
--
|
|
|
|
-- @helmet 3d_armor:helmet_crystal
|
|
|
|
-- @img 3d_armor_inv_helmet_crystal.png
|
|
|
|
-- @grp armor_head 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 100
|
|
|
|
-- @grp armor_fire 1
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:helmet_crystal", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Crystal Helmet"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_helmet_crystal.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_head=1, armor_heal=12, armor_use=100, armor_fire=1},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=15},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Crystal Chestplate
|
|
|
|
--
|
|
|
|
-- @chestplate 3d_armor:_crystal
|
|
|
|
-- @img 3d_armor_inv_chestplate_crystal.png
|
|
|
|
-- @grp armor_torso 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 100
|
|
|
|
-- @grp armor_fire 1
|
|
|
|
-- @armorgrp fleshy 20
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:chestplate_crystal", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Crystal Chestplate"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_chestplate_crystal.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_torso=1, armor_heal=12, armor_use=100, armor_fire=1},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=20},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Crystal Leggings
|
|
|
|
--
|
|
|
|
-- @leggings 3d_armor:leggings_crystal
|
|
|
|
-- @img 3d_armor_inv_leggings_crystal.png
|
|
|
|
-- @grp armor_legs 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 100
|
|
|
|
-- @grp armor_fire 1
|
|
|
|
-- @armorgrp fleshy 20
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:leggings_crystal", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Crystal Leggings"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_leggings_crystal.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_legs=1, armor_heal=12, armor_use=100, armor_fire=1},
|
2017-03-23 01:52:32 +01:00
|
|
|
armor_groups = {fleshy=20},
|
2017-04-05 18:46:09 +02:00
|
|
|
damage_groups = {cracky=2, snappy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2021-07-30 16:12:29 +02:00
|
|
|
--- Crystal Boots
|
|
|
|
--
|
|
|
|
-- @boots 3d_armor:boots_crystal
|
|
|
|
-- @img 3d_armor_inv_boots_crystal.png
|
|
|
|
-- @grp armor_feet 1
|
|
|
|
-- @grp armor_heal 12
|
|
|
|
-- @grp armor_use 100
|
|
|
|
-- @grp physics_speed 1
|
|
|
|
-- @grp physics_jump 0.5
|
|
|
|
-- @grp armor_fire 1
|
|
|
|
-- @armorgrp fleshy 15
|
|
|
|
-- @damagegrp cracky 2
|
|
|
|
-- @damagegrp snappy 1
|
|
|
|
-- @damagegrp level 3
|
2017-03-23 01:52:32 +01:00
|
|
|
armor:register_armor("3d_armor:boots_crystal", {
|
2017-03-31 20:54:12 +02:00
|
|
|
description = S("Crystal Boots"),
|
2017-03-17 21:05:55 +01:00
|
|
|
inventory_image = "3d_armor_inv_boots_crystal.png",
|
2017-04-05 18:46:09 +02:00
|
|
|
groups = {armor_feet=1, armor_heal=12, armor_use=100, physics_speed=1,
|
2017-03-23 01:52:32 +01:00
|
|
|
physics_jump=0.5, armor_fire=1},
|
2017-04-05 18:46:09 +02:00
|
|
|
armor_groups = {fleshy=15},
|
|
|
|
damage_groups = {cracky=2, snappy=1, level=3},
|
2017-03-17 21:05:55 +01:00
|
|
|
})
|
2014-04-08 23:03:01 +02:00
|
|
|
end
|
|
|
|
|
2021-07-30 16:12:29 +02:00
|
|
|
|
|
|
|
--- Crafting
|
|
|
|
--
|
|
|
|
-- @section craft
|
|
|
|
|
|
|
|
--- Craft recipes for helmets, chestplates, leggings, boots, & shields.
|
|
|
|
--
|
|
|
|
-- @craft armor
|
|
|
|
-- @usage
|
|
|
|
-- Key:
|
|
|
|
-- - m: material
|
|
|
|
-- - wood: group:wood
|
|
|
|
-- - cactus: default:cactus
|
|
|
|
-- - steel: default:steel_ingot
|
|
|
|
-- - bronze: default:bronze_ingot
|
|
|
|
-- - diamond: default:diamond
|
|
|
|
-- - gold: default:gold_ingot
|
|
|
|
-- - mithril: moreores:mithril_ingot
|
|
|
|
-- - crystal: ethereal:crystal_ingot
|
|
|
|
--
|
|
|
|
-- helmet: chestplate: leggings:
|
|
|
|
-- ┌───┬───┬───┐ ┌───┬───┬───┐ ┌───┬───┬───┐
|
|
|
|
-- │ m │ m │ m │ │ m │ │ m │ │ m │ m │ m │
|
|
|
|
-- ├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
|
|
|
|
-- │ m │ │ m │ │ m │ m │ m │ │ m │ │ m │
|
|
|
|
-- ├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
|
|
|
|
-- │ │ │ │ │ m │ m │ m │ │ m │ │ m │
|
|
|
|
-- └───┴───┴───┘ └───┴───┴───┘ └───┴───┴───┘
|
|
|
|
--
|
|
|
|
-- boots: shield:
|
|
|
|
-- ┌───┬───┬───┐ ┌───┬───┬───┐
|
|
|
|
-- │ │ │ │ │ m │ m │ m │
|
|
|
|
-- ├───┼───┼───┤ ├───┼───┼───┤
|
|
|
|
-- │ m │ │ m │ │ m │ m │ m │
|
|
|
|
-- ├───┼───┼───┤ ├───┼───┼───┤
|
|
|
|
-- │ m │ │ m │ │ │ m │ │
|
|
|
|
-- └───┴───┴───┘ └───┴───┴───┘
|
|
|
|
|
2017-03-18 18:23:50 +01:00
|
|
|
for k, v in pairs(armor.materials) do
|
2017-03-17 21:05:55 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "3d_armor:helmet_"..k,
|
|
|
|
recipe = {
|
|
|
|
{v, v, v},
|
|
|
|
{v, "", v},
|
|
|
|
{"", "", ""},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "3d_armor:chestplate_"..k,
|
|
|
|
recipe = {
|
|
|
|
{v, "", v},
|
|
|
|
{v, v, v},
|
|
|
|
{v, v, v},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "3d_armor:leggings_"..k,
|
|
|
|
recipe = {
|
|
|
|
{v, v, v},
|
|
|
|
{v, "", v},
|
|
|
|
{v, "", v},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "3d_armor:boots_"..k,
|
|
|
|
recipe = {
|
|
|
|
{v, "", v},
|
|
|
|
{v, "", v},
|
|
|
|
},
|
|
|
|
})
|
2016-01-25 15:47:05 +01:00
|
|
|
end
|