2022-09-06 21:06:27 +02:00
|
|
|
|
|
|
|
--- Registered armors.
|
|
|
|
--
|
|
|
|
-- @topic armor
|
|
|
|
|
|
|
|
|
|
|
|
-- support for i18n
|
|
|
|
local S = armor.get_translator
|
|
|
|
|
|
|
|
--- 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
|
|
|
|
armor:register_armor(":3d_armor:helmet_admin", {
|
|
|
|
description = S("Admin Helmet"),
|
|
|
|
inventory_image = "3d_armor_inv_helmet_admin.png",
|
|
|
|
armor_groups = {fleshy=100},
|
|
|
|
groups = {armor_head=1, armor_heal=100, armor_use=0, armor_water=1,
|
|
|
|
not_in_creative_inventory=1},
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
|
|
|
return
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
--- 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
|
|
|
|
armor:register_armor(":3d_armor:chestplate_admin", {
|
|
|
|
description = S("Admin Chestplate"),
|
|
|
|
inventory_image = "3d_armor_inv_chestplate_admin.png",
|
|
|
|
armor_groups = {fleshy=100},
|
|
|
|
groups = {armor_torso=1, armor_heal=100, armor_use=0,
|
|
|
|
not_in_creative_inventory=1},
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
|
|
|
return
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
--- 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
|
|
|
|
armor:register_armor(":3d_armor:leggings_admin", {
|
|
|
|
description = S("Admin Leggings"),
|
|
|
|
inventory_image = "3d_armor_inv_leggings_admin.png",
|
|
|
|
armor_groups = {fleshy=100},
|
|
|
|
groups = {armor_legs=1, armor_heal=100, armor_use=0,
|
|
|
|
not_in_creative_inventory=1},
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
|
|
|
return
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
--- 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
|
|
|
|
armor:register_armor(":3d_armor:boots_admin", {
|
|
|
|
description = S("Admin Boots"),
|
|
|
|
inventory_image = "3d_armor_inv_boots_admin.png",
|
|
|
|
armor_groups = {fleshy=100},
|
|
|
|
groups = {armor_feet=1, armor_heal=100, armor_use=0,
|
|
|
|
not_in_creative_inventory=1},
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
|
|
|
return
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_alias("adminboots", "3d_armor:boots_admin")
|
|
|
|
minetest.register_alias("adminhelmet", "3d_armor:helmet_admin")
|
|
|
|
minetest.register_alias("adminchestplate", "3d_armor:chestplate_admin")
|
2022-12-20 23:44:32 +01:00
|
|
|
minetest.register_alias("adminleggings", "3d_armor:leggings_admin")
|
|
|
|
|
|
|
|
-- print to log after mod was loaded successfully
|
|
|
|
print ("[MOD] 3D Armor - Armor Admin loaded")
|