1

Command Block Help

princesabelle 12/2/14 3:18 am
1.1k
12/3/2014 1:42 pm
Hi, I'm new to using command blocks and can really only do the most basic things.
I made a rainbow runner minigame and have it on a cart timer, each track sending pulses to each part.
I'm wondering if there's a way to do this with command blocks because the cart way causes a lot of lag.
You can come on the server if it's easier to see what I'm doing and then help: eraofnyx.mcpro.co
I appreciate anything you can help with!
Posted by
princesabelle
Level 7 : Apprentice Princess
3

  Have something to say?

JoinSign in

7

Exzolid
12/03/2014 1:42 pm
Level 7 : Apprentice Network
This one is actually pointless.. you could just launch a redstone clock that activates a dispenser...
1
Patchpen
12/02/2014 4:13 pm
Level 20 : Expert Dolphin
You could fill 2 droppers so that they empty (randomly) into a third dropper, then have the third dropper activate to drop an item (randomly) to the player.

There may be a simpler way, but that's my first idea.
1
Exzolid
12/02/2014 3:50 pm
Level 7 : Apprentice Network
Oh.. well.. I don't know how to do this using command blocks.. sry
1
Exzolid
12/02/2014 3:02 pm
Level 7 : Apprentice Network
To your other issue..
Yea you can do it with command blocks.
Here's a description with pics:
Click to reveal
The whole construction will look like this (Ignore the glowstone):

Click the pics if it's hard to see

1. You build a cross-like construction. The quartz can also be wool or stone.
After you built the blocks set the redstone. The comparator has to face the redstone:


2. Place a chest 2 blocks next to the redstone construction. Place a redstone torch on the other side of the block the repeater is facing:


3. Now build 2 hoppers. The first one has to face the comparator like on the picture. The second one has to be placed under it and has to face the chest:


4. fill 22 heads in the upper hopper like on the picture:


If you throw a head in the upper hopper it will place it in the chest and the hopper gave a redstone tick to the comparator. The comparator deactivates the redstone torch so Items can go through the second hopper:


6. Now put 9 more blocks on the left and 4 repeaters like on the picture:


7. Place 4 command blocks between the repeaters:


You wanted to give the player 4 items for the head. Let the command blocks give those items to the player by inputting the give command with the item and amount on each command block.
1. command block, first Item - 2. command block, second item etc..

An example for the first command block:


Each time a player throws in a head, this system will give him this items and you don't need to worry about running out of stock. You just need to clear the chest of heads when its full or put a hopper under the double-chest and another chest under it for more storage.
There is an advanced version of this with an auto-clear system. It clears the chest's inventory by removing the chest using setblock and putting a new one.
If you want to know how this one works just tell me.
1
princesabelle
12/02/2014 3:40 pm
Level 7 : Apprentice Princess
Hmm I don't think I was very clear - problems with just waking up after 4 hours of sleep x) Sorry!
I'm not having a problem with that, what I want is a greater variety of items to randomly give them. Right now it takes 4 random items from a set of 9 options with the dispenser, but I'm looking for a way to increase the options so it's more than 9. Does that make sense?
1
Patchpen
12/02/2014 2:03 pm
Level 20 : Expert Dolphin
Ahem...
/testfor @e[x y z 1 type=minecart]
1
Exzolid
12/02/2014 1:26 pm
Level 7 : Apprentice Network
I know a few things about CBs.. I think I can help you. Im on the server.
1

Welcome