Add simple leather armor
65
init.lua
@ -1,10 +1,12 @@
|
|||||||
armor.config.material_reinforcedleather = true
|
armor.config.material_reinforcedleather = true
|
||||||
armor.config.material_hardenedleather = true
|
armor.config.material_hardenedleather = true
|
||||||
armor.config.material_blackmithril = true
|
armor.config.material_blackmithril = true
|
||||||
|
armor.config.material_leather = true
|
||||||
|
|
||||||
armor.materials.reinforcedleather = "3d_armor:reinforcedleather"
|
armor.materials.reinforcedleather = "3d_armor:reinforcedleather"
|
||||||
armor.materials.hardenedleather = "3d_armor:hardenedleather"
|
armor.materials.hardenedleather = "3d_armor:hardenedleather"
|
||||||
armor.materials.blackmithril = "3d_armor:blackmithril_ingot"
|
armor.materials.blackmithril = "3d_armor:blackmithril_ingot"
|
||||||
|
armor.materials.leather = "mobs:leather"
|
||||||
|
|
||||||
local S = minetest.get_translator("3d_armor_classes")
|
local S = minetest.get_translator("3d_armor_classes")
|
||||||
|
|
||||||
@ -218,6 +220,69 @@ if armor.materials.hardenedleather then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Simple leather
|
||||||
|
if armor.materials.leather then
|
||||||
|
-- Register helmets :
|
||||||
|
armor:register_armor(":3d_armor:helmet_leather", {
|
||||||
|
description = S("Leather Helmet (@1)", S("Hunter")),
|
||||||
|
inventory_image = "3d_armor_inv_helmet_leather.png",
|
||||||
|
groups = {armor_head = 1, armor_use = 2700, physics_speed=0.1, physics_gravity=-0.01},
|
||||||
|
armor_groups = {fleshy=4},
|
||||||
|
damage_groups = {cracky=3, snappy=3, choppy=3, crumbly=2, level=1},
|
||||||
|
on_equip = function(player, index, stack)
|
||||||
|
change_stamina_max(player, 1)
|
||||||
|
end,
|
||||||
|
on_unequip = function(player, index, stack)
|
||||||
|
change_stamina_max(player, -1)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Register chestplates :
|
||||||
|
armor:register_armor(":3d_armor:chestplate_leather", {
|
||||||
|
description = S("Leather Chestplate (@1)", S("Hunter")),
|
||||||
|
inventory_image = "3d_armor_inv_chestplate_leather.png",
|
||||||
|
groups = {armor_torso = 1, armor_use = 2700, physics_speed=0.4, physics_gravity=-0.04},
|
||||||
|
armor_groups = {fleshy=7},
|
||||||
|
damage_groups = {cracky=3, snappy=3, choppy=3, crumbly=2, level=1},
|
||||||
|
on_equip = function(player, index, stack)
|
||||||
|
change_stamina_max(player, 2)
|
||||||
|
end,
|
||||||
|
on_unequip = function(player, index, stack)
|
||||||
|
change_stamina_max(player, -2)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Register leggings :
|
||||||
|
armor:register_armor(":3d_armor:leggings_leather", {
|
||||||
|
description = S("Leather Leggings (@1)", S("Hunter")),
|
||||||
|
inventory_image = "3d_armor_inv_leggings_leather.png",
|
||||||
|
groups = {armor_legs = 1, armor_use = 2700, physics_speed=0.3, physics_gravity=-0.03},
|
||||||
|
armor_groups = {fleshy=7},
|
||||||
|
damage_groups = {cracky=3, snappy=3, choppy=3, crumbly=2, level=1},
|
||||||
|
on_equip = function(player, index, stack)
|
||||||
|
change_stamina_max(player, 2)
|
||||||
|
end,
|
||||||
|
on_unequip = function(player, index, stack)
|
||||||
|
change_stamina_max(player, -2)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Register boots :
|
||||||
|
armor:register_armor(":3d_armor:boots_leather", {
|
||||||
|
description = S("Leather Boots (@1)", S("Hunter")),
|
||||||
|
inventory_image = "3d_armor_inv_boots_leather.png",
|
||||||
|
groups = {armor_feet = 1, armor_use = 2700, physics_speed=0.1, physics_gravity=-0.01},
|
||||||
|
armor_groups = {fleshy=4},
|
||||||
|
damage_groups = {cracky=3, snappy=3, choppy=3, crumbly=2, level=1},
|
||||||
|
on_equip = function(player, index, stack)
|
||||||
|
change_stamina_max(player, 1)
|
||||||
|
end,
|
||||||
|
on_unequip = function(player, index, stack)
|
||||||
|
change_stamina_max(player, -1)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- Black Mithril
|
-- Black Mithril
|
||||||
minetest.register_craftitem(":3d_armor:blackmithril_ingot", {
|
minetest.register_craftitem(":3d_armor:blackmithril_ingot", {
|
||||||
description = S("Black Mithril Ingot"),
|
description = S("Black Mithril Ingot"),
|
||||||
|
@ -12,6 +12,11 @@ Hardened Leather Helmet (@1)=Casque en cuir durci (@1)
|
|||||||
Hardened Leather Chestplate (@1)=Plastron en cuir durci (@1)
|
Hardened Leather Chestplate (@1)=Plastron en cuir durci (@1)
|
||||||
Hardened Leather Leggings (@1)=Jambières en cuir durci (@1)
|
Hardened Leather Leggings (@1)=Jambières en cuir durci (@1)
|
||||||
Hardened Leather Boots (@1)=Bottes en cuir durci (@1)
|
Hardened Leather Boots (@1)=Bottes en cuir durci (@1)
|
||||||
|
Leather=Cuir
|
||||||
|
Leather Helmet (@1)=Casque en cuir (@1)
|
||||||
|
Leather Chestplate (@1)=Plastron en cuir (@1)
|
||||||
|
Leather Leggings (@1)=Jambières en cuir (@1)
|
||||||
|
Leather Boots (@1)=Bottes en cuir (@1)
|
||||||
Black Mithril Ingot=Lingot de mithril noir
|
Black Mithril Ingot=Lingot de mithril noir
|
||||||
Black Mithril Helmet (@1)=Casque en mithril noir (@1)
|
Black Mithril Helmet (@1)=Casque en mithril noir (@1)
|
||||||
Black Mithril Chestplate (@1)=Plastron en mithril noir (@1)
|
Black Mithril Chestplate (@1)=Plastron en mithril noir (@1)
|
||||||
|
@ -12,6 +12,11 @@ Hardened Leather Helmet (@1)=
|
|||||||
Hardened Leather Chestplate (@1)=
|
Hardened Leather Chestplate (@1)=
|
||||||
Hardened Leather Leggings (@1)=
|
Hardened Leather Leggings (@1)=
|
||||||
Hardened Leather Boots (@1)=
|
Hardened Leather Boots (@1)=
|
||||||
|
Leather=
|
||||||
|
Leather Helmet (@1)=
|
||||||
|
Leather Chestplate (@1)=
|
||||||
|
Leather Leggings (@1)=
|
||||||
|
Leather Boots (@1)=
|
||||||
Black Mithril Ingot=
|
Black Mithril Ingot=
|
||||||
Black Mithril Helmet (@1)=
|
Black Mithril Helmet (@1)=
|
||||||
Black Mithril Chestplate (@1)=
|
Black Mithril Chestplate (@1)=
|
||||||
|
2
mod.conf
@ -1,3 +1,3 @@
|
|||||||
name = 3d_armor_classes
|
name = 3d_armor_classes
|
||||||
depends = 3d_armor,shields
|
depends = 3d_armor,shields,mobs
|
||||||
optional_depends = hudbars,hbsprint
|
optional_depends = hudbars,hbsprint
|
||||||
|
BIN
textures/3d_armor_boots_leather.png
Normal file
After Width: | Height: | Size: 600 B |
BIN
textures/3d_armor_boots_leather_preview.png
Normal file
After Width: | Height: | Size: 480 B |
BIN
textures/3d_armor_chestplate_leather.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
textures/3d_armor_chestplate_leather_preview.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
textures/3d_armor_helmet_leather.png
Normal file
After Width: | Height: | Size: 319 B |
BIN
textures/3d_armor_helmet_leather_preview.png
Normal file
After Width: | Height: | Size: 256 B |
BIN
textures/3d_armor_inv_boots_leather.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
textures/3d_armor_inv_chestplate_leather.png
Normal file
After Width: | Height: | Size: 724 B |
BIN
textures/3d_armor_inv_helmet_leather.png
Normal file
After Width: | Height: | Size: 184 B |
BIN
textures/3d_armor_inv_leggings_leather.png
Normal file
After Width: | Height: | Size: 728 B |
BIN
textures/3d_armor_leggings_leather.png
Normal file
After Width: | Height: | Size: 1008 B |
BIN
textures/3d_armor_leggings_leather_preview.png
Normal file
After Width: | Height: | Size: 949 B |