1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-28 15:30:33 +02:00

[3d_armors] Update

This commit is contained in:
LeMagnesium 2015-10-30 11:42:04 +01:00
parent d7807ab993
commit baf6efa366
2 changed files with 17 additions and 1 deletions

View File

@ -8,6 +8,9 @@ minetest.register_tool("3d_armor:helmet_admin", {
inventory_image = "3d_armor_inv_helmet_admin.png",
groups = {armor_head=1000, armor_heal=1000, armor_use=0},
wear = 0,
on_drop = function(itemstack, dropper, pos)
return
end,
})
minetest.register_tool("3d_armor:chestplate_admin", {
@ -15,6 +18,9 @@ minetest.register_tool("3d_armor:chestplate_admin", {
inventory_image = "3d_armor_inv_chestplate_admin.png",
groups = {armor_torso=1000, armor_heal=1000, armor_use=0},
wear = 0,
on_drop = function(itemstack, dropper, pos)
return
end,
})
minetest.register_tool("3d_armor:leggings_admin", {
@ -22,6 +28,9 @@ minetest.register_tool("3d_armor:leggings_admin", {
inventory_image = "3d_armor_inv_leggings_admin.png",
groups = {armor_legs=1000, armor_heal=1000, armor_use=0},
wear = 0,
on_drop = function(itemstack, dropper, pos)
return
end,
})
minetest.register_tool("3d_armor:boots_admin", {
@ -29,5 +38,8 @@ minetest.register_tool("3d_armor:boots_admin", {
inventory_image = "3d_armor_inv_boots_admin.png",
groups = {armor_feet=1000, armor_heal=1000, armor_use=0},
wear = 0,
on_drop = function(itemstack, dropper, pos)
return
end,
})

View File

@ -21,12 +21,12 @@ ARMOR_MATERIALS = {
bronze = "default:bronze_ingot",
diamond = "default:diamond",
gold = "default:gold_ingot",
mithril = "moreores:mithril_ingot",
crystal = "ethereal:crystal_ingot",
-- Hunter armors (A déc-ommenter quand activation de l'armure au total)
hardenedleather = "3d_armor:hardenedleather",
reinforcedleather = "3d_armor:reinforcedleather",
-- Warrior armors
mithril = "moreores:mithril_ingot",
blackmithril = "3d_armor:blackmithril_ingot"
-- Wizard armors
--armor = "xxx",
@ -100,6 +100,10 @@ if minetest.get_modpath("inventory_plus") then
.."label[5,1.5;Heal: armor_heal]"
.."label[5,2;Fire: armor_fire]"
.."list[current_player;main;0,4.5;8,4;]"
if minetest.get_modpath("crafting") then
inventory_plus.get_formspec = function(player, page)
end
end
elseif minetest.get_modpath("unified_inventory") then
inv_mod = "unified_inventory"
unified_inventory.register_button("armor", {