#(SarTeX) Can I ignore the attributes of an item if the player doesn't have any permission?
22 messages · Page 1 of 1 (latest)
(SarTeX) Can I ignore the attributes of an item if the player doesn't have any permission?
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
you can adjust events that those attributes change, and determine the output as it would happen without the attributes if they do not have permission
otherwise no not really
might be fairly complicated to do the above
Consider manually handling these
E.g. use a damage event to handle a damage attribute, where you can easily have checks
Yeah but I have attributes like for example gives you hp if you hold in your hand and I want to cancel that If they dont have permission
Vanilla attributes are simply not really built for this - they're designed to just always apply.
As behr said you can technically manually undo the attributes when they're applied, or remove the item's attributes and add them later, but stuff like that would most likely end up being messier then just doing it yourself
All you need to do in that case is have an event for a player putting that item in their hand, give them extra hearts
And the same event for them removing that item from their hand, remove the extra hearts
Then you can just easily add a permission check, instead of trying to hack past Mojang's system
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@silk elm