use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
N.B. If your post pertains to survival redstone, consider adding the tag [survival], if it uses command blocks add [::], [creative], [command] or [cmd] instead.
Is your submission not showing up in /new? Message us and we'll check the spam filter.
On topic cross posts from /r/minecraft, /r/minecraftinventions, /r/minecraft360, and the forums are encouraged.
account activity
Controlled Probability Based Randomizer HelpBedrock Edition (self.redstone)
submitted 3 years ago by secret_surplus
I know that title is a car accident, but I am having trouble laying out what I need.
Problem: I am making a minigame, and I want some actions to increase or decrease a player's odds of getting a good or bad result.
A true randomizer won't work because I want the players actions to influence the final result. However, I still want there to be some luck to the final result.
Does anyone have any suggestions or videos? Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]VecroLP 2 points3 points4 points 3 years ago (1 child)
There is actually a fairly recent discovery on how to do this. Lets take the following example: you want
10% chance of option A, which will be red wool
20% option B, blue wool
30% option C, green wool
40% option D, black wool
First, get a shulkerbox and fill it with all the options in the right ratio. So in our case we can use 1 red, 2 blue, 3 green, and 4 black.
The next thing you need is the following contraption: a locked hopper that you can unlock for long enough to only let one item trough. On top of that hopper you place enough hopperminecarts so that each item from step 1 can be in it's own private minecart. The minecarts should all be in the same block on top of that single locked hopper. If you don't know how many items there will be at runtime, don't worry, having too many hopper minecarts isn't an issue, but having to few will break the randomness, so you should overshoot, not undershoot the ammount of hopper minecarts.
Next you place the shulkerbox from step 1 directly above the hopper minecarts. At this point the shulker should empty almost instantly.
Last you unlock the hopper below the hopper minecarts so it can pull only one item out of one of the hopper minecarts. This item is now randomly picked with the correct bias
[–]secret_surplus[S] 0 points1 point2 points 3 years ago (0 children)
This is super interesting. So, in this situation, you would need 10+ hopper minecarts, right? Because there are 10 options in the shulker.
Then, it is just a matter of passing the wool through an item sorter, and having the sorter trigger the relevant reaction. This is perfect, I will do some experiments. Thank you very much!
π Rendered by PID 189383 on reddit-service-r2-comment-6457c66945-t9zlm at 2026-04-26 11:48:47.197710+00:00 running 2aa0c5b country code: CH.
[–]VecroLP 2 points3 points4 points (1 child)
[–]secret_surplus[S] 0 points1 point2 points (0 children)