mojira.dev
MC-224167

Damage related predicates are completely broken

I've tried a lot of times before and none of the damage_source_propertirs predicates have worked. I tried this:
{
"condition": "minecraft:damage_source_properties",
"predicate": {
"direct_entity": {
"equipment": {
"mainhand": {
"nbt": "{sword_test:1b}"
}
}
}
}
}

Which should detect mobs who were hit by a custom sword. The output is nothing and the log says nothing. If I try this command: "execute as @e[predicate=namespace:custom_sword] run say hi" it doesn't say hi no matter what. I tried multiple damage sources and nbt checks and none of them seemed to worked. I know the syntax is right because normal nbt checks for in predicates look like this and work completely fine. In another note I'd like to say I would really appreciate if you will fix this bug because it opens so many different options up. Thank you for your work.

Linked issues

Comments 2

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Thank you for your report!
We're tracking this issue in MC-178111, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

asdf asdf

(Unassigned)

Unconfirmed

(Unassigned)

1.16.5

Retrieved