mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 20:43:43 +01:00
9444afd722
* Begin work on "armors as modpack" refactor letting anyone to enable/disable any armors they want as mods rather than obscure settings * Fix some steel armor mishaps, remove pointless dependency on "default" * Move admin armor into mod * Make wood armor into a mod * More consistent steel description text etc. * remove wood references from 3d_armor api locale * remove admin armor reference from 3d_armor locale template.txt * Remove steel textures from api * Bronze armor as mod * Fix admin, wood armor missing local S translator var Fix wood locale missing template.txt * Fix bronze missing locale * Cactus as mod * Crystal into mod * Diamond into mod * Mithril and Gold as mods * Register armor fix * Nether as mod * Clean-up, add optional depends for mod armors, remove armor.lua from 3d_armor * Fix badly named mod.conf for admin, gold, nether armors Fix attempt to register crafting recipe even though the armor is disabled via setting * Fix steel and wood having bad globals for crafting section, turned them to locals * Fix brazilian translation getting deleted Fix cactus armor locales being incorrectly named
94 lines
2.5 KiB
Lua
94 lines
2.5 KiB
Lua
|
|
--- 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")
|
|
minetest.register_alias("adminleggings", "3d_armor:leggings_admin") |