Modern Lucky Block

Modern Lucky Block

37.7k Downloads

Enchantments do not work properly on non-entities [Fabric, 1.21.3]

KristenStuffs opened this issue ยท 0 comments

commented

Relates to issue #5

However, this isn't about the drop.

Enchantments on entities such as Bob work, however if you have a custom drop such as

{
"type": "lucky:item",
"item": "minecraft:diamond_sword",
"components": {
"minecraft:enchantments": {
"levels": {
"minecraft:sharpness": 2
},
"show_in_tooltip": true
}
}
}

It does not properly retain its enchantment(s) despite this being the correct formatting and will drop on the ground as a regular diamond sword w/out any enchantments. All components are seemingly lost as well when you try to include an enchanted item (as I did a test earlier naming the sword AA).

The same ofc also applies to books as mentioned in issue #5