0

For a map I'm making, there's a "Palm Reader", represented by a villager. When you throw a diamond into a nearby hopper, it gives you a fortune. Is there a way to activate different /say command blocks each time, so its not just the same fortune over and over again?

I've done some research, and there doesn't seem to be anything on the topic.

1

1 Answer 1

1

You could use a loop which blocks all but one comparator at a time.

(I didn't have any command blocks, but you'll get the point)

(Scroll down for design (Paint markings))

Screenshot

In the circuit in the picture above you can see a loop with repeaters. Using the redstone all of the comparators but one are switched off, only allowing a current trough the one that is one.

When the user drops an item into the dispenser (use an item sorter to make sure it is a diamond), it will activate the command block which happens to be currenly accessible though the comparator.

Screenshot

4
  • that looks really complicated o-o
    – xXPikminXx
    Apr 27, 2015 at 2:27
  • @xXPikminXx It usually always does to begin with :) but if you follow it you'll be able to get a hang of it while you're building.
    – Ben
    Apr 27, 2015 at 3:47
  • Nice job, obviously a lot of effort put into this answer. +1 Apr 27, 2015 at 3:47
  • it's just the way I think, It took me less than half a second to think out the design. installing minecraft and java afterwards took the most effort for me. thanks!
    – Boomkop3
    Apr 28, 2015 at 20:27

Not the answer you're looking for? Browse other questions tagged .