/r/MinecraftCommands
A place for all things about commands, command blocks and data-packs in vanilla Minecraft; to share, to question, to discuss, and more!
Please read the pinned post before posting.
Welcome to /r/MinecraftCommands!
Discuss, share, and ask questions about Minecraft commands and command blocks. Have fun and don't be afraid to ask questions!
Please read the pinned post before posting.
Feel free to join and ask questions on our community Discord server.
The links and pages on the subreddit wiki might help you.
If you have any questions or issues about the subreddit, you can contact the Moderators for assistance.
Rules of the subreddit:
No spamming comments, posts, or links.
Do not post inappropriate content.
Be respectful: Do not use offensive language, especially directed towards others.
Use common sense.
If you may fail to follow these rules on a constant basis, and ignore a moderator's warnings, you may be banned!
ENJOY!
This subreddit uses a custom version of /r/Naut.
You can follow the design development of the subreddit at /r/MCCDesign.
/r/MinecraftCommands
As far as I’ve tested, songs can only be played in specific locations, with the only way to move the music’s location is by restarting the song. I basically want the record disc audio to be attached to the player at all times. Is this possible? Any ideas appreciated, even if it’s a non-command solution
/summon zombie ~ ~ ~ {HandItems:[{id:"minecraft:totem_of_undying",count:99,components:{"minecraft:max_stack_size":99}},{id:"minecraft:totem_of_undying",count:99,components:{"minecraft:max_stack_size":99}},{}],ArmorItems:[{Count:1,id:netherite_boots,tag:{Enchantments:[{id:protection,lvl:4}]}},{Count:1,id:netherite_leggings,tag:{Enchantments:[{id:blastprotection,lvl:4}]}},{Count:1,id:netherite_chestplate,tag:{Enchantments:[{id:protection,lvl:4}]}},{Count:1,id:netherite_helmet,tag:{Enchantments:[{id:protection,lvl:4}]}}]}
I have an idea to remake some games in Minecraft, specifically Zelda: Phantom Hourglass, but I don't want the player to have to use a separate datapack just to run the world as intended. Given that datapacks are essentially commands written like code, I thought there was a way to do as the title says to keep track of progress, but I can't find anything online. Any help, if this is even possible?
its silly
/give @p compass[attribute_modifiers={modifiers:[{id:"entity_interaction_range",type:"entity_interaction_range",amount:999,operation:"add_value",slot:"mainhand"},{id:"attack_damage",type:"attack_damage",amount:999,operation:"add_value",slot:"mainhand"},{id:"block_interaction_range",type:"block_interaction_range",amount:-999,operation:"add_value",slot:"mainhand"}],show_in_tooltip:false},item_name='"Death Note"',item_model="minecraft:writable_book",enchantment_glint_override=true,lore=['[{"color":"dark_purple","italic":false,"text":"Left-click on any entity to "},{"color":"dark_gray","italic":true,"text":"END "},{"color":"dark_purple","italic":false,"text":"them."}]']] 1
I don't know if this is well known or not, but giving an item with a special color not included in the base texture(Ie. potions, dyed armor, etc,) an item model, the new texture will have a tint of the same color that you gave the real item. Some stuff I made with this:
I haven't heard about any cool new custom items, so I have to assume that I am the first person to share this bug online. Mojang is gonna patch it soon, so let's get our kicks in while we can.
The command for the Void Blade:
/give @p leather_horse_armor[item_model="minecraft:iron_sword",max_stack_size=1,lore=['[{"bold":false,"color":"gold","obfuscated":false,"text":"Unbounded by light, the "},{"bold":true,"color":"dark_gray","text":"Void"}]','{"bold":false,"color":"gold","obfuscated":false,"text":" reigns supreme."}'],attribute_modifiers={modifiers:[{id:"attack_damage",type:"attack_damage",amount:99999999,operation:"add_value",slot:"mainhand"}],show_in_tooltip:false},custom_name='[{"bold":true,"color":"black","obfuscated":true,"text":"A"},{"bold":false,"color":"gray","obfuscated":false,"text":"THE VOID BLADE"},{"bold":true,"color":"black","obfuscated":true,"text":"A"}]',dyed_color={rgb:0,show_in_tooltip:false}] 1
I want to walk some villagers around to specific places in a specific order, and preferably at a specific speed.
Worst case scenario, I would just have static entities, but I'd like motion.
So, I am making Black Clover and I am starting of with the mana part, I am doing this on my notes since I don't have access to minecraft right now. I just want to know how to test if someone doesn't match the criteria. This is the command:
repeating|unconditional|always active
-execute as @e[tag=!has_mana,tag=!member] at @s unless score @s hasmana matches 256 if score @s hasmana _____ run tag @s add has_mana
I'm trying to figure out how to run a mcfunction every tick. Internet search results from 2 or 3 years ago all yield the same result: create a file called tick.json in the function folder, and add this syntax:
{
"values":["namespace:function"]
}
However, this does not result in the function running automatically at all. I have run the function manually and it works as intended.
My file hierarchy is as follows:
pack.mcmeta
pack.png
data > namespace > function > function.mcfunction and tick.json
(Forgot this: I'm on version 1.21.3, using fabric but only with clientside mods)
I made a custom dimension and a custom biome but the structures that are supposed to generate just don't generate even if i do /place.
g
I want to make a little mini game for me and my friends but for that i need a creeper as a visual effect exploding but not destroying anything or making any damage to anyone of my friends i dont even know how long i have been searching for it on google but i just dont know what to do anymore so im just asking here
This is my first time on Reddit to ask for help.
So I want to create an item for a server that I am running amongst friends, but my command system
is not quite working.
Can you fellow command writers check it out for me, please?(ignore the '.' between @ and a/s)
give @.a player_head[profile={properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZWI3NmI0ZWU5ODg1NzIyOTdjYmQ4NzQ2ODNiZWU5NmFlM2M1NWNlOTRjMDA0ZTUxYWRjODJjZWUxNmNkMGIwYyJ9fX0=",name:textures}]},custom_name='["",{"text":"Loving Heart","italic":false,"color":"light_purple"}]',lore=['[""]','["",{"text":"When in Inventory:","italic":false,"color":"gray"}]','["",{"text":"+2 Max Health","italic":false,"color":"blue"}]'],custom_data={LovingHeart:1}]
w/
execute if entity @.a[nbt={Inventory:[{id:"minecraft:player_head",components:{"minecraft:custom_data":{LovingHeart:1}}}]}] run effect give @.s health_boost infinite 0 false
Thanks once again.
I have a dyed piece of armor, and under the name of the item, it says “Color: #(color code)” I tried using hide_additional_tooltips, but that didn’t get rid of it. Anyone know what to do? Thanks in advance.
I created a structure and saved it in the structure block, and I would like to know how I can make this structure generate naturally in my world, how to choose the coordinates where it can generate, and its shape variations. Let’s assume it has 4 variations.
How can you tell if you are either falling or flying?
This also applies to any other advancement requirement. I see that horn and spy glass activate using_item while fishing rod doesn't, but I can't find any wiki with an actual list for each requirement.
1.19
1.19
how to make glow entity but 1 player can see, another cant see, i made sth for mage skill
/execute at @p [hasitem={item=golden_pickaxe,location=slot.weapon.mainhand.data=0}] run execute positiond ^ ^ ^ if block ^ ^1.5 ^1 air at @p [hasitem={item=golden_pickaxe,location=slot.weapon.mainhand.data=0}] positiond ^ ^ ^ if block ^ ^1.5 ^1 air at run fill ~1 ~ ~-1 ~-1 ~2 ~1 air destroy
Hello, I wanted to make a horse armor enchantment where the rider will get extra attack range when riding said horse. However, I dont know whats the best way to remove the bonus attack range when the player is not riding the horse. Is it by tick function? By advancement? Any help and idea is appreciated!
I’d assume I need to add some variables inbetween {} or [] right behind the name, but I have zero clue what those would be. I feel like it needs two coordinates since, correct me if I’m wrong, I thought this is the particle the creaking produces between it and the heart when hit, but it also asks for color so I’m unsure.
I’m trying to make Fnaf in bedrock but I cnat get the armour stands to teleport
I want to make Wii sports resort in minecraft for my channel, but i got some problem with basket ball. I want to make it if a player hits a player then they take the ball thats in their inventory but how can i detect wich player hitted a player?
I've already come across some reddit posts that explain how to do this, but I'd like to be able to create items with "NBT+." tags so that each item is unique to its click, but that it remains a carrot/warped mushroomp on a stick. (So that things are less complicated, and that players in survival mode can continue to play peacefully.
Je suis déjà tombé sur des posts de reddit qui m'explique comment faire cela,mais je voudrais bien pouvoir créer des items avec des "NBT+." tags pour que chaque item soit unique à son clique,mais que ça reste une carotte/un champignon sur un bâton.(Pour que les choses soit moins compliqués,et que les joueurs en mode survie puissent continuer à jouer traniquillement.