Skip to content
Snippets Groups Projects
Commit 85b023cf authored by JPG's avatar JPG
Browse files

Drop support for 3d_armor's enchanted stuff

parent 787ba258
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,5 @@ bucket
doors
stairs
xpanes
3d_armor?
fire?
oresplus?
......@@ -273,32 +273,6 @@ function enchanting:register_tools(mod, def)
}
})
end
if mod == "3d_armor" then
local original_armor_groups = original_tool.groups
local armorcaps = {}
armorcaps.not_in_creative_inventory = 1
for armor_group, value in pairs(original_armor_groups) do
if enchant == "strong" then
armorcaps[armor_group] = ceil(value * enchanting.strength)
elseif enchant == "speed" then
armorcaps[armor_group] = value
armorcaps.physics_speed = enchanting.speed
armorcaps.physics_jump = enchanting.jump
end
end
minetest.register_tool(":"..mod..":enchanted_"..tool.."_"..material.."_"..enchant, {
description = "Enchanted "..cap(material).." "..cap(tool)..
self:get_tooltip(enchant),
inventory_image = original_tool.inventory_image,
texture = "3d_armor_"..tool.."_"..material,
wield_image = original_tool.wield_image,
groups = armorcaps,
wear = 0
})
end
end
end
end
......@@ -313,14 +287,3 @@ enchanting:register_tools("default", {
sword = {enchants = "sharp"}
}
})
enchanting:register_tools("3d_armor", {
materials = "steel, bronze, gold, diamond",
tools = {
boots = {enchants = "strong, speed"},
chestplate = {enchants = "strong"},
helmet = {enchants = "strong"},
leggings = {enchants = "strong"}
}
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment