mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-06-28 06:20:33 +02:00
Improve player model hanlding and update to version 0.4.0
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
local use_moreores = minetest.get_modpath("moreores")
|
||||
|
||||
-- Regisiter Shields
|
||||
|
||||
minetest.register_tool("shields:shield_wood", {
|
||||
@ -28,6 +30,14 @@ minetest.register_tool("shields:shield_diamond", {
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
if use_moreores then
|
||||
minetest.register_tool("shields:shield_mithril", {
|
||||
description = "Mithril Shield",
|
||||
inventory_image = "shields_inv_shield_mithril.png",
|
||||
groups = {armor_shield=15, armor_heal=12, armor_use=50},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
local craft_ingreds = {
|
||||
wood = "default:wood",
|
||||
@ -36,6 +46,10 @@ local craft_ingreds = {
|
||||
diamond = "default:diamond",
|
||||
}
|
||||
|
||||
if has_moreores then
|
||||
craft_ingreds.mithril = "moreores:mithril_ingot"
|
||||
end
|
||||
|
||||
for k, v in pairs(craft_ingreds) do
|
||||
minetest.register_craft({
|
||||
output = "shields:shield_"..k,
|
||||
@ -56,6 +70,5 @@ minetest.after(0, function()
|
||||
.."list[detached:player_name_armor;armor_legs;3,2;1,1;]"
|
||||
.."list[detached:player_name_armor;armor_feet;3,3;1,1;]"
|
||||
.."list[detached:player_name_armor;armor_shield;4,1;1,1;]"
|
||||
end)
|
||||
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user