How to use attributes in Minecraft 1.16-1.19 (special items, infinite health/armor)
HTML-код
- Опубликовано: 9 фев 2025
- How to use attributes and the /attribute command in Minecraft 1.19! Attributes can be used on entities or items, buffing the armor, health, movement speed, attack damage, flying speed, and more! You can use attributes to make all sorts of special items in Minecraft 1.19 (latest version).
Here's the Attribute commands and NBTs used in the video:
Health Attribute Increase
/attribute @p minecraft:generic.max_health base set 2000
Attribute Armor Increase
/attribute @p minecraft:generic.armor base set 20
Speed/Damage Diamond Sword:
/give @p diamond_sword{Unbreakable:1,AttributeModifiers:[{Slot:"mainhand", AttributeName:"generic.attack_damage", Amount:100000.0, UUID:[I; -1, -1, -1, -1]},{Slot:"mainhand", AttributeName:"generic.movement_speed", Amount:1, UUID:[I; -1, -1, -1, -1]}]} 1
Buff Shield:
/give Risate shield{Unbreakable:1,AttributeModifiers:[{Slot:"offhand", AttributeName:"generic.armor", Amount:30.0, UUID:[I; -1, -1, -1, 1]}]} 1
1.8/Speed PvP Helmet
/give Risate diamond_helmet{Unbreakable:1,AttributeModifiers:[{Slot:"head", AttributeName:"generic.attack_speed", Name:"generic.attack_speed", Amount:1000.0, UUID:[I; -1, -1, -1, 1]}]} 1
Every time I search bedrock edition I GET JAVA EDITION RESULTS
Amazing. I always appreciate tutorials that are like this! Thanks!
Get this man in the algorithm.
Thanks dude, i was searching for "This" because i want make custom armor like, BEDROCK ARMOR (big protection) or SAND ARMOR (big speed) and that's for a server that i am playing, very helpful.
Cool
You can make like hypixel custom leather armor with better stats
bro i whant to jone
Another subscriber, wow. I never subscribe to this tutorial channels or that kind of content but, holy. This helped me so much. Thank you
No problem! thanks so much for the sub my friend
dude omg i have been searching this for alot of weeks and i finnaly found it actually ur the best
Lol good to hear! Thanks for the kind words my friend
Lol it only took me 2 minutes
4:43 daanng the CPS right there is crazy fast
another great video ima use this alot
After giving yourself an item such as this, it can be easily edited in NBT Explorer. It's also possible to copy and paste the attributes to armor or any other item in the game.
But how to copy in discription
@@jurasbraziunas910 they mean that if you copy the attribute modifier tag and add it to another items tags, it will have the same attributes. (in nbt editor)
Broooo
THIS IS SO HELPFUL
Ive been trying to get a helmet that'd give you extra hp but all the other tutorials didnt show me how it showed me how to type the attributes tho
but this gave me a helmet that doesnt require a command block on repeat
Dude this video is amazing, so underrated! Thanks dude 🙏🏻
Huh... I actually didn't know that-
That could make future plugins very fun to code 🤔
Yeah! It has all sorts of potential. A very useful command and NBT.
@Matthew Chen Check the description of the video, where an item has to attributes at once. You basically just separate the two attribute tags in caped brackets, excluding the Attribute Modifiers. You should be able to figure it out on your own if you look at the complete double attribute command in the description, but if not tell me what items you want and I'll do the work for you.
@@Risate help, when I wear multiple of armor with custom armor attribute, it will only use the last armor piece I wore's attributes
like if I wear a netherite chestplate with armor "500" THEN wear a netherite helmet with armor "1" I'll get armor 1 for some reason..
OMG I needed talismans for my box server and I thought all hope was lost until I saw this. Thanks so much!!
happy to help! :) thanks for watching
this guy is helpful asf bro i was tryna find a tutorial for half and hour and this guy comes in clutch.
boi i spent 5 days searching
Thank you so very much for an amazing in depth tutorial. Keep making great content my dude!
Thanks for the tutorial i cant find any others tutorial for attributes item for 1.16.4
No problem! I'm glad you found my video was helpful.
@@Risate there a way to do generic.max_health on armor so I can make an armor piece that boosts HP?
@@Laughing_Dragon Yes, there is! Here's a command for an iron chestplate that increases health with the Amount 20 (so you get an extra row of hearts)
/give @p minecraft:iron_chestplate{Unbreakable:1,AttributeModifiers:[{Slot:"chest", AttributeName:"generic.max_health", Name:"generic.max_health", Amount:20.0, UUID:[I; -1, -1, -1, 1]}]} 1
Oh my god, You are a legend. I"VE BEEN LOOKINN FOR GENERIC CMDS THANK YOU
this is
the best video for this command by far
tysm dude! this is awesome. You got my sub ;)
This Video is absolutly Amazing!
You just got a sub!
I was facing a problem with uuids BUT NOW
THANK YOU
thanks bro! Im glad it worked for you
Thanks! That was helping me making like the most op sword possible.
same
im personally remaking mario kart wii and i need all damage to insta-kill
maybe name it sword of truth xD
Damn this video is amazing! Take my sub, this'll help so much in my minigames!
thank you VERY much, i was breaking my brain with the uuid thing lol
this was the best tutorial so far
This video was extremely helpful. Thank you very much.
i was making a mmorpg server it really help me out alot. Thank.
No problem! I'm glad my video was useful for you.
nice video you helped me a lot but i have a question, i can use that attribute on bow and crossbow? like the bow that when you shoot deal 100 damage to the target
Thank you!
Nice, but could you show us how to use the /attribute modifier thing? no idea how it works
Tanks
Thank you for this!
This helped me a lot thank you
Lot of thanks you Brio ILY❤️
hai Risate, i wanna ask about the attributes and some nbt commands, when i download some of a mod weapons, the weapons give me a status debuff, i wanna edit the weapons without giving me any debuff WITH PERMANENT modifier/attributes, so is there any tips?i look over like json files nbt and i just confused 🤔, thank you
Great vid it helped a ton thanks
i created my own god turtle shell thx to the vid
I know nobody will probably answers but where did you learn how to do commands like {AttrbuteModifiers:[{AttributeName:""}]} etc.?
Thank you that is helpful
what about the attribute modifier?
You are just changing the base value, not adding to it, i was looking at the /attribute command and saw the "modifier"
/attribute @p insert_attribute_here modifier
What does this do?
Such a help full vidoe thank you so much
how can i mix this with id:protection,lvl:10
/give @p diamond_helmet{Enchantments:[{id:protection,lvl:10}],AttributeModifiers:[{AttributeName:"generic.armor",Amount:10,Operation:0,Slot:"head",UUID:[I;3824,3483,4239,5674]}]}
for anyone that is having trouble make sure that all capitalisation matches the video
I recommend this video for attributes
Thanks now I can put water breathing on my armor for my very op kit
I used /attribute to put bedrock pvp in java 1.17.
ahhhhhh i remember the day 1.16 came out
Does those work on Java only or bedrock only or both
This is exactly what I was looking for! Thank you!
No problem! I'm glad it's working well for you.
Right before I give u like and a sub does this work on ps4 or do u have a different vid for ps4
I'm really sorry but there is no /attribute command in the ps4 version of Minecraft. Java Edition has a lot of stuff that Bedrock doesn't have. It's sad, but it's just the way things are right now.
@@Risate oh
how do you make 1 off thes with fire resistance?? i subd btw
what command for lether helmet to add 4O hp?
For just the +40hp
/give @p minecraft:leather_helmet{AttributeModifiers:[{AttributeName:"generic.max_health",Amount:40,Slot:"head",UUID:[I; 3284, 5943, 8439, 4567]}]}
If you also want the protection of a normal leather cap:
/give @p minecraft:leather_helmet{AttributeModifiers:[{AttributeName:"generic.max_health",Amount:40,Slot:"head",UUID:[I; 3284, 5943, 8439, 4567]},{AttributeName:"generic.armor",Slot:"head",Amount:1,UUID:[I; 2372, 3450, 4589, 3946]}]}
i need help pls what are all the slot like the chesplate where do i put slot
All the slots are: head, chest, legs, feet, mainhand, offhand
thanks alot! is it possible to add names to the items like for example {display:Name:"name","bold",true"} and lore? if so how?
its possible like this /give @p diamond_sword{display:Name:"name","example-name",true"},{Unbreakable:1,AttributeModifiers:[{Slot:"mainhand", AttributeName:"generic.attack_damage", Amount:64, UUID:[I; -1, -1, -1, -1]},{Slot:"mainhand", AttributeName:"generic.attack_speed", Amount:7, UUID:[I; -1, -1, -1, -1]}]} 1
@@solsaddict THANKS!
thank you very much!
no problem bro!
i have a problem, lets say i want to create a set of items, i change their attributes, but instead of adding, they are changing, for an example, if i set the generic.movement_speed to 10 on the helmet and 5 on the chestplate, only 1 of them will take effect, how do i change it so they can add on?
I am delaing w/ the excact same issue. have you found anything on this yet?
@@meijuta I changed the operation number to 1 so instead of adding attributes in numbers it boosts them in precents (operation:1 means precent )
@@ricrease2080 I also found tho solution of giving each item their own UUID. That way they dont overide each other.
Basically what the other guy said, the effects of an item are all tied to a UUID. If two items have the same UUID, only the first effect to be applied will work, it overrides any other items with the same uuid. To avoid this, either use random uuids or some kind of system, e.g
In my datapack, 1,1,1,1 is for head slot items, 1,1,1,2 is for chest, 1,1,1,3 is for legs, 1,1,1,4 for feet, 1,1,1,5 for mainhand and 1,1,1,6 for offhand
WOW! i rated much cool, very thank you risate :)
Thank you thank you👏👏 you very helped me
Holy guacamole :D thanks imma sub cuz im making valorCraft where i need the swrd to be insta-kill
is there a difference between a 20 armor point and a 200 armor point ?
can you show the commands to get a extra health shield?
Try:
/give @p shield{Unbreakable:1,AttributeModifiers:[{Slot:"offhand", AttributeName:"generic.health", Amount:30.0, UUID:[I; -1, -1, -1, 1]}]} 1
Big thanks!!!
Very interesting and helpful thanks for this nice tutorial 👍
is this possible for bedrock edition? i want to have more fun in my worlds without feeling like i'm cheating
For some reason it accepts it and says it has a new NBT but doesn't do anything
Except for Unbreakable
CTRL C + CTRL V
hiii im making some custom items for an smp with custom items for me and my friends and i was wondering if u could tell me how to make the
1.8/Speed PvP Helmet for boots
or is there a way to completely remove slot thing
Just change the slot from head to feet and it'll work
Is there a possible way to change the attributes of a currently existing weapon without having to use a slash command? That way I could give an item a cool effect while holding it albeit at the same time I having 100+ damage or something LOL
cool video! but i want to add a name and description to the item, how would i do that
How do i find my uuid for the command ?
It just has to be 4 numbers. Use 1, 1, 1, 1 and you'll be fine. It really doesn't matter. Any 4 numbers, and don't forget the I before. You can find complete commands in the description of the video btw.
UR THE B EST ONE I SUB TO UR VIDS
OMG THANK YOU
you could modify the diamond sword command to amount =1000000000000 and be able to one shot any mob including the wither and the enderdragon
theres a number cap installed
@@Regirock_official turns out the number cap is more than 10000000000000000000000000 which is more than double than what i thought could work
@@proat911 I think the cap number is 1.797600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 or 1.7976e308 in short
@@gigachad251 i wasnt saying that that was the cap number , i was saying that u could just use that to one shot anything just in case u needed to :]
Just put 1.0E+999
Say is it possible to add 2 or more attributes to one item??
How do you go back in version’s like that
just asking, how can you add custom names and descriptions on them while having attributes?
Add an nbt like this:
{display:{Name:"\"Epic Diamond Sword\"",Lore:["\"Has many special attributes.\""]}}
but make sure you separate it with commas inside the first set of {}s but outside the Attribute Modifier set. Keep putting commas and separating it out of the attribute tag until it works. If you can't get it after trying, reply and I'll be quite happy to help
@@Risate oh alr thanks :DD
can you do a video and show how to make a diamond portal ?
A diamond portal? So like a portal made out of diamond blocks? Well, there's no original diamond portal in Minecraft, BUT, contrary to popular belief, you CAN actually make a nether portal that uses diamond blocks with these two commands:
*Note: Stay in the same place while you use both commands, or else the portal won't be built right*
Commands:
Diamond Portal Frame
/fill ~3 ~0 ~2 ~0 ~4 ~2 diamond_block
Portal Blocks
/fill ~2 ~1 ~2 ~1 ~3 ~2 minecraft:nether_portal
Use both of these commands right after each other, typing one, pressing enter, typing the other, then entering again. Make sure you don't move in between command uses!
If you're having any trouble with the commands, send me a reply and I'll help you as soon as I can.
does this work in the latest snapshot I can't get it to work
Will these work on ps4?
Attributes are not yet available in Bedrock Edition, sadly.
This is great! But I kinda wanna know about the other armor slots
I believe it's
head
body
legs
feet
You can tell what the other armor slots are by holding a piece of armor. If you hold a diamond helmet and hover your mouse over it, the game will display "+# armor when on head". Just look for the "+# armor when on ____" to find where the armor slot is.
@@Risate It's
head
chest
legs
feet
Actually
cool stuff, but I tried it on a trident and it only change the melee damage and the damage when thrown was unchanged. Do you know how to change damage for projectile weapons? luv the vid and thanks for cheatcodes my guy.
You can't change the projectile damage on items unless you use enchants. Even then, the enchants are limited. Bows can have their arrow damage buffed with the "Power" enchantment, and Tridents can have their thrown damage buffed against SEA CREATURES ONLY with the Impaling enchantment (pretty limited, I know). If you want a video that goes over item enchantments on weapons (and has commands in the description) check out my video on the /give command:
ruclips.net/video/v9aRLh0oSzQ/видео.html
If you're desperate to get increased item damage on your trident, you might be able to use an /execute command to effect all entities that come within 3 blocks of your trident with a damage effect. This is rather inefficient, as the trident will effect you when you throw it, but (put this on a repeating command block set to always active)
/execute at @e[type=trident] run effect give @e[distance=..3] minecraft:instant_damage 10 1
That should do the trick. If the trident doesn't damage entities, try increasing the distance to 5 or 6. Finally, you might actually be able to make this work if you set the effect to instant_health. This will prevent the trident from damaging you (it will heal you instead), and will also make it use against mobs like zombies, skeletons, blazes, and wither skeletons (as these mobs take damage from the health effect).
@@Risate thanks, i'll try that.
Love this video, but whats the command to add Max Health to armour pieces? I would Love to know
Do what he does in the video, and put "generic.max_health" as the attribute name
Can you make with @a? Im making our map!!!
i did a command and now i cant join my server again it keeps kicking me
anyone know how to help?
You may have run something that is overloading the world and causing you to crash. If you can back up the world to a previous file or run commands outside of the server, you may be able to recover your world.
Único tutorial que me funcionó, like
how do you make it give effects when held
But what about the modifier for the attribute command
for some reason the generic.attack_Speed modifier isnt working why
You have any idea how to do this with enchants on top of attributes?
Use enchantment modifiers and attribute modifiers inside the same NBT caped bracket pair, but separate with a comma as they are two different tags.
@@Risate I forgot to mention that I was doing this in 1.16.5
Can you give us info on what the Slot name for all 4 armor slots are?
You can usually find the slot names by hovering over an item that applies to a certain slot. For example, if you want to know what a helmet's slot name is, go into creative mode and get a diamond helmet. The helmet will say, "When on head" then the buffs it provides. The "When on ____" tells on what slot it works on, most of the time.
@@Risate Nvm, a different video told me the answers.
It's "head"," chest", "legs", "feet", "mainhand", "offhand".
Thanks, Mr.Useful.
how would I make a helmet have +10 hearts when wearing it?
what if I want to add a value instead of setting it, for example I want to get a diamond helmet that adds 5 armor points instead of setting them to 5
I think it works with /atribute @a generic.armor modifyer add but it doesnt work
That's what this does
Sir. You earn a sub
How do i make boots that make me invisible?
How to add multiple attributes in 1 item by command block?
How would I go about putting this ( /give @p golden_helmet{Unbreakable:100,AttributeModifiers:[{Slot:"head", AttributeName:"generic.movement_speed", Name:"generic.movement_speed", Amount:1.0, UUID:[I; -1, -1, -1, 1]}]} 1 ) onto this ( /give @p minecraft:golden_helmet{display:{Name:"{\"text\":\"Golden Crown of Poseidon\",\"italic\":false}"},Unbreakable:100,Enchantments:[{id:aqua_affinity,lvl:50},{id:respiration,lvl:50},{id:protection,lvl:255},{id:thorns,lvl:50}]} )?
wdym
Can we put for exemple: the slot 2 in slot?
this doesn't seem to work in 1.17.1, any tips on how to get it to work? bc everytime i do it it only effects me and not the item i'm holding
is there a way to also add enchants?
How to combined this with infinite attack damage sword?
Tysm time to troll my friends