1.21.5 data pack wont work

so ive done this command /execute if entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{"minecraft:silk_touch": 1}}}}] and it came ou as test failed
5 Replies
MUtils-Bot
MUtils-Bot3mo ago
I may found something useful for your question in my memory! Click on the green button below to display the help article to Veinminer Enchantment Addon. -# Automated support bot - If this helped you, response with a thanks or similar to let us know
soap_king1
soap_king1OP3mo ago
so you have to have the veinmine mod aswell with the data pack?
Miraculixx
Miraculixx3mo ago
No, for the enchantment you need the base datapack and the enchantment addon. The bot is just preconfigured to answer for mods as those are the most used ones. Did you run the command above as the player holding the enchanted item?
soap_king1
soap_king1OP3mo ago
but when ever i use the normal one it dosent work until i load the enchantment one and disable it
Miraculixx
Miraculixx3mo ago
veinminer enchantment can not work on its own, it would just add the enchantment without any function. If the base datapack doesnt work, please check if minecraft reports any issues or share your game logs

Did you find this page helpful?