how to remove attribute of player in Server
I want to delete some attribute of my player but i don't know its UUID 😦 , is there anyway i can delete all modifer once 😦 Thank you
21 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by keir_1105#0
if you want ur uuid just put your name in namemc
No, i mean the uuid of the attribute in game, not my character UUID @@
ah i see
getAttribute(Attribute) would be the right way
itll return an instance of that specific attribute including all modifiers of said attribute that are applied to your player
the uuid ones are deprecated
then use AttributeInstance#getModifiers() to get a list of all currently applying modifiers of that type and you could either forloop over them and print their values to console or ur chat so you can find a specific one and then remove it
then you just hope whatever is applying it is consistent so you can remove it all the time
is there anyway i can remove it in the game
also really thanks for your answer :3
you do exactly what i said?
like make a command? or some other form of trigger to autoremove it from urself or others
what are you on about
there's a command to do this
why are you telling them to code it
im assuming thats what they wanted?
Minecraft Wiki
Attribute
Attributes are a system of buffs/debuffs that are properties on mobs and players. Attributes also have modifiers that adjust the strength of their effect.
sorry for not say clearly 😢
im going off the fact they have the dev role so im assuming they want to do it through code for their own project or smth
ah
woh, where's my dev role come from
oh
😂
how can i remove it
hehe really thank you guys ❤️
then ye use the default minecraft command for it then
An error has occurred!
This was most likely an error on our end. Please report this at the github
ouch
um... what happend