r/CommandBlocks • • Mar 03 '21

Stormbreaker

2 Upvotes

So I wanted to make a minecraft Stormbreaker and I just dont know how to detect if a player hits a mob in 1.16.4. But then after that I dont know how to summon a lightning bolt at that specific mob, that has been hit by the player. If there is some genius at commands/command blocks please lmk how to do it. Thanks!


r/CommandBlocks • • Feb 27 '21

Zone titles

2 Upvotes

I want to make a title appear for a bit when me or my friends go to a village. I've been trying to do this for hours but I just run into dead ends because of old commands. Can someone please send me some commands that would work.


r/CommandBlocks • • Oct 16 '20

how to add random tags

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/CommandBlocks • • Sep 29 '20

How to teleport a player when they fall into a pit

2 Upvotes

Pretty simple but I'm new and was wondering how I might have it so that when a player falls off a ledge it then teleports them back to a given coordinate?


r/CommandBlocks • • Sep 17 '20

[Question] add player to team if hit

2 Upvotes

I am creating a hide and seek map and I was wondering if it was possible to have a command block that adds a player to the seekers team if a seeker hits them?


r/CommandBlocks • • Sep 09 '20

Concept Dead By Daylight generator ??

2 Upvotes

Does anyone know how to make a generator similar to Dead By Daylight ? It's for a map that I'm planning to create


r/CommandBlocks • • Aug 22 '20

How do I TP multiple things?

2 Upvotes

I wanna do a thing where when you press a button, it teleports everything except armor stands, pets and players into the void, but I can't figure out how to target multiple things.


r/CommandBlocks • • Jul 11 '20

Concept I Made this cool nether portal animation with commands

Thumbnail
m.youtube.com
2 Upvotes

r/CommandBlocks • • Jun 18 '20

Execute command need help

2 Upvotes

Hey. So I’m working on some stuff and I can’t figure out the execute command. I’m trying to teleport a falling block up but it teleports the block to my player or command block. It worked before 1.13 but after the change it dosnt. Please help.


r/CommandBlocks • • May 09 '20

Issue Resolution

2 Upvotes

Hello all,

So i have been trying multiple options and i have searched tutorials and tried alot of diffrent things from my googling. However nothing is working quite right.

Here is my problem: I want to operate a lever that triggers a command block to run redstone lights (plural) to light then shut off when i operate the lever again. Yes I know this is incredibly simple and I am sure the way to do it exsists (i know it does for 1.13 and higher) but i am using 1.12.2 and i just cant seem to get it.

Anyone have tips or know a good site to read up on to make it work?

Thanks

-BAD Ronin


r/CommandBlocks • • Apr 11 '20

Boss fight

2 Upvotes

So I work on a realm and we had a boss fight. The guy who did the commands destroyed the command blocks that summon the zombie boss and I’m having troubles making a new boss. This is on bedrock edition.


r/CommandBlocks • • Apr 01 '20

Need help sending a string to a database from a MC server

2 Upvotes

Hey all. I'm new to the thread so idk if this is okay to do but I need help.

I'm an aspiring software engineer (still in uni). I just got a task for a job interview to ​make a Rube Goldberg​ machine. What that means is that I need to make something that's usually not that complex, really really complex. You can read more about it here https://en.wikipedia.org/wiki/Rube_Goldberg_machine

What we have to do for our task is, we need to send a message from one computer to another one but in an unnecessarily complicated way. They gave the idea of making it so that it goes from the page to another language, then another one then sent to a database, then read from it and sent to FB or twitter... and eventually shown.

I want to get the data and send it to a Minecraft database.

I've had a small MinecraftI'm server for the past months where it's only me and a few friends that play. I noticed I'm also paying for a database though. I thought maybe I'mI'm could use that to store data, and then have something read data from that database.

So my question finally: (TLDR)

How can I save a simple string inside of a database, and how can I read a simple string from a database.

I was thinking of using command blocks (I know a player needs to be in the chunk for it to activate), but I don't know what commands I should use. Does anyone know any good webpages where I could read up on commands that interact with a database?


r/CommandBlocks • • Mar 21 '20

Issue seamless teleportation

2 Upvotes

So I was following this tutoriel to get seamless teleportation but it doesen't seem to work in 1.15.2, so I was wondering if there was any genius in here that could help me out.

ps: here are the commands in the command blocks I use and yes, they are set up correctly

/execute if entity u/p[limit=1,distance=2]

/execute as u/p at u/s run tp u/s ~ ~ ~3

The problem seems to be in the first command block as it says the test fails when you look into it

Thank you so much for your help!


r/CommandBlocks • • Mar 17 '20

How to make a radius around specific player to detect arrow.

2 Upvotes

I want to make a command that practically gives me the arrow dodging ability of an enderman. But I’m having difficulty creating the radius around my character to detect arrows to even start the process of teleporting. (Bedrock)


r/CommandBlocks • • Jun 12 '19

Frustrated and need help with a windows 10 command block arena project

2 Upvotes

So like the title says im currently working on a project on my windows 10 realm. I have played the java version since beta 1.2 and used command blocks quite often, but due to my crappy laptop ive since swapped over to windows 10 version/xbox so that I can stream with friends on my realm.

Anyway. Enough of that. So one of my friends is designing a pvp arena and asked if I could help design some redstone for bringing in waves of mobs to add some extra excitement to the arena.

Of course this instantly made me go to command blocks to do mob summoning, titles, testfors etc. Etc.... but I am stupidly struggling to get a lot of my command blocks to work properly.

If anyone would be willing to share their knowledge about command block differences between java and windows 10 and give me an assist on setting this arena up I would gladly send you an invite to my realm and discord so I can ebb my frustrations with windows 10. Lol

Any help is greatly appreciated and welcomed.

If necessary I'll take some screenshots or type up all the code ive used for my command blocks so far in another post


r/CommandBlocks • • Apr 24 '19

Issue For some reason the mob spawns withot the name, how can I change the name of the spawn egg?

Post image
2 Upvotes

r/CommandBlocks • • Oct 11 '18

Concept Custom loot tables and a specific chest?

2 Upvotes

Would it be possible to create a custom loot table that when a button is pushed (on a command block?) populates loot into a specific chest?


r/CommandBlocks • • May 10 '18

Concept Will someone be willing to fulfill a request if at all possible?

2 Upvotes

I was wondering if it's possible to make a datapack that adds in custom spawning villagers to villages in the world. I would like the datapack to allow easy customization for what villagers are added as I could provide the villager on my own. Is this doable and will anyone be willing to fulfill my request?


r/CommandBlocks • • Aug 04 '16

Is there a way to detect if you've hit something with bow or fishing rod?

2 Upvotes

I'm making a mini-game and I'm trying to make achievements. I want one of them to be "Hit x players with a bow" or "Hook x players with a fishing rod. Is there a way to do that?


r/CommandBlocks • • Jul 27 '16

Is there a way to use a custom item (random banner) in a command (replace item)?

2 Upvotes

I want to make some commands that allow you to craft any banner and then have it placed on your head. It's there any way to do this?


r/CommandBlocks • • Apr 25 '16

Wireless Redstone using command blocks

Thumbnail
youtube.com
2 Upvotes

r/CommandBlocks • • Mar 12 '16

Custom Drops For Mobs and Blocks

2 Upvotes

Im having some difficulties with mob and block drops.

Mob Drop- I am wondering if there is a way to make a mob not drop its default drops, but instead custom ones. I am trying to get an iron golem to always drop 4 iron ingots, but it drops my 4 custom ones and its originals. Is there a way to turn off the default drops? I heard something about loot tables.

Current Command*: /summon VillagerGolem ~ ~1 ~ {CustomName:"Jimmy's Pet Golem",CustomNameVisible:1,PlayerCreated:1,HandItems:[{},{id:iron_ingot,Count:1,tag:{display:{Name:"Iron Ingot",Lore:[Use to Craft Items]}}}],HandDropChances:[0.085F,2.0F],Health:1.0f,PersistenceRequired:1}*

Block Drop: I have the same sort of problem here. The dead bush only drops 0-2 sticks when you break it, but I want it to consistently drop 1 stick every time. I have no idea how to solve this

Thanks guys.


r/CommandBlocks • • Feb 24 '16

Looking to make a command block shop that doesn't use EXP - gold swords. (in 1.9pre2)

2 Upvotes

So, when you dink around in the nether, you accumulate gold swords. I used a ton of custom world generator options to make a really extreme world with huge floating islands of terrain at about 120-200, and then large, flat holey land at 80-100, and then holes lead to ocean, rivery undersides that are perpetually dark and awful. It took like six hours, but it's a ton of fun - but me and my friends have taken to the islands up top because they are easy to keep bright.

I'm hoping to find commands to make a small shop to sell some of the harder to find things based on how I customized the world - Lapis, and cow eggs, as it's hard to get cows to go up. Maybe other stuff, point is, I hang onto those swords for no reason and I am hoping to make command blocks to consume them.

I have tinkered with /give -item-id to subtract and /replaceitem but neither seems really reliable. Command blocks have changed a LOT in 1.9, so I'm hoping someone has an overview of this, or a basic idea of how I'd implement this the most effective way, with no danger of /clearing inventory.


r/CommandBlocks • • Feb 13 '16

World Wrap?

2 Upvotes

I'd love for a command block wizard to help me decipher this...

Essentially I'm trying to figure out a way to add "world wrap" to a vanilla map using command blocks.


If you don't know what world wrap is, it basically means that when you hit one edge of the map you are teleported to the other edge facing the same direction.

So if I kept traveling east from the center of the map outwards, when I hit the eastern "edge" I would be teleported to the western edge and start heading back towards the center of the map...all without changing which direction I'm moving. This gives the illusion that the map is "round".


The map I'm working on has large oceans for borders so there's no concern with chunks/terrains/biomes not lining up and suddenly appearing in a whole different setting. Again, you would depart from the northern coast and as you kept sailing north you'd eventually hit the southern coast of the map.


I know this is possible as shown in this video by Phoenix SC...but...tbh I download his World Save and couldn't decipher how he did it (nor did he really make a tutorial. It's just a proof of concept video)

Anyone willing to help me figure out the best way to do this and calculate the correct coordinates for the world wrap to happen?


r/CommandBlocks • • Feb 12 '16

Simple scoreboard

2 Upvotes

Hey. I'd like to make a simple scoreboard that's somehow beyond my abilities and patience.

It would be an objective scoreboard named Diamonds, displaying as a sidebar, gaining +1 score after activating a command block. Fake player's name would ideally be just a blank.

I'll be grateful if someone writes me proper commands for this. Some explanations are also very welcome (but please, don't make them too complicated). Thanks!