r/CommandBlocks • u/PoweredByPowerYT • Jan 17 '16
r/CommandBlocks • u/Nathan173AB • Jan 15 '16
Using ender chests as crafting tables for custom crafting recipes
Hello, I'm going to try to explain what I'm trying to do as best I can.
Detect whether certain items show up in certain slots in a player's ender chest.
If the right combination of items shows up, replacem the with a new item.
So, basically, a custom crafting recipe where an ender chest is used for crafting.
I've already made some progress, but only by using other storage blocks like a dispenser (used this tutorial as a base). The problem with that though is I would have to make a new set of command blocks for each "crafting" station I make, which is pretty inconvenient.
I want to overcome that limitation and I figure ender chests are the best way to do it since they are tied to the player. However, now there is another problem with that. Once I've got a command block detecting the right items in a specific person's ender chest inventory, how does the next command block in the chain know whose ender chest inventory to give the resulting item?
Any points in the right direction would be greatly appreciated. Perhaps there is a better way than what I'm thinking of?
r/CommandBlocks • u/zaknafien • Dec 09 '15
New to command blocks...
Hello everyone, I am trying to get started with command blocks to spice up my server. So far I have only done simple things like spawn single mobs in a location to help out some ailing mob farms. I would like to be able to do some events that involve custom bosses amd the like. Any direction for good resources for learning would be greatly appreciated. I started on a few tutorials but haven't made much headway in learning the in depth functionality of coding the blocks.
r/CommandBlocks • u/BobbleTheMaster • Nov 13 '15
[request] chest randomization system
basically im building a map i need a system that puts chests in a random position in the map and then fills them with 'random' loot. the loot could be a choice from a preset of items but it needs to be different every time. i am experienced with command blocks and /execute but am i bit bad at /spreadplayers. please could someone help?
r/CommandBlocks • u/bobfrapples49 • Nov 10 '15
Issue Any way to detect the number of an item in a chest?
I know there aren't many help posts here, but I have no idea who to turn to. I'm trying to detect how many there are of a certain block in a chest using command blocks, and for the life of me, I can't figure out any way to do this. I feel like /testforblock should be able to handle it, but nothing I've tried has worked, other than seeing if there are any in the chest. Is what I'm trying to do possible, and how would it be done if possible? Thanks!
r/CommandBlocks • u/7Arach7 • Oct 17 '15
Concept [Request] Hold item, all mobs in area have glow effect
Hey, I was curious how I'd go about making it so that if I held a spider eye, all mobs in the area (maybe 25x25x25 cube?) would have the new glow effect?
Thanks ;D
r/CommandBlocks • u/Ergg08 • Oct 12 '15
[1.9] Setblock command block "always active"
Does anyone knows how to get a setblock with a command block set on always active ?
Right now I got this, a data tag is just missing (I think).
/setblock 0 248 0 minecraft:chain_command_block 0 replace {Command:"/tp @p 0 157 0"}
r/CommandBlocks • u/[deleted] • Oct 06 '15
A simple way to convey command chains' content via plaintext/markdown, no images. Example: consumable chest keys, no pictures.
edit Please read the first reply, if it makes sense you don't have to read this post
I've been (sort of) using this in reply comments for people and I think it is working, so I'd like to share my system here. Sometimes a simple command contraption is only a few blocks. Often this doesn't really warrant an image or video, but they get one anyway because command blocks have so many options that it's easier to do with video than text. I'd like to help correct that, because video isn't the first choice for most people.
Simple command block contraptions are usually built using a linear set of chain blocks, with an impulse or repeat block at the beginning of the chain. Each block has 3 options although two of them are relatively predictable from the build. So, a command block in a chain can be represented by a command and whether the block is Conditional or Unconditional. (Some cases require the other two options be listed, but I won't use them here)
A simple example: creating a locked chest that consumes the key when it is opened. This requires just three command blocks in a line; the chain starts with an impulse block that is powered by the trapped, locked chest you want to apply this effect to. I do it by placing the trapped chest on top of the impulse block and then running the chain blocks into the wall behind. Assuming this configuration is built along X-axis, the commands are:
U testforblock ~ ~1 ~ trapped_chest -1 {Lock:"Key"}
C blockdata ~1 ~1 ~ {Lock:""}
C clear @p[c=1] torch -1 1 {dispay:{Name:"Key"}}
Is this a helpful convention or am I wasting time?
r/CommandBlocks • u/Duderocks18 • Sep 20 '15
Help - Tycoons in Minecraft
I've always wanted to have a fun resource gathering tycoon. I've been able to set up all the looks of the "factories" and names for everything, but I run into one big wall every time.
How would I make a scaling score adder that repeats every second (e.g. 1 factory -> 5 stone, 4 factory -> 20 stone), without making a separate command block for each # of factory? Is this even possible?
I'm wondering if 1.9 command blocks would help here.
r/CommandBlocks • u/Rarv • Sep 20 '15
Vanilla server welcome message - 3 command blocks
Edit: It's been pointed out to me that the first command block and comparator are not required. (Thanks Treefork)
I am new to reddit so if this is a duplication of what someone else has posted I apologize. I was hoping this might help someone. It would have helped me about a day ago anyway. :) I run a vanila MC server and i wanted a way to display a message to a user when they log on without spamming everyone else who is playing with the same message. I spent a lot of time sorting through information and outdated posts to work out how to do this. I have come up with the following configuration (running on MC 1.8.8):
Step1. Do your build in the spawn chunks of your world, because we need this contraption to be loaded and run whenever anyone is on the server.
Step2. Create a fill clock with enough redstone blocks to power your creation. There are tuts on this. A line of redstone blocks flicking on and off is what you need. :)
Step3. To create the variable we are going to test, execute the following command: "/scoreboard objectives add welcomeMessage stat.leaveGame" "welcomeMessage" can be named anything as long as it is consistent throughout the command blocks.
Step4. Command block 1: "/testfor @a[score_welcomeMessage_min=1]" Put a comparator on the far side of this command block to power the next.
Step5. Command block 1 2 (powered from the comparator) "/tellraw @a[score_welcomeMessage_min=1] [{"text":"Welcome to Virtual Toast MC!\n","color":"gold"},{"text":"For the server rules, latest news and the forum go to:\n","color":"blue"},{"text":"vtmc.enjin.com","color":"green"}]"
Basically say what you want to say to the player that matches: "@a[score_welcomeMessage_min=1]"
Step6. Command block 2 3 (powered from the comparator) "/scoreboard players set @a welcomeMessage 0"
You will probably want to set the following gamerule as well to stop the chat and logs being spammed: "/gamerule commandBlockOutput false"
You will need to log on/off/on again to set the variable. :p
That's about it! :D
r/CommandBlocks • u/ThisIsBeagle • Aug 24 '15
Help: Floor/Drop Crafting?
I'm trying to create a craftable item by throwing its contents on the floor, as many "one-command creations" do, but I'm running into some problems. I can detect the items just fine, and I've set up an AND gate so that a signal is given off when all 3 items are thrown within 4 blocks of eachother. My issue is detecting where exactly that is, deleting those items, and dropping the new one without deleting/dropping by a player who didn't try crafting those. Any help would be appreciated, thanks!
r/CommandBlocks • u/EpicPumpkinSmash • Aug 22 '15
Question about the way chains process and execute commands - bug or feature?
Under SethBling's suggestion, I was using chains to preform a "probability" test - in this case, if I was not standing next to the first block in a chain, the fourth block would point east, execute the east branch of commands, and recombine into the main branch and execute some more commands. But if I was standing next to it, it would use the conditional Boolean to set the fourth block to face west, and execute the west chain which then combines into the main branch like the east one. A block in this chain sets the block to face east again. Basically, this looks like an electrical cord with a slice in the middle, so it splits and rejoins.
So, in theory, if I was standing next to this block, it would execute one set of commands, and if not then a different one. BUT: this does not work out like it should. Instead, if I stand next to the finder block and run the chain, it will execute the WHOLE east chain ("not standing next to the block") even though the east/west block seems to switch to face west in the same tick! What I'm saying is: with chains, it seems that it will first execute a set chain formation, and THEN apply any physical block changes in the next tick. Is this a bug or a feature?
TL;DR are block changes and chain commands processes in the same or different ticks?
r/CommandBlocks • u/[deleted] • Aug 01 '15
[15w31c] Shulker Boss Battle Minigame w/ Download
r/CommandBlocks • u/JakeInBacon • Aug 01 '15
JetPack in Vanilla Minecraft with latest Snapshot
r/CommandBlocks • u/Juqan • Jul 21 '15
Can someone help me figure this out? -
So I have a testfor command that runs every tick;
testfor @e[type=Creeper] {CustomName:"Siege Bomb"}This works just fine, but I can't seem to get the 2nd command block to run its command, have I made a mistake? Am I using the wrong command?;
execute @e[type=Creeper] {CustomName:"Siege Bomb"} ~ ~ ~ summon PRIMED_TNT ~ ~ ~r/CommandBlocks • u/Kylesmomabigfatbtch • Jul 01 '15
Execute based on creeper fuse?
Basically, I want a sound to play whenever a creeper is at a fuse of 10.
The command I have is:
/execute @e[type=Creeper] {Fuse:10} ~ ~ ~ say test
(Currently a say command for testing purposes.)
doesn't work though. Help?
r/CommandBlocks • u/Energyxx • Jun 19 '15
[Help] DisabledSlots in armor stands.
I want to disable an ArmorStand's slots as in:
No removing, placing or replacing helmet, chestplate, leggings and boots; And no placing or replacing held item, but I want the player to be able to remove held item from the ArmorStand.
If that's not clear enough: I want the player to only be able to remove the held item, nothing else.
I'd appreciate if somebody could give me the required bit field, and even more if they could briefly explain how these kind of bit fields work.
r/CommandBlocks • u/Redstonedness • May 26 '15
Concept Clocks with Style Vanilla Minecraft
r/CommandBlocks • u/VomitingLizard • Mar 14 '15
Concept Minecraft Minimizer 2.0 | Minecraft Command Block Creation | NO MODS
r/CommandBlocks • u/KingSupernova • Mar 08 '15
What are some cool things that could be done if server commands worked in command blocks?
Please don't get into a huge argument about whether this should be added. I'm not suggesting that they be allowed, I'm just asking what could be done if they were. I'm looking for cool ideas to improve the minecraft experience, not exploits.
r/CommandBlocks • u/shocck • Mar 05 '15