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
Admincraft Meta
Admincraft Meta7mo ago
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
Lunaiskey
Lunaiskey7mo ago
if you want ur uuid just put your name in namemc
Tùy Tâm Sở Dục 🎧
No, i mean the uuid of the attribute in game, not my character UUID @@
Lunaiskey
Lunaiskey7mo ago
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
Tùy Tâm Sở Dục 🎧
is there anyway i can remove it in the game also really thanks for your answer :3
Lunaiskey
Lunaiskey7mo ago
you do exactly what i said? like make a command? or some other form of trigger to autoremove it from urself or others
Ibotmealot
Ibotmealot7mo ago
what are you on about there's a command to do this why are you telling them to code it
Lunaiskey
Lunaiskey7mo ago
im assuming thats what they wanted?
Ibotmealot
Ibotmealot7mo ago
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.
Tùy Tâm Sở Dục 🎧
sorry for not say clearly 😢
Lunaiskey
Lunaiskey7mo ago
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
Ibotmealot
Ibotmealot7mo ago
ah
Tùy Tâm Sở Dục 🎧
woh, where's my dev role come from oh
Ibotmealot
Ibotmealot7mo ago
😂
Tùy Tâm Sở Dục 🎧
how can i remove it
Tùy Tâm Sở Dục 🎧
hehe really thank you guys ❤️
Lunaiskey
Lunaiskey7mo ago
then ye use the default minecraft command for it then
Admincraft Meta
Admincraft Meta7mo ago
An error has occurred!
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/ubuntu/admincraft/admincraft-meta/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/ubuntu/admincraft/admincraft-meta/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/ubuntu/admincraft/admincraft-meta/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/home/ubuntu/admincraft/admincraft-meta/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/home/ubuntu/admincraft/admincraft-meta/commands/close.js:90:17)
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/ubuntu/admincraft/admincraft-meta/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/ubuntu/admincraft/admincraft-meta/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/ubuntu/admincraft/admincraft-meta/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/home/ubuntu/admincraft/admincraft-meta/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/home/ubuntu/admincraft/admincraft-meta/commands/close.js:90:17)
This was most likely an error on our end. Please report this at the github
itaquito
itaquito7mo ago
ouch
Tùy Tâm Sở Dục 🎧
um... what happend

Did you find this page helpful?