To start the command syntax is disturbing :
/attribute <target> <attribute> modifier add <uuid> <name> <value> (add|multiply|multiply_base)
Which would mean you have to enter a UUID if we just want to add two hearts of life to an entity? this seems very complex to me for an operation that seems so simple.
And then a UUID of what type?
I tried to give myself just 2 more hearts compared to my present value with the command ;
/attribute @p minecraft:generic.max_health modifier add UUID
but the command just stop at the UUID and return Invalide UUID and I tried all the syntax possible: I tried UUID:[I;xxx,xxx,xxx,xxx] , {UUID:[I;xxx,xxx,xxx,xxx]} , {[I;xxx,xxx,xxx,xxx]} , [I;xxx,xxx,xxx,xxx] , [xxx,xxx,xxx,xxx] , {xxx,xxx,xxx,xxx} ...
with my player UUID and then I tried summoning entities and giving items with custom UUIDs and custom attributes but it didn’t work either.
For me it is therefore a very strange behavior, it would be more logical to have a behavior like scoreborad with selectors @
Comments 4
for me it is a bug because the UUID part does not work, the internet sites and even the official wiki say nothing about this part and all the youtube videos I watched, they are qualified Youtubers and much more gifted than me in command did not manage to run the UUID
and if it’s not a bug where I’m supposed to find answers since, the official website, the official wiki and the specialized youtubers doesn’t explain or manage them either to make the command work?
If you need information that is generally known, such as how to use the command, you can look it up on the wiki or ask on a community forum such as the subreddit or the discord server.
You should also note that youtubers as well as most community members are not official instances that receive special treatment, they have just as much access to information as you do.
Please don't use the bug tracker for command assistance