Added Texture outline
All armor and tools will use these textures instead of their originals.
90
armor.lua
@ -56,7 +56,7 @@ if mcl2 then
|
|||||||
description = S(def.description .. " " .. (descriptions[name] or element.description)),
|
description = S(def.description .. " " .. (descriptions[name] or element.description)),
|
||||||
_doc_items_longdesc = mcl_armor2.longdesc,
|
_doc_items_longdesc = mcl_armor2.longdesc,
|
||||||
_doc_items_usagehelp = mcl_armor2.usage,
|
_doc_items_usagehelp = mcl_armor2.usage,
|
||||||
inventory_image = "mcl_armor_inv_" .. itemname .. ".png",
|
inventory_image = "unbreaking_inv_" .. itemname .. ".png",
|
||||||
--_repair_material = def.repair_material or def.craft_material,
|
--_repair_material = def.repair_material or def.craft_material,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
sounds = {
|
sounds = {
|
||||||
@ -69,8 +69,8 @@ if mcl2 then
|
|||||||
_on_unequip = on_unequip_callbacks[name] or def.on_unequip,
|
_on_unequip = on_unequip_callbacks[name] or def.on_unequip,
|
||||||
_on_break = on_break_callbacks[name] or def.on_break,
|
_on_break = on_break_callbacks[name] or def.on_break,
|
||||||
_mcl_armor_element = name,
|
_mcl_armor_element = name,
|
||||||
_mcl_armor_texture = textures[name] or "mcl_armor" .. "_" .. itemname .. ".png",
|
_mcl_armor_texture = textures[name] or "unbreaking" .. "_" .. itemname .. ".png",
|
||||||
_mcl_armor_preview = previews[name] or "mcl_armor" .. "_" .. itemname .. "_preview.png",
|
_mcl_armor_preview = previews[name] or "unbreaking" .. "_" .. itemname .. "_preview.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
if def.craft_material then
|
if def.craft_material then
|
||||||
@ -98,73 +98,77 @@ end
|
|||||||
|
|
||||||
if mt_g then
|
if mt_g then
|
||||||
--local armor = armor:armor or error("[unbreaking] Failed to obtain API from 3d_armor!")
|
--local armor = armor:armor or error("[unbreaking] Failed to obtain API from 3d_armor!")
|
||||||
|
local armor_modpath = minetest.get_modpath("3d_armor") or nil
|
||||||
|
if armor_modpath == nil then
|
||||||
|
error("[unbreaking] I need 3d_armor or MineClone2 to support armor!")
|
||||||
|
end
|
||||||
-- Wood
|
-- Wood
|
||||||
if armor.config.material_wood then
|
if armor.materials.wood then
|
||||||
armor:register_armor(":unbreaking:helmet_wood", {
|
armor:register_armor(":unbreaking:helmet_wood", {
|
||||||
description = S("Unbreakable Wood Helmet"),
|
description = S("Unbreakable Wood Helmet"),
|
||||||
inventory_image = "3d_armor_inv_helmet_wood.png",
|
inventory_image = "unbreaking_inv_helmet_wood.png",
|
||||||
groups = {armor_head=1, armor_heal=0, armor_use=unbreaking_uses, flammable=1},
|
groups = {armor_head=1, armor_heal=0, armor_use=unbreaking_uses, flammable=1},
|
||||||
armor_groups = {fleshy=5},
|
armor_groups = {fleshy=5},
|
||||||
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:chestplate_wood", {
|
armor:register_armor(":unbreaking:chestplate_wood", {
|
||||||
description = S("Unbreakable Wood Chestplate"),
|
description = S("Unbreakable Wood Chestplate"),
|
||||||
inventory_image = "3d_armor_inv_chestplate_wood.png",
|
inventory_image = "unbreaking_inv_chestplate_wood.png",
|
||||||
groups = {armor_torso=1, armor_heal=0, armor_use=unbreaking_uses, flammable=1},
|
groups = {armor_torso=1, armor_heal=0, armor_use=unbreaking_uses, flammable=1},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:leggings_wood", {
|
armor:register_armor(":unbreaking:leggings_wood", {
|
||||||
description = S("Unbreakable Wood Leggings"),
|
description = S("Unbreakable Wood Leggings"),
|
||||||
inventory_image = "3d_armor_inv_leggings_wood.png",
|
inventory_image = "unbreaking_inv_leggings_wood.png",
|
||||||
groups = {armor_legs=1, armor_heal=0, armor_use=unbreaking_uses, flammable=1},
|
groups = {armor_legs=1, armor_heal=0, armor_use=unbreaking_uses, flammable=1},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:boots_wood", {
|
armor:register_armor(":unbreaking:boots_wood", {
|
||||||
description = S("Unbreakable Wood Boots"),
|
description = S("Unbreakable Wood Boots"),
|
||||||
inventory_image = "3d_armor_inv_boots_wood.png",
|
inventory_image = "unbreaking_inv_boots_wood.png",
|
||||||
armor_groups = {fleshy=5},
|
armor_groups = {fleshy=5},
|
||||||
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1},
|
||||||
groups = {armor_feet=1, armor_heal=0, armor_use=unbreaking_uses, flammable=1},
|
groups = {armor_feet=1, armor_heal=0, armor_use=unbreaking_uses, flammable=1},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- Cactus
|
-- Cactus
|
||||||
if armor.config.material_cactus then
|
if armor.materials.cactus then
|
||||||
armor:register_armor(":unbreaking:helmet_cactus", {
|
armor:register_armor(":unbreaking:helmet_cactus", {
|
||||||
description = S("Unbreakable Cactus Helmet"),
|
description = S("Unbreakable Cactus Helmet"),
|
||||||
inventory_image = "3d_armor_inv_helmet_cactus.png",
|
inventory_image = "unbreaking_inv_helmet_cactus.png",
|
||||||
groups = {armor_head=1, armor_heal=0, armor_use=unbreaking_uses},
|
groups = {armor_head=1, armor_heal=0, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=5},
|
armor_groups = {fleshy=5},
|
||||||
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:chestplate_cactus", {
|
armor:register_armor(":unbreaking:chestplate_cactus", {
|
||||||
description = S("Unbreakable Cactus Chestplate"),
|
description = S("Unbreakable Cactus Chestplate"),
|
||||||
inventory_image = "3d_armor_inv_chestplate_cactus.png",
|
inventory_image = "unbreaking_inv_chestplate_cactus.png",
|
||||||
groups = {armor_torso=1, armor_heal=0, armor_use=unbreaking_uses},
|
groups = {armor_torso=1, armor_heal=0, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreakable:leggings_cactus", {
|
armor:register_armor(":unbreakable:leggings_cactus", {
|
||||||
description = S("Unbreakable Cactus Leggings"),
|
description = S("Unbreakable Cactus Leggings"),
|
||||||
inventory_image = "3d_armor_inv_leggings_cactus.png",
|
inventory_image = "unbreaking_inv_leggings_cactus.png",
|
||||||
groups = {armor_legs=1, armor_heal=0, armor_use=unbreaking_uses},
|
groups = {armor_legs=1, armor_heal=0, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreakable:boots_cactus", {
|
armor:register_armor(":unbreakable:boots_cactus", {
|
||||||
description = S("Unbreakable Cactus Boots"),
|
description = S("Unbreakable Cactus Boots"),
|
||||||
inventory_image = "3d_armor_inv_boots_cactus.png",
|
inventory_image = "unbreaking_inv_boots_cactus.png",
|
||||||
groups = {armor_feet=1, armor_heal=0, armor_use=unbreaking_uses},
|
groups = {armor_feet=1, armor_heal=0, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=5},
|
armor_groups = {fleshy=5},
|
||||||
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- Steel
|
-- Steel
|
||||||
if armor.config.material_steel then
|
if armor.materials.steel then
|
||||||
armor:register_armor(":unbreaking:helmet_steel", {
|
armor:register_armor(":unbreaking:helmet_steel", {
|
||||||
description = S("Unbreakable Steel Helmet"),
|
description = S("Unbreakable Steel Helmet"),
|
||||||
inventory_image = "3d_armor_inv_helmet_steel.png",
|
inventory_image = "unbreaking_inv_helmet_steel.png",
|
||||||
groups = {armor_head=1, armor_heal=0, armor_use=unbreaking_uses,
|
groups = {armor_head=1, armor_heal=0, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.01, physics_gravity=0.01},
|
physics_speed=-0.01, physics_gravity=0.01},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
@ -172,7 +176,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:chestplate_steel", {
|
armor:register_armor(":unbreaking:chestplate_steel", {
|
||||||
description = S("Unbreakable Steel Chestplate"),
|
description = S("Unbreakable Steel Chestplate"),
|
||||||
inventory_image = "3d_armor_inv_chestplate_steel.png",
|
inventory_image = "unbreaking_inv_chestplate_steel.png",
|
||||||
groups = {armor_torso=1, armor_heal=0, armor_use=unbreaking_uses,
|
groups = {armor_torso=1, armor_heal=0, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.04, physics_gravity=0.04},
|
physics_speed=-0.04, physics_gravity=0.04},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
@ -180,7 +184,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:leggings_steel", {
|
armor:register_armor(":unbreaking:leggings_steel", {
|
||||||
description = S("Unbreakable Steel Leggings"),
|
description = S("Unbreakable Steel Leggings"),
|
||||||
inventory_image = "3d_armor_inv_leggings_steel.png",
|
inventory_image = "unbreaking_inv_leggings_steel.png",
|
||||||
groups = {armor_legs=1, armor_heal=0, armor_use=unbreaking_uses,
|
groups = {armor_legs=1, armor_heal=0, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.03, physics_gravity=0.03},
|
physics_speed=-0.03, physics_gravity=0.03},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
@ -188,7 +192,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:boots_steel", {
|
armor:register_armor(":unbreaking:boots_steel", {
|
||||||
description = S("Unbreakable Steel Boots"),
|
description = S("Unbreakable Steel Boots"),
|
||||||
inventory_image = "3d_armor_inv_boots_steel.png",
|
inventory_image = "unbreaking_inv_boots_steel.png",
|
||||||
groups = {armor_feet=1, armor_heal=0, armor_use=unbreaking_uses,
|
groups = {armor_feet=1, armor_heal=0, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.01, physics_gravity=0.01},
|
physics_speed=-0.01, physics_gravity=0.01},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
@ -196,10 +200,10 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- Bronze
|
-- Bronze
|
||||||
if armor.config.material_bronze then
|
if armor.materials.bronze then
|
||||||
armor:register_armor(":unbreaking:helmet_bronze", {
|
armor:register_armor(":unbreaking:helmet_bronze", {
|
||||||
description = S("Unbreakable Bronze Helmet"),
|
description = S("Unbreakable Bronze Helmet"),
|
||||||
inventory_image = "3d_armor_inv_helmet_bronze.png",
|
inventory_image = "unbreaking_inv_helmet_bronze.png",
|
||||||
groups = {armor_head=1, armor_heal=6, armor_use=unbreaking_uses,
|
groups = {armor_head=1, armor_heal=6, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.01, physics_gravity=0.01},
|
physics_speed=-0.01, physics_gravity=0.01},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
@ -207,7 +211,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:chestplate_bronze", {
|
armor:register_armor(":unbreaking:chestplate_bronze", {
|
||||||
description = S("Unbreakable Bronze Chestplate"),
|
description = S("Unbreakable Bronze Chestplate"),
|
||||||
inventory_image = "3d_armor_inv_chestplate_bronze.png",
|
inventory_image = "unbreaking_inv_chestplate_bronze.png",
|
||||||
groups = {armor_torso=1, armor_heal=6, armor_use=unbreaking_uses,
|
groups = {armor_torso=1, armor_heal=6, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.04, physics_gravity=0.04},
|
physics_speed=-0.04, physics_gravity=0.04},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
@ -215,7 +219,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:leggings_bronze", {
|
armor:register_armor(":unbreaking:leggings_bronze", {
|
||||||
description = S("Unbreakable Bronze Leggings"),
|
description = S("Unbreakable Bronze Leggings"),
|
||||||
inventory_image = "3d_armor_inv_leggings_bronze.png",
|
inventory_image = "unbreaking_inv_leggings_bronze.png",
|
||||||
groups = {armor_legs=1, armor_heal=6, armor_use=unbreaking_uses,
|
groups = {armor_legs=1, armor_heal=6, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.03, physics_gravity=0.03},
|
physics_speed=-0.03, physics_gravity=0.03},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
@ -223,7 +227,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:boots_bronze", {
|
armor:register_armor(":unbreaking:boots_bronze", {
|
||||||
description = S("Unbreakable Bronze Boots"),
|
description = S("Unbreakable Bronze Boots"),
|
||||||
inventory_image = "3d_armor_inv_boots_bronze.png",
|
inventory_image = "unbreaking_inv_boots_bronze.png",
|
||||||
groups = {armor_feet=1, armor_heal=6, armor_use=unbreaking_uses,
|
groups = {armor_feet=1, armor_heal=6, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.01, physics_gravity=0.01},
|
physics_speed=-0.01, physics_gravity=0.01},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
@ -231,41 +235,41 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- Diamond
|
-- Diamond
|
||||||
if armor.config.material_diamond then
|
if armor.materials.diamond then
|
||||||
armor:register_armor(":unbreaking:helmet_diamond", {
|
armor:register_armor(":unbreaking:helmet_diamond", {
|
||||||
description = S("Unbreakable Diamond Helmet"),
|
description = S("Unbreakable Diamond Helmet"),
|
||||||
inventory_image = "3d_armor_inv_helmet_diamond.png",
|
inventory_image = "unbreaking_inv_helmet_diamond.png",
|
||||||
groups = {armor_head=1, armor_heal=12, armor_use=unbreaking_uses},
|
groups = {armor_head=1, armor_heal=12, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:chestplate_diamond", {
|
armor:register_armor(":unbreaking:chestplate_diamond", {
|
||||||
description = S("Unbreakable Diamond Chestplate"),
|
description = S("Unbreakable Diamond Chestplate"),
|
||||||
inventory_image = "3d_armor_inv_chestplate_diamond.png",
|
inventory_image = "unbreaking_inv_chestplate_diamond.png",
|
||||||
groups = {armor_torso=1, armor_heal=12, armor_use=unbreaking_uses},
|
groups = {armor_torso=1, armor_heal=12, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=20},
|
armor_groups = {fleshy=20},
|
||||||
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:leggings_diamond", {
|
armor:register_armor(":unbreaking:leggings_diamond", {
|
||||||
description = S("Unbreakable Diamond Leggings"),
|
description = S("Unbreakable Diamond Leggings"),
|
||||||
inventory_image = "3d_armor_inv_leggings_diamond.png",
|
inventory_image = "unbreaking_inv_leggings_diamond.png",
|
||||||
groups = {armor_legs=1, armor_heal=12, armor_use=unbreaking_uses},
|
groups = {armor_legs=1, armor_heal=12, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=20},
|
armor_groups = {fleshy=20},
|
||||||
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:boots_diamond", {
|
armor:register_armor(":unbreaking:boots_diamond", {
|
||||||
description = S("Unbreakable Diamond Boots"),
|
description = S("Unbreakable Diamond Boots"),
|
||||||
inventory_image = "3d_armor_inv_boots_diamond.png",
|
inventory_image = "unbreaking_inv_boots_diamond.png",
|
||||||
groups = {armor_feet=1, armor_heal=12, armor_use=unbreaking_uses},
|
groups = {armor_feet=1, armor_heal=12, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, choppy=1, level=3},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- Gold
|
-- Gold
|
||||||
if armor.config.material_gold then
|
if armor.materials.gold then
|
||||||
armor:register_armor(":unbreaking:helmet_gold", {
|
armor:register_armor(":unbreaking:helmet_gold", {
|
||||||
description = S("Unbreakable Gold Helmet"),
|
description = S("Unbreakable Gold Helmet"),
|
||||||
inventory_image = "3d_armor_inv_helmet_gold.png",
|
inventory_image = "unbreaking_inv_helmet_gold.png",
|
||||||
groups = {armor_head=1, armor_heal=6, armor_use=unbreaking_uses,
|
groups = {armor_head=1, armor_heal=6, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.02, physics_gravity=0.02},
|
physics_speed=-0.02, physics_gravity=0.02},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
@ -273,7 +277,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:chestplate_gold", {
|
armor:register_armor(":unbreaking:chestplate_gold", {
|
||||||
description = S("Unbreakable Gold Chestplate"),
|
description = S("Unbreakable Gold Chestplate"),
|
||||||
inventory_image = "3d_armor_inv_chestplate_gold.png",
|
inventory_image = "unbreaking_inv_chestplate_gold.png",
|
||||||
groups = {armor_torso=1, armor_heal=6, armor_use=unbreaking_uses,
|
groups = {armor_torso=1, armor_heal=6, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.05, physics_gravity=0.05},
|
physics_speed=-0.05, physics_gravity=0.05},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
@ -281,7 +285,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:leggings_gold", {
|
armor:register_armor(":unbreaking:leggings_gold", {
|
||||||
description = S("Unbreakable Gold Leggings"),
|
description = S("Unbreakable Gold Leggings"),
|
||||||
inventory_image = "3d_armor_inv_leggings_gold.png",
|
inventory_image = "unbreaking_inv_leggings_gold.png",
|
||||||
groups = {armor_legs=1, armor_heal=6, armor_use=unbreaking_uses,
|
groups = {armor_legs=1, armor_heal=6, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.04, physics_gravity=0.04},
|
physics_speed=-0.04, physics_gravity=0.04},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
@ -289,7 +293,7 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:boots_gold", {
|
armor:register_armor(":unbreaking:boots_gold", {
|
||||||
description = S("Unbreakable Gold Boots"),
|
description = S("Unbreakable Gold Boots"),
|
||||||
inventory_image = "3d_armor_inv_boots_gold.png",
|
inventory_image = "unbreaking_inv_boots_gold.png",
|
||||||
groups = {armor_feet=1, armor_heal=6, armor_use=unbreaking_uses,
|
groups = {armor_feet=1, armor_heal=6, armor_use=unbreaking_uses,
|
||||||
physics_speed=-0.02, physics_gravity=0.02},
|
physics_speed=-0.02, physics_gravity=0.02},
|
||||||
armor_groups = {fleshy=10},
|
armor_groups = {fleshy=10},
|
||||||
@ -297,62 +301,62 @@ if mt_g then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- Mithril
|
-- Mithril
|
||||||
if armor.config.material_mithril then
|
if armor.materials.mithril then
|
||||||
armor:register_armor(":unbreaking:helmet_mithril", {
|
armor:register_armor(":unbreaking:helmet_mithril", {
|
||||||
description = S("Unbreakable Mithril Helmet"),
|
description = S("Unbreakable Mithril Helmet"),
|
||||||
inventory_image = "3d_armor_inv_helmet_mithril.png",
|
inventory_image = "unbreaking_inv_helmet_mithril.png",
|
||||||
groups = {armor_head=1, armor_heal=12, armor_use=unbreaking_uses},
|
groups = {armor_head=1, armor_heal=12, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
damage_groups = {cracky=2, snappy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:chestplate_mithril", {
|
armor:register_armor(":unbreaking:chestplate_mithril", {
|
||||||
description = S("Unbreakable Mithril Chestplate"),
|
description = S("Unbreakable Mithril Chestplate"),
|
||||||
inventory_image = "3d_armor_inv_chestplate_mithril.png",
|
inventory_image = "unbreaking_inv_chestplate_mithril.png",
|
||||||
groups = {armor_torso=1, armor_heal=12, armor_use=unbreaking_uses},
|
groups = {armor_torso=1, armor_heal=12, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=20},
|
armor_groups = {fleshy=20},
|
||||||
damage_groups = {cracky=2, snappy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:leggings_mithril", {
|
armor:register_armor(":unbreaking:leggings_mithril", {
|
||||||
description = S("Unbreakable Mithril Leggings"),
|
description = S("Unbreakable Mithril Leggings"),
|
||||||
inventory_image = "3d_armor_inv_leggings_mithril.png",
|
inventory_image = "unbreaking_inv_leggings_mithril.png",
|
||||||
groups = {armor_legs=1, armor_heal=12, armor_use=unbreaking_uses},
|
groups = {armor_legs=1, armor_heal=12, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=20},
|
armor_groups = {fleshy=20},
|
||||||
damage_groups = {cracky=2, snappy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:boots_mithril", {
|
armor:register_armor(":unbreaking:boots_mithril", {
|
||||||
description = S("Unbreakable Mithril Boots"),
|
description = S("Unbreakable Mithril Boots"),
|
||||||
inventory_image = "3d_armor_inv_boots_mithril.png",
|
inventory_image = "unbreaking_inv_boots_mithril.png",
|
||||||
groups = {armor_feet=1, armor_heal=12, armor_use=unbreaking_uses},
|
groups = {armor_feet=1, armor_heal=12, armor_use=unbreaking_uses},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
damage_groups = {cracky=2, snappy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, level=3},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- Crystal
|
-- Crystal
|
||||||
if armor.config.material_crystal then
|
if armor.materials.crystal then
|
||||||
armor:register_armor(":unbreaking:helmet_crystal", {
|
armor:register_armor(":unbreaking:helmet_crystal", {
|
||||||
description = S("Unbreakable Crystal Helmet"),
|
description = S("Unbreakable Crystal Helmet"),
|
||||||
inventory_image = "3d_armor_inv_helmet_crystal.png",
|
inventory_image = "unbreaking_inv_helmet_crystal.png",
|
||||||
groups = {armor_head=1, armor_heal=12, armor_use=unbreaking_uses, armor_fire=1},
|
groups = {armor_head=1, armor_heal=12, armor_use=unbreaking_uses, armor_fire=1},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
damage_groups = {cracky=2, snappy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:chestplate_crystal", {
|
armor:register_armor(":unbreaking:chestplate_crystal", {
|
||||||
description = S("Unbreakable Crystal Chestplate"),
|
description = S("Unbreakable Crystal Chestplate"),
|
||||||
inventory_image = "3d_armor_inv_chestplate_crystal.png",
|
inventory_image = "unbreaking_inv_chestplate_crystal.png",
|
||||||
groups = {armor_torso=1, armor_heal=12, armor_use=unbreaking_uses, armor_fire=1},
|
groups = {armor_torso=1, armor_heal=12, armor_use=unbreaking_uses, armor_fire=1},
|
||||||
armor_groups = {fleshy=20},
|
armor_groups = {fleshy=20},
|
||||||
damage_groups = {cracky=2, snappy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:leggings_crystal", {
|
armor:register_armor(":unbreaking:leggings_crystal", {
|
||||||
description = S("Unbreakable Crystal Leggings"),
|
description = S("Unbreakable Crystal Leggings"),
|
||||||
inventory_image = "3d_armor_inv_leggings_crystal.png",
|
inventory_image = "unbreaking_inv_leggings_crystal.png",
|
||||||
groups = {armor_legs=1, armor_heal=12, armor_use=unbreaking_uses, armor_fire=1},
|
groups = {armor_legs=1, armor_heal=12, armor_use=unbreaking_uses, armor_fire=1},
|
||||||
armor_groups = {fleshy=20},
|
armor_groups = {fleshy=20},
|
||||||
damage_groups = {cracky=2, snappy=1, level=3},
|
damage_groups = {cracky=2, snappy=1, level=3},
|
||||||
})
|
})
|
||||||
armor:register_armor(":unbreaking:boots_crystal", {
|
armor:register_armor(":unbreaking:boots_crystal", {
|
||||||
description = S("Unbreakable Crystal Boots"),
|
description = S("Unbreakable Crystal Boots"),
|
||||||
inventory_image = "3d_armor_inv_boots_crystal.png",
|
inventory_image = "unbreaking_inv_boots_crystal.png",
|
||||||
groups = {armor_feet=1, armor_heal=12, armor_use=unbreaking_uses, physics_speed=1,
|
groups = {armor_feet=1, armor_heal=12, armor_use=unbreaking_uses, physics_speed=1,
|
||||||
physics_jump=0.5, armor_fire=1},
|
physics_jump=0.5, armor_fire=1},
|
||||||
armor_groups = {fleshy=15},
|
armor_groups = {fleshy=15},
|
||||||
|
BIN
textures/unbreaking_boots_bronze.png
Normal file
After Width: | Height: | Size: 364 B |
BIN
textures/unbreaking_boots_bronze_preview.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
textures/unbreaking_boots_cactus.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
textures/unbreaking_boots_cactus_preview.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
textures/unbreaking_boots_crystal.png
Normal file
After Width: | Height: | Size: 330 B |
BIN
textures/unbreaking_boots_crystal_preview.png
Normal file
After Width: | Height: | Size: 297 B |
BIN
textures/unbreaking_boots_diamond.png
Normal file
After Width: | Height: | Size: 341 B |
BIN
textures/unbreaking_boots_diamond_preview.png
Normal file
After Width: | Height: | Size: 299 B |
BIN
textures/unbreaking_boots_gold.png
Normal file
After Width: | Height: | Size: 326 B |
BIN
textures/unbreaking_boots_gold_preview.png
Normal file
After Width: | Height: | Size: 276 B |
BIN
textures/unbreaking_boots_mithril.png
Normal file
After Width: | Height: | Size: 337 B |
BIN
textures/unbreaking_boots_mithril_preview.png
Normal file
After Width: | Height: | Size: 278 B |
BIN
textures/unbreaking_boots_steel.png
Normal file
After Width: | Height: | Size: 323 B |
BIN
textures/unbreaking_boots_steel_preview.png
Normal file
After Width: | Height: | Size: 265 B |
BIN
textures/unbreaking_boots_wood.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
textures/unbreaking_boots_wood_preview.png
Normal file
After Width: | Height: | Size: 286 B |
BIN
textures/unbreaking_chestplate_bronze.png
Normal file
After Width: | Height: | Size: 536 B |
BIN
textures/unbreaking_chestplate_bronze_preview.png
Normal file
After Width: | Height: | Size: 393 B |
BIN
textures/unbreaking_chestplate_cactus.png
Normal file
After Width: | Height: | Size: 537 B |
BIN
textures/unbreaking_chestplate_cactus_preview.png
Normal file
After Width: | Height: | Size: 411 B |
BIN
textures/unbreaking_chestplate_crystal.png
Normal file
After Width: | Height: | Size: 505 B |
BIN
textures/unbreaking_chestplate_crystal_preview.png
Normal file
After Width: | Height: | Size: 395 B |
BIN
textures/unbreaking_chestplate_diamond.png
Normal file
After Width: | Height: | Size: 541 B |
BIN
textures/unbreaking_chestplate_diamond_preview.png
Normal file
After Width: | Height: | Size: 403 B |
BIN
textures/unbreaking_chestplate_gold.png
Normal file
After Width: | Height: | Size: 525 B |
BIN
textures/unbreaking_chestplate_gold_preview.png
Normal file
After Width: | Height: | Size: 380 B |
BIN
textures/unbreaking_chestplate_mithril.png
Normal file
After Width: | Height: | Size: 521 B |
BIN
textures/unbreaking_chestplate_mithril_preview.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
textures/unbreaking_chestplate_steel.png
Normal file
After Width: | Height: | Size: 522 B |
BIN
textures/unbreaking_chestplate_steel_preview.png
Normal file
After Width: | Height: | Size: 368 B |
BIN
textures/unbreaking_chestplate_wood.png
Normal file
After Width: | Height: | Size: 449 B |
BIN
textures/unbreaking_chestplate_wood_preview.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
textures/unbreaking_helmet_bronze.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/unbreaking_helmet_bronze_preview.png
Normal file
After Width: | Height: | Size: 270 B |
BIN
textures/unbreaking_helmet_cactus.png
Normal file
After Width: | Height: | Size: 477 B |
BIN
textures/unbreaking_helmet_cactus_preview.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
textures/unbreaking_helmet_crystal.png
Normal file
After Width: | Height: | Size: 479 B |
BIN
textures/unbreaking_helmet_crystal_preview.png
Normal file
After Width: | Height: | Size: 284 B |
BIN
textures/unbreaking_helmet_diamond.png
Normal file
After Width: | Height: | Size: 510 B |
BIN
textures/unbreaking_helmet_diamond_preview.png
Normal file
After Width: | Height: | Size: 288 B |
BIN
textures/unbreaking_helmet_gold.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/unbreaking_helmet_gold_preview.png
Normal file
After Width: | Height: | Size: 262 B |
BIN
textures/unbreaking_helmet_mithril.png
Normal file
After Width: | Height: | Size: 424 B |
BIN
textures/unbreaking_helmet_mithril_preview.png
Normal file
After Width: | Height: | Size: 266 B |
BIN
textures/unbreaking_helmet_steel.png
Normal file
After Width: | Height: | Size: 460 B |
BIN
textures/unbreaking_helmet_steel_preview.png
Normal file
After Width: | Height: | Size: 263 B |
BIN
textures/unbreaking_helmet_wood.png
Normal file
After Width: | Height: | Size: 513 B |
BIN
textures/unbreaking_helmet_wood_preview.png
Normal file
After Width: | Height: | Size: 257 B |
BIN
textures/unbreaking_inv_boots_bronze.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
textures/unbreaking_inv_boots_cactus.png
Normal file
After Width: | Height: | Size: 326 B |
BIN
textures/unbreaking_inv_boots_crystal.png
Normal file
After Width: | Height: | Size: 336 B |
BIN
textures/unbreaking_inv_boots_diamond.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
textures/unbreaking_inv_boots_gold.png
Normal file
After Width: | Height: | Size: 317 B |
BIN
textures/unbreaking_inv_boots_mithril.png
Normal file
After Width: | Height: | Size: 314 B |
BIN
textures/unbreaking_inv_boots_steel.png
Normal file
After Width: | Height: | Size: 303 B |
BIN
textures/unbreaking_inv_boots_wood.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
textures/unbreaking_inv_chestplate_bronze.png
Normal file
After Width: | Height: | Size: 415 B |
BIN
textures/unbreaking_inv_chestplate_cactus.png
Normal file
After Width: | Height: | Size: 376 B |
BIN
textures/unbreaking_inv_chestplate_crystal.png
Normal file
After Width: | Height: | Size: 393 B |
BIN
textures/unbreaking_inv_chestplate_diamond.png
Normal file
After Width: | Height: | Size: 400 B |
BIN
textures/unbreaking_inv_chestplate_gold.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
textures/unbreaking_inv_chestplate_mithril.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
textures/unbreaking_inv_chestplate_steel.png
Normal file
After Width: | Height: | Size: 388 B |
BIN
textures/unbreaking_inv_chestplate_wood.png
Normal file
After Width: | Height: | Size: 447 B |
BIN
textures/unbreaking_inv_helmet_bronze.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
textures/unbreaking_inv_helmet_cactus.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
textures/unbreaking_inv_helmet_crystal.png
Normal file
After Width: | Height: | Size: 282 B |
BIN
textures/unbreaking_inv_helmet_diamond.png
Normal file
After Width: | Height: | Size: 290 B |
BIN
textures/unbreaking_inv_helmet_gold.png
Normal file
After Width: | Height: | Size: 281 B |
BIN
textures/unbreaking_inv_helmet_mithril.png
Normal file
After Width: | Height: | Size: 279 B |
BIN
textures/unbreaking_inv_helmet_steel.png
Normal file
After Width: | Height: | Size: 305 B |
BIN
textures/unbreaking_inv_helmet_wood.png
Normal file
After Width: | Height: | Size: 234 B |
BIN
textures/unbreaking_inv_leggings_bronze.png
Normal file
After Width: | Height: | Size: 332 B |
BIN
textures/unbreaking_inv_leggings_cactus.png
Normal file
After Width: | Height: | Size: 332 B |
BIN
textures/unbreaking_inv_leggings_crystal.png
Normal file
After Width: | Height: | Size: 337 B |
BIN
textures/unbreaking_inv_leggings_diamond.png
Normal file
After Width: | Height: | Size: 334 B |
BIN
textures/unbreaking_inv_leggings_gold.png
Normal file
After Width: | Height: | Size: 332 B |
BIN
textures/unbreaking_inv_leggings_mithril.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
textures/unbreaking_inv_leggings_steel.png
Normal file
After Width: | Height: | Size: 312 B |
BIN
textures/unbreaking_inv_leggings_wood.png
Normal file
After Width: | Height: | Size: 348 B |
BIN
textures/unbreaking_leggings_bronze.png
Normal file
After Width: | Height: | Size: 362 B |
BIN
textures/unbreaking_leggings_bronze_preview.png
Normal file
After Width: | Height: | Size: 304 B |
BIN
textures/unbreaking_leggings_cactus.png
Normal file
After Width: | Height: | Size: 354 B |
BIN
textures/unbreaking_leggings_cactus_preview.png
Normal file
After Width: | Height: | Size: 326 B |
BIN
textures/unbreaking_leggings_crystal.png
Normal file
After Width: | Height: | Size: 367 B |
BIN
textures/unbreaking_leggings_crystal_preview.png
Normal file
After Width: | Height: | Size: 305 B |
BIN
textures/unbreaking_leggings_diamond.png
Normal file
After Width: | Height: | Size: 386 B |
BIN
textures/unbreaking_leggings_diamond_preview.png
Normal file
After Width: | Height: | Size: 323 B |
BIN
textures/unbreaking_leggings_gold.png
Normal file
After Width: | Height: | Size: 344 B |
BIN
textures/unbreaking_leggings_gold_preview.png
Normal file
After Width: | Height: | Size: 298 B |
BIN
textures/unbreaking_leggings_mithril.png
Normal file
After Width: | Height: | Size: 347 B |
BIN
textures/unbreaking_leggings_mithril_preview.png
Normal file
After Width: | Height: | Size: 315 B |
BIN
textures/unbreaking_leggings_steel.png
Normal file
After Width: | Height: | Size: 360 B |
BIN
textures/unbreaking_leggings_steel_preview.png
Normal file
After Width: | Height: | Size: 275 B |
BIN
textures/unbreaking_leggings_wood.png
Normal file
After Width: | Height: | Size: 330 B |
BIN
textures/unbreaking_leggings_wood_preview.png
Normal file
After Width: | Height: | Size: 295 B |
@ -1173,7 +1173,7 @@ if unbreaking_hoe then
|
|||||||
_tt_help = hoe_tt.."\n"..S("Uses: Infinite"),
|
_tt_help = hoe_tt.."\n"..S("Uses: Infinite"),
|
||||||
_doc_items_longdesc = hoe_longdesc,
|
_doc_items_longdesc = hoe_longdesc,
|
||||||
_doc_items_usagehelp = hoe_usagehelp,
|
_doc_items_usagehelp = hoe_usagehelp,
|
||||||
inventory_image = "unbreaking_tool_goldhoe.png",
|
inventory_image = "farming_tool_goldhoe.png",
|
||||||
wield_scale = wield_scale,
|
wield_scale = wield_scale,
|
||||||
on_place = hoe_on_place_function2(0),
|
on_place = hoe_on_place_function2(0),
|
||||||
groups = { tool=1, hoe=1, enchantability=22 },
|
groups = { tool=1, hoe=1, enchantability=22 },
|
||||||
@ -1199,7 +1199,7 @@ if unbreaking_hoe then
|
|||||||
_tt_help = hoe_tt.."\n"..S("Uses: Infinite"),
|
_tt_help = hoe_tt.."\n"..S("Uses: Infinite"),
|
||||||
_doc_items_longdesc = hoe_longdesc,
|
_doc_items_longdesc = hoe_longdesc,
|
||||||
_doc_items_usagehelp = hoe_usagehelp,
|
_doc_items_usagehelp = hoe_usagehelp,
|
||||||
inventory_image = "unbreaking_tool_diamondhoe.png",
|
inventory_image = "farming_tool_diamondhoe.png",
|
||||||
wield_scale = wield_scale,
|
wield_scale = wield_scale,
|
||||||
on_place = hoe_on_place_function2(0),
|
on_place = hoe_on_place_function2(0),
|
||||||
groups = { tool=1, hoe=1, enchantability=10 },
|
groups = { tool=1, hoe=1, enchantability=10 },
|
||||||
|