forked from VoxeLibre/VoxeLibre
Fix elytra enchantability and allow Unbreaking to be applied (#4708)
Putting elytra into an enchanting table no longer causes any enchantments to appear in the formspec. Also, it should now be possible to use an anvil to add unbreaking. Reviewed-on: VoxeLibre/VoxeLibre#4708 Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com> Co-authored-by: THE-NERD2 <pdp9729@gmail.com> Co-committed-by: THE-NERD2 <pdp9729@gmail.com>
This commit is contained in:
parent
da44995528
commit
a399182375
|
@ -200,7 +200,7 @@ minetest.register_tool("mcl_armor:elytra", {
|
||||||
_doc_items_longdesc = mcl_armor.longdesc,
|
_doc_items_longdesc = mcl_armor.longdesc,
|
||||||
_doc_items_usagehelp = mcl_armor.usage,
|
_doc_items_usagehelp = mcl_armor.usage,
|
||||||
inventory_image = "mcl_armor_inv_elytra.png",
|
inventory_image = "mcl_armor_inv_elytra.png",
|
||||||
groups = {armor = 1, non_combat_armor = 1, armor_torso = 1, non_combat_torso = 1, mcl_armor_uses = 10, enchantability = 1, elytra = 1},
|
groups = {armor = 1, non_combat_armor = 1, armor_torso = 1, non_combat_torso = 1, mcl_armor_uses = 10, enchantability = -1, elytra = 1},
|
||||||
sounds = {
|
sounds = {
|
||||||
_mcl_armor_equip = "mcl_armor_equip_leather",
|
_mcl_armor_equip = "mcl_armor_equip_leather",
|
||||||
_mcl_armor_unequip = "mcl_armor_unequip_leather",
|
_mcl_armor_unequip = "mcl_armor_unequip_leather",
|
||||||
|
|
|
@ -726,7 +726,9 @@ mcl_enchanting.enchantments.unbreaking = {
|
||||||
max_level = 3,
|
max_level = 3,
|
||||||
primary = {armor_head = true, armor_torso = true, armor_legs = true, armor_feet = true, pickaxe = true, shovel = true, axe = true, hoe = true, sword = true, fishing_rod = true, bow = true},
|
primary = {armor_head = true, armor_torso = true, armor_legs = true, armor_feet = true, pickaxe = true, shovel = true, axe = true, hoe = true, sword = true, fishing_rod = true, bow = true},
|
||||||
secondary = {tool = true},
|
secondary = {tool = true},
|
||||||
disallow = {non_combat_armor = true},
|
-- Commented to allow elytra to be enchanted
|
||||||
|
--disallow = {non_combat_armor = true},
|
||||||
|
disallow = {},
|
||||||
incompatible = {},
|
incompatible = {},
|
||||||
weight = 5,
|
weight = 5,
|
||||||
description = S("Increases item durability."),
|
description = S("Increases item durability."),
|
||||||
|
|
Loading…
Reference in New Issue