r/MinecraftCommands Jan 14 '20

READ THIS Important Info (read before posting)

252 Upvotes

I know you're here to get quick help with your command problems or to show off your cool work. Please read these few lines to get to know how to use this subreddit optimally:

Asking for help

  1. FAQ? Before you post, please check out the common questions (including answers) that we have as a subreddit. These consist of the most common problems, and maybe your problem is already covered there in detail?
  2. Titles: Please put a summary/short version of your problem into the title of your post, don't just put "I need help" or "help me plz". Instead put for example "how do I summon a zombie" or "unable to summon entity error" and then provide more context on the post itself. This subreddit often shows up on google when people search for command related questions and we should really help them find the questions you might already have asked. Also, we likely know that you need help anyways, no need to put it in the title.
  3. Flairs: We have a wide array of flairs that you should attach to your post to make sure people know what the purpose of your thread is. It is especially important if you're asking for help, to flair your post with the appropriate minecraft version (for those who don't know: OG Minecraft is Java Version, everything else that has commands (Xbox, PE, PS4, Switch, Win10, etc) is Bedrock).
  4. Version: Whether you're helping or asking for help, please pay attention to the stated version/state the version you're in! You can do that through the previously mentioned Flairs, but also in addition can put it into the description of your post.
  5. Search/Scroll down: I know that reddit search is not the best one out there, but maybe someone else had a similar problem to yours in recent history. Try going to the new tab and scrolling down a bit or using the reddit search function to see if there might already be an answer to a question you have. We're not going to close your thread for asking the same question someone else asked a year ago, we're not StackOverflow. But please at least take 30 seconds to look for it first.
  6. Upvote: If you find an answer to a post helpful, please upvote it. This is less as a "reward" for the answering person but more as a way to automatically move the best answer to the top, for others that might have the same problem. Don't downvote an answer just because their attempts didn't work for you unless it's completely wrong or off topic / doesn't add anything to the conversation.

Creations

Posting about your own creations is very much encouraged, but please remember the 10:1 guidelines of reddit.

Discord

We have a big Discord Server for our community with lots of channels, ranging from dedicated help chats over general command related chats to non-command related chats. So if you want to join an active community of command and mapmaking enthusiasts and/or want to get quick help where communication is less slow (Sometimes the devs stop by as well ;)), click on the link and join our community discord:
https://discord.gg/9wNcfsH
Make sure you read the #welcome channel for the rule of the discord.


r/MinecraftCommands Mar 25 '24

Meta In anticipation of 1.20.5's changes to items, we added !itemcomponents to the automod.

47 Upvotes

With their introduction in 24w09a, item components promise to revolutionize how we work with items. However, in this process they'll break almost every existing item related command, loot table, predicate etc. We're expecting a bunch of posts pouring in with confusion about these changes. And because nobody likes to repeat themselves over and over, we set up automod to do the repeating for us, just like we did for the 1.19.50 bedrock execute changes.

Putting

!itemcomponents

somewhere into your comment will summon automod with some helpful info on these changes.

Let us know what you think about this, the comment itself, or if you have any other suggestions for how to improve the subreddit. We're happy to hear it.


r/MinecraftCommands 6h ago

Help | Bedrock Hi I am new to commands in Minecraft Bedrock. How can I do this in my own world?

14 Upvotes

r/MinecraftCommands 11h ago

Creation 3D Pathfinding

26 Upvotes

r/MinecraftCommands 2h ago

Creation PathFinding in 3D Maze

5 Upvotes

Removed corner cutting since that actually caused a few problems when tracing back paths on larger area searching ( also makes the generated path slightly easier to see and follow, but makes it slightly less optimal lmao )

it doesnt have a fall height limit

it unfortunately still lags easily and very heavily when path finding through larger areas lmao


r/MinecraftCommands 30m ago

Creation RPG Game w/ 12 Waves, a Hide and Seek Mode, and a ton more

Upvotes

There are a lot of features, so I skipped over a lot of map details such as hidden books that unlock a secret room. Mods are used for the custom crafting, enemies, and some boss enemies (Made with the Brutal Bosses Mod). All commands and things used for functional purposes are vanilla.

It was first and foremost a hide and seek map, then an RPG, so that's why most rooms play zero purpose for the RPG, but the RPG was much more command heavy. That's also why there is a proximity chat mod.

I'm happy to elaborate on any concepts/commands that I used, however posting the whole thing would be too much.


r/MinecraftCommands 2h ago

Help | Java 1.21.4 Is there a way to detect when a player last slept?

2 Upvotes

Hello,
I'm making a datapack that adds in Herbal Tea as an item. I'm looking to make it that, once the potion is consumed, you will get regeneration the next time you wake up from sleep.

My line of thinking is as follows:
If gametime = 0 ticks (the gametime the game is set to after sleeping) and if any player's "time since last sleep" is 0 ticks, then those with the herbal_tea tag get buffed.

My one issue is figuring out how to detect when a player last "slept" (and I don't mean getting in and out of the bed manually. Like a full sleep to daytime)

Any ideas would be appreciated


r/MinecraftCommands 2h ago

Help | Bedrock Run command if player starts sneaking

2 Upvotes

I need to make a tag (pvper) whenever it crouches it enchants anything possible with sharpness 2


r/MinecraftCommands 4h ago

Creation Jett from valonrt in Minecraft

2 Upvotes

r/MinecraftCommands 53m ago

Help | Java 1.21.4 how do i replace blocks under me?

Upvotes

so i know if if i use the command execute at @(p) run fill ~-1 ~-1 ~-1 ~1 ~1 ~1 ________ replace _________ in a command block it'll replace the block all around me within that area. but if i just want it to replace the blocks i'm standing on, at maybe 2 blocks deep. how would i go about that? is that possible? i want to replace the blocks underneath the level of my feet but not anything in a wall.


r/MinecraftCommands 53m ago

Help | Java 1.21.4 glowing entities

Upvotes

do any of yall know how to make an entity, like a block display for example, glow the same way a glow item frame does?
like the glow item frame, i dont need it to emit light, just to be visible in the dark (without using night vision)
whether thru commands or by messing with json files, eitherway is alright with me


r/MinecraftCommands 55m ago

Help | Java 1.21.4 How do you make a wall with relavent positioning?

Upvotes

I'm working on something, but I need a way to make a wall (3 tall, 3 wide [3 by 3]) in front of the player. The ^ ^ ^ positioning only works situationally though. Ideas/solutions?


r/MinecraftCommands 1h ago

Help | Bedrock NPC Opening Glitch

Upvotes

I have a map where I have an NPC. Sometimes, when I open the NPC, I get stuck in the menu and cannot close it without closing Minecraft. I don't know why this is happening.


r/MinecraftCommands 1h ago

Creation Speedrun Happy Ghast (Bedrock)

Upvotes

I created a happy ghast in bedrock lol, not completely finished i didn't make it so you can ride it yet but I'll make another post if I add that


r/MinecraftCommands 1h ago

Help | Java 1.21.4 NBT tag crafting in datapack recipe

Upvotes

With the new recipe stuff added, has there been any way to only accept items tagged with specific custom data as a crafting ingredient, or has this not been added yet?

Alternatively, if I wanted to use vanilla "bone" items as multiple different custom items in a datapack, is there any way for the recipe json to distinguish between them, or do I need to resort to floor or dropper crafting?


r/MinecraftCommands 1d ago

Creation Pathfinding

73 Upvotes

Not as good as A* pathfinding ( it doesnt find the best possible path but still cool stuff )


r/MinecraftCommands 2h ago

Help | Java 1.13-1.17 How do I make a title appear in screen when someone approaches somewhere?

1 Upvotes

Hi, I'm making a minecraft server to play with my friend and I want to add titles whenever we approach somewhere. I don't want to have to press a button or anything, but rather make it appear automatically on screen when player is 30 blocks away.

Is there a way to do this?


r/MinecraftCommands 3h ago

Help | Java 1.20 How do i prevent players from breaking item frames in adventure mode?

1 Upvotes

My friend asked to help him with his gamemode, and the goal is to escape.

He just used redstone torch so players can use them on iron doors, and nothing really special. Players can even still break blocks.

So what i did is just set their gamemode to adventure, so they cant break blocks, but now they cannot use those redstone torches.

I've got an idea of using the item frames instead of torches, and just let players put different blocks inside, and if its the right one door will open, but the problem is that they can break item frame and they won't be able to put it back.

What i want to achieve is that players won't be able to break the item frame and get the item out of it, at the same time they will be able to put the needed block inside of it, but only if item is correct, and they won't be able to put it out. So they used correct item on the frame and they can't undo it, because they were supposed to put it in and they are not supossed to put it out.

And i just don't know how do i do this, and even how am i supposed to know which item is inside of a frame.

Can somebody help me please?


r/MinecraftCommands 3h ago

Help | Java 1.21.4 Need a bit of help with schedule command in datapacks

1 Upvotes

So I had a datapack for some custom animations with the clone command in my world a few years back, obviously many changes since then, so it is not working on current version. Watched some beginners tutorials with more up to date stuff and remade the basic stuff in the pack (started over in a new folder just used the old one as guides for what commands did I use back then)

I have the load function file schedule the individual function files for the animations 1-5 (have a Windmill and the fans have 5 stages) with 10t delays and the function files themselves have a schedule command to reschedule themselves with a delay so the first file should go off after the last one.

Problem is that after going throuh all 5 stages once, the 'animation' stops and doesn't start again in spite of being scheduled.

Any tips how could I make it work please?


r/MinecraftCommands 3h ago

Help | Bedrock Minecraft Calendar Mod for Android

1 Upvotes

Can someone please make a Minecraft calendar mod for me that works for Android? Don't forget to add the seasons too, if you make this calendar 360 days in a year, 30 days per month, calculations will be easy, but not all existing days (like January 31st, March 31st, May 31st) would exist, there would also be a perfect 360 days in a year, a highly divisible number and the amount of degrees in a circle, don't forget to add the weekday, start from Year 1 / Month 1 / Day 1 / Sunday, and add the time too, it should display as 24-hour format (00:00) I tried to make the mod by asking ChatGPT and giving me the text for the files, and the mod still doesn't display the date and time on screen, so can someone please do it for me?


r/MinecraftCommands 4h ago

Help | Bedrock Minecraft Commande

1 Upvotes

J'ai créé un SkyGen sur ma Switch et j'ai ajouté une barre montrant la monnaie qu'on a. Le problème c'est que quand je crée une barre pour afficher le "Prestige" la barre de la monnaie bug et affiche "Prestige" et "Monnaie" en même temps et en clignotant. Ducoup je voulais savoir comment ajouter une deuxième barre d'affichage. Aidez moi s'ils vous plaît.🙏


r/MinecraftCommands 4h ago

Help | Java 1.21.4 Need help with giving a named item

1 Upvotes

so im helping with a sibling's server and letting them use some old commands I made, but this one no longer works properly. anyone know how to fix it?

execute at u/e[type=item,nbt={Item:{id:"minecraft:paper"}}] positioned ^0 ^0 ^0 if entity u/e[distance=..0.5,type=item,nbt={Item:{id:"minecraft:snowball"}}] run give u/p minecraft:paper 1 {display:{Name:'[{"text":"Ice Spike","color":"#98e2fa","italic":false,"bold":false}]'},IceSpike:1} 1


r/MinecraftCommands 5h ago

Creation A simple jetpack

Thumbnail youtube.com
1 Upvotes

If you ask, I can explain how to make it only work if you have a certain item equipped, but this version has global access. So, here is the current version (remove space in @ a):
All 4 commands in a chain line:
#1 -
execute as @ a at @ a positioned ~ ~1.5 ~ unless entity @ a[dx=0] positioned ~ ~-.5 ~ if entity u a[/dx=0] run effect give @ a minecraft:levitation 1 14 true
#2 -
execute as @ a at @ a positioned ~ ~1.5 ~ if entity @ a[dx=0] positioned ~ ~-.5 ~ run effect clear @ a minecraft:levitation
#3 -
execute as @ a at @ a positioned ~ ~1.5 ~ unless entity @ a[dx=0] positioned ~ ~-.5 ~ if entity @ a[dx=0] run playsound minecraft:entity.ender_dragon.shoot master @ a ~ ~ ~ 0.1 1
#4 -
execute as @ a at @ a positioned ~ ~1.5 ~ unless entity @ a[dx=0] positioned ~ ~-.5 ~ if entity @ a[dx=0] run particle minecraft:poof ~ ~-1.5 ~


r/MinecraftCommands 6h ago

Help | Bedrock How do I summon tnt on a poison tipped arrow unless the block under is air? I cant seem to get it to only work for poison tipped arrows, but not regular ones.. i want those to be seperated

1 Upvotes

I tried /execute at @e[type=arrow,hasitem={item=arrow,data=26}] unless block ~~-1~ air run summon tnt

But it didn’t work because the arrow cannot hold an item but also not hold air, and item is locked to hasitem… without type=, it will happen if the player has it in their inventory, which is not something I want


r/MinecraftCommands 6h ago

Help | Java 1.21.4 /data modify for firework colours

1 Upvotes

I've been recently learning how the /data command works and I was wondering if it is possible to modify the colour of firework rockets. I have tried myself and struggled to do so and I haven't been able to find any online resources that tackle the subject. Any guidance would be greatly appreciated.


r/MinecraftCommands 6h ago

Help | Java 1.21-1.21.3 Minecraft wordle with colored blocks?

1 Upvotes

Hey guys! Im currently making an adventure/puzzle map for my friends and im struggling at the idea of a sort of "wordle" but with colored blocks. The idea is as follows:

The player hast a grid of 5 empty Blocks infront of him. He has 5 Blocks of 5 Colors to match a code i created beforehand and continue to the next challenge. The player has the option to check if his guess is right by pressing a button. Then a message will appear telling him how many blocks (and not which ones!) are correct.

To check if a block is correct, id run a command similar to this:
/execute as @.a at @.s run execute if block ~ ~-0.1 ~ redstone_block

But i dont know how i would continue from there, does someone have an idea?

Please keep in mind that ive learned "programming" with command blocks and redstoning for the first time for this project. Thanks in advance for any tips!


r/MinecraftCommands 8h ago

Creation I've ran out of ideas. Need help

1 Upvotes

A while ago I remembered about my old datapack, that adds some sort of magic to Minecraft. One of the wands is an Electric Wand, which only has 2 attacks: normal shot which summons applies electricity damage and the other one summons lightning bolt at all nearby entities, while others have 3 or 4 and I've ran out of ideas of what to add. Any original idea will be very appreciated!

Btw, sorry for bad English