2

Randomization Ideas?

Malakae 11/29/23 1:10 pm
118
11/30/2023 10:34 pm
Creating an event of sorts for a server and I need a system to randomly choose one of these 12 colors. How can I accomplish this?
Posted by
Malakae
Level 1 : New Miner
0

  Have something to say?

JoinSign in

2

ScotsMiser
11/29/2023 5:45 pm
Level 71 : Legendary Miner
What you are creating is a 1d12 equivalent, assuming you want the chances of picking each color to be equal…

This should be doable with command blocks (but I have never had sufficient interest in them to be able to tell you how).
[​If you want other than equal chances for each color, command blocks are probably the way to go.]

It can also be done with vanilla redstone.
In outline:
Start with 1 dropper loaded with 1 stackable and 1 non-stackable item that puts the item dropped into a locked hopper (pointing back into the dropper).
The variation of signal strength from a comparator 'reading the hopper (either 1 or 3) selects whether the final number is the lower or higher 6-group.


Each 6-group has :
   a dropper loaded with 1 each of six different items.
When activated, the dropped item enters a standard item sorter that determines which of the 6-group colors is selected.

  The signal this produces should also be used to:
    A } briefly unlock the hopper to reset the 1st part,
  AND
    B } return the item from the 6-group to its dropper (either via waterstream to a hopper, or dropper pipe)
      [​I'd tend toward water streams as it avoids needing to clock the dropper pipe.]

Given the size of this contraption, command blocks may be preferred (if available).
1
Malakae
11/30/2023 10:34 pm
Level 1 : New Miner
Command blocks are doable, Just don't know how to go about setting them up.
2

Welcome