mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 15:30:30 +01:00
[3d_armors] Update
This commit is contained in:
parent
d7807ab993
commit
baf6efa366
|
@ -8,6 +8,9 @@ minetest.register_tool("3d_armor:helmet_admin", {
|
||||||
inventory_image = "3d_armor_inv_helmet_admin.png",
|
inventory_image = "3d_armor_inv_helmet_admin.png",
|
||||||
groups = {armor_head=1000, armor_heal=1000, armor_use=0},
|
groups = {armor_head=1000, armor_heal=1000, armor_use=0},
|
||||||
wear = 0,
|
wear = 0,
|
||||||
|
on_drop = function(itemstack, dropper, pos)
|
||||||
|
return
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:chestplate_admin", {
|
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",
|
inventory_image = "3d_armor_inv_chestplate_admin.png",
|
||||||
groups = {armor_torso=1000, armor_heal=1000, armor_use=0},
|
groups = {armor_torso=1000, armor_heal=1000, armor_use=0},
|
||||||
wear = 0,
|
wear = 0,
|
||||||
|
on_drop = function(itemstack, dropper, pos)
|
||||||
|
return
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:leggings_admin", {
|
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",
|
inventory_image = "3d_armor_inv_leggings_admin.png",
|
||||||
groups = {armor_legs=1000, armor_heal=1000, armor_use=0},
|
groups = {armor_legs=1000, armor_heal=1000, armor_use=0},
|
||||||
wear = 0,
|
wear = 0,
|
||||||
|
on_drop = function(itemstack, dropper, pos)
|
||||||
|
return
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:boots_admin", {
|
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",
|
inventory_image = "3d_armor_inv_boots_admin.png",
|
||||||
groups = {armor_feet=1000, armor_heal=1000, armor_use=0},
|
groups = {armor_feet=1000, armor_heal=1000, armor_use=0},
|
||||||
wear = 0,
|
wear = 0,
|
||||||
|
on_drop = function(itemstack, dropper, pos)
|
||||||
|
return
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,12 @@ ARMOR_MATERIALS = {
|
||||||
bronze = "default:bronze_ingot",
|
bronze = "default:bronze_ingot",
|
||||||
diamond = "default:diamond",
|
diamond = "default:diamond",
|
||||||
gold = "default:gold_ingot",
|
gold = "default:gold_ingot",
|
||||||
|
mithril = "moreores:mithril_ingot",
|
||||||
crystal = "ethereal:crystal_ingot",
|
crystal = "ethereal:crystal_ingot",
|
||||||
-- Hunter armors (A déc-ommenter quand activation de l'armure au total)
|
-- Hunter armors (A déc-ommenter quand activation de l'armure au total)
|
||||||
hardenedleather = "3d_armor:hardenedleather",
|
hardenedleather = "3d_armor:hardenedleather",
|
||||||
reinforcedleather = "3d_armor:reinforcedleather",
|
reinforcedleather = "3d_armor:reinforcedleather",
|
||||||
-- Warrior armors
|
-- Warrior armors
|
||||||
mithril = "moreores:mithril_ingot",
|
|
||||||
blackmithril = "3d_armor:blackmithril_ingot"
|
blackmithril = "3d_armor:blackmithril_ingot"
|
||||||
-- Wizard armors
|
-- Wizard armors
|
||||||
--armor = "xxx",
|
--armor = "xxx",
|
||||||
|
@ -100,6 +100,10 @@ if minetest.get_modpath("inventory_plus") then
|
||||||
.."label[5,1.5;Heal: armor_heal]"
|
.."label[5,1.5;Heal: armor_heal]"
|
||||||
.."label[5,2;Fire: armor_fire]"
|
.."label[5,2;Fire: armor_fire]"
|
||||||
.."list[current_player;main;0,4.5;8,4;]"
|
.."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
|
elseif minetest.get_modpath("unified_inventory") then
|
||||||
inv_mod = "unified_inventory"
|
inv_mod = "unified_inventory"
|
||||||
unified_inventory.register_button("armor", {
|
unified_inventory.register_button("armor", {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user