I am trying to make a custom wolf armor enchantment that increases damage, which that part works fine. I've got the wolf dealing extra damage. But what does not working is the calling of the function:
How to recreate: Create a custom enchantment that has wolf armor as the item enchanted, then tell it to run a function as a post-attack: (Might also not work outside of just wolf armor.)
I've also tested and my function with the exact name space works in game I was able to run it using /function I have attached the datapack, ignore the .DSStore files, they are harmless.
Here's my code:
{
"description": {
"text": "Beastmaster",
"color": "light_purple"
},
"exclusive_set": "#minecraft:treasure",
"supported_items": "minecraft:wolf_armor",
"primary_items": "minecraft:book",
"weight": 5,
"max_level": 3,
"min_cost": {
"base": 10,
"per_level_above_first": 5
},
"max_cost": {
"base": 20,
"per_level_above_first": 25
},
"anvil_cost": 6,
"slots": [
"body"
],
"effects": {
"minecraft:attributes": [
{
"id": "attack_damage",
"attribute": "minecraft:attack_damage",
"amount": {
"type": "minecraft:linear",
"base": 2,
"per_level_above_first": 1
},
"operation": "add_value"
}
],
"minecraft:post_attack": [
{
"enchanted": "attacker",
"affected": "victim",
"effect": {
"type": "minecraft:run_function",
"function": "prismatic_enchantments:enchants/beastmaster_particles"
}
}
]
}
}
We do not have enough information to find the cause of this issue.
Please record a video of this happening and attach it to this report.
If you are on Windows, you can use
Windows
+Alt
+R
to open a built-in app for recording game footage.If you are on Mac (Mojave or later), you can use
Shift
+Command
+5
to open a built-in app for recording your screen.In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki