Minecraft Maps / Redstone Device

Fastest Possible Randomiser (20x per second)

  • 801 views, 2 today
  • 3
  • 0
  • 3
OmegaCraftable's Avatar OmegaCraftable
Level 17 : Journeyman Engineer
1
Here I show you how to create a randomiser that is super quick and uses commands blocks and spawners to produce 20 results in a second!

I also wrote a program to aid with the process. It generates the data tags of the spawners used in the system:

Windows Download: http://www.mediafire.com/download/k015bmtw3q0h0m0/OmegaRandomisable_v1.0.zip
OSX Download: http://www.mediafire.com/download/1i54dpw7769xbpp/OmegaRandomisable+v1.0+PORT.zip
(Thanks to @WireSegal on Twitter for porting the program to OSX)

If you find any bugs with the Windows version of the program, report them to me (OmegaCraftable).
If you find any bugs with the OSX version of the program, report it to me and WireSegal.
Contact me at my youtube page, or twitter page and contact WireSegal at his Twitter page.

Tutorial:
  • Create a fill clock, and attach the number of command blocks that you want outcomes.
  • In all of these command blocks write command: "kill @e[type=FallingSand,r=1]".
  • Then create some dummy scoreboards objectives, one for each outcome. (In this example, I will use rand1, rand2, rand3 and ect for the names of these objectives)
  • Now you need to use the stats command so that each objective tracks the success of the command blocks.
  • To start this stand on the first command block and type: "/stats block ~ ~-1 ~ set AffectedEntities @p rand1".
  • Then repeat this process for the rest of command blocks, aligning the appropriate command blocks with the respective objecives. In example, for the second command block, type the same as for the first one except attach it to rand2, not rand1.
  • Next run the program I wrote, this is where the positions next to the command blocks become neccessary. Input the various positions and weights of each outcome and then get the data tag.
  • This will put the tag in your clipboard so that you can directly paste it into a command block. If you are on Windows, a file within the dist folder called "datatag.txt" will also appear with the tag written in it. If you are on Mac the tag will be put on your home directory and the "datatag.txt" will appear in the specified location.
  • The go to where you want the spawner to be located and type: "/setblock ~ ~ ~ mob_spawner 0 replace", and then paste the data tag.
  • You should see the spawner start placing falling sand entities in the appropriate positions. The last thing is using the output, to do that target a player with a minimum score of 1 for the outcome you're testing. For example, if you want to check to see if the outcome was 1 you type: "@p[score_rand1_min=1]", if you want to check if the outcome was 2 you type: "@p[score_rand2_min=1]", and so on and so forth.
That's the general gist, if you want a further explanation check the video.

Relevant Links:

Download MCEdit : www.mcedit.net/
Sethbling's MCEdit filters : sethbling.com/downloads/mcedit-filters/
Texelef's Filters : elemanser.com/filters.html
Follow me on Twitter: twitter.com/OmegaCraftable

For more awesome content, subscribe to my channel!


Made by:
ΩmegaCraftble
CreditYouTube user Naverb first developed the concept
Progress100% complete
Tags

Create an account or sign in to comment.

1
09/14/2014 7:04 pm
Level 38 : Artisan Programmer
deadrecon98
deadrecon98's Avatar
Sadly there is no 100% random on computers due to it all being done by an algorithm. Nice work though, I was wondering how this could be done in mc!
1
09/14/2014 8:09 pm
Level 17 : Journeyman Engineer
OmegaCraftable
OmegaCraftable's Avatar
Haha yeah I know it's just sudo-random, but it's the best we can get without involving radioactive decay and other quantum processes! :P
1
09/15/2014 5:37 pm
Level 38 : Artisan Programmer
deadrecon98
deadrecon98's Avatar
xD I hear you, if only we had some of that.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome