1
Command Block Help
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!
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!
7
This one is actually pointless.. you could just launch a redstone clock that activates a dispenser...
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.
There may be a simpler way, but that's my first idea.
Oh.. well.. I don't know how to do this using command blocks.. sry
To your other issue..
Yea you can do it with command blocks.
Here's a description with pics:
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.

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.
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?
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?
Ahem...
/testfor @e[x y z 1 type=minecart]I know a few things about CBs.. I think I can help you. Im on the server.
