How To Add The NEW Attributes to ITEMS (Minecraft 1.21)
Vložit
- čas přidán 8. 06. 2024
- This update is HUGE for mapmakers! I'm excited to see what everyone does with this!
Join my discord! / discord
Commands:
Scaling Size Up
/give @a diamond_boots[attribute_modifiers={modifiers:[{type:"generic.scale",amount:2,slot:feet,id:"generic.scale",operation:add_multiplied_base}]}]
Longer attack range
/give @a diamond_shovel[attribute_modifiers={modifiers:[{type:"player.entity_interaction_range",amount:2,slot:mainhand,id:"player.entity_interaction_range",operation:add_value}]}]
Low Gravity Boots
/give @a diamond_boots[attribute_modifiers={modifiers:[{type:"generic.gravity",amount:-0.9,slot:feet,id:"generic.gravity",operation:add_multiplied_base}]}]
High Gravity Boots
/give @a diamond_boots[attribute_modifiers={modifiers:[{type:"generic.gravity",amount:1,slot:feet,id:"generic.gravity",operation:add_multiplied_base}]}]
Higher Step Height
/give @a diamond_boots[attribute_modifiers={modifiers:[{type:"generic.step_height",amount:4,slot:feet,id:"generic.step_height",operation:add_value}]}] - Hry
Pretty neat
Yes! I love what they're doing with the game!
actually really useful and informative vid, ty sir
I’m glad it was helpful!
Thanks for being on top of this ahead of the update!
No problem! Had to do it to fix my mini game anyways haha :)
Man you need more subscribers
Feel free to share my videos to friends :D
So excited for the full update!
Me too!
are you able to do it with op commands? This video has been very useful!
Some of them you can, it just depends on how long the command is because in game commands have a character limit, while command blocks have almost no limit.
@@BurntOutGamer Thank you!
@@raheelyahyamalik8103 of course! Make sure you subscribe if you haven’t already. I’m gonna be exploring the 1.21 changes a lot more in future videos :)
Hey what kinda mic do you use? That is some clean audio
I use a blue yeti!
Besides offhand, mainhand, and armor slot can you have it just check if its in your inventory?
the attribute feature can't apply attributes other than in those slots. But you can test for an item in a players inventory using /execute if entity and applying the correct nbt selectors.
how would i go about adding multiple attributes to the same item? for example, while changing scale i would like the step height to match the size.
8:09 idk if this is what you mean, but figure it won't hurt
You can simply add another entry in curly brackets with a comma separating the two. An example: /give @a diamond_boots[attribute_modifiers={modifiers:[{type:"generic.scale",amount:2,slot:feet,id:"generic.scale",operation:add_multiplied_base},{type:"generic.step_height",amount:2,slot:feet,id:"generic.step_height",operation:add_value}]}]
@@BurntOutGamer thank you! i thought i had the format right but i forgot the comma lol
@@cadenmc3961 yeah, I’ve been working on re writing a ton of code for my pvp map and there have been so many small mistakes like that that destroy my entire data pack haha
is there anyway i can have the command for the gravity boots? im new to modifying attributes on items and it helps to see the command for me.
I totally meant to add commands in the description, I’ll do that in a few hours as I’m away right now
Okay I just updated the video description with all the commands. Here is the command you asked for: Low Gravity Boots
/give @a diamond_boots[attribute_modifiers={modifiers:[{type:"generic.gravity",amount:-0.9,slot:feet,id:"generic.gravity",operation:add_multiplied_base}]}]
@@BurntOutGamer ty so much this was really helpful for me definitely earned a sub!
I'm trying to make an armor set where every piece adds 1 speed but when I use the full set it's still only 1 speed above base and when I take one piece off the other ones don't give their bonus until I take them off and put them back on, does anybody know how to fix this?
You need to make sure the id section is different for each piece of armor. In the old attribute system there was separate UUID values for each attribute. The ID field works the same way in the new update. Let me know if you have any more issues/questions from there
Minecraft bedrock?
I believe this is only a Java feature unfortunately.
Thanks bro
@@BurntOutGamerWill it ever be put on bedrock or pocket edition?
@@Wendigo_Bones I have no clue
@@BurntOutGamer ok thx
Hadn't seen @n before but it's a great shorthand, I always used to do @e[sort=nearest,limit=1]
I agree! I did the same thing before it came out