Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

A dispenser can simulate dice of up to nine sides by random choice, and there are redstone circuits for simulating six-sided dice. But how do you simulate, say, ten-sided, twelve-sided or twenty-sided dice in Minecraft?

share|improve this question
2  
Hehe, playing Dungeons & Dragons via Minecraft? –  Tom Bombadil Oct 4 '11 at 10:08

1 Answer 1

up vote 4 down vote accepted

You need to create a counter that resets after n ticks, where n is the number of sides on your dice. You can see an overview of creating a counter on Wikipedia. All you need to do is add extra logic so that when the output matches n, it resets the counter to 0.

Hook up your counter to a fast clock with a switch to stop the clock to simulate rolling the dice. The number rolled will be displayed in binary.

share|improve this answer
    
You could use pigs jumping on plates for some actual randomness, rather than timing. –  Nick T Jun 27 at 20:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.