Simple RNG Plugin

Upvotes: 48
Supported MCreator versions
2021.1
EAP 2021.3.49312
Tags / plugin type
Procedures
Plugin forum topic
Simple RNG plugin icon
About the plugin

This is a small plugin for easier randomization. It adds the following procedure blocks:

  • Random integer between 0 and [number] (included)
  • Random boolean
  • Random number with normal distribution
  • Biome noise at X Z (1.14+)
  • Random block from block tag (1.14+)
  • Random item from item tag (1.14+)
  • Random direction (for version below 1.5)

Version 1.5

  • Requires the latest 2021.3 snapshot
  • Added support for Forge 1.17.1
  • Removed the Random direction procedure as it is now included in the core plugin
  • Added an "unsafe" option for Random block/item from tag. This will make the code cleaner, but won't do checks for empty tags. Use at your own risk!

Supported generators: Forge 1.12.2, 1.14.4, 1.15.2, 1.16.5, 1.17.1 (version 1.5+)


Plugin downloads
Attachment Size
Version below 2021.311.64 KB 11.64 KB
Version 1.5 - for 2021.3 and above14.29 KB 14.29 KB

Comments

Hello, I would like to ask you for permission to add your plugin inside MCreator's core for final 2020.5. Please answer me ASAP.

It's not confusing, it's inconvenient. For an example we have 100 random things, that can happen, we use random system from core, we need to make something like:
if var smaller than 0.01, but bigger than 0
do
and so on.
But what if I want to add 101st thing?!
Well, I would have to change numbers in EVERY field, there's like 200 of them and divide 1 into 101 piece and add that number to every last number.
I would have to do that every time I add something new.
That's pretty inconvienent, isn't it?

Margoxa, just use local variable instead 100, 101, etch.
In the start of procedure set local variable's value to 101 (or any other value), so by that you can change numbers by changing single value! :D
For dividing you actually do same thing, but instead it should be (1/{LOCAL VARIABLE HERE})

I hope I explained it good

i needed this sooooo bad. anyways, can i put this plugin in minecraftmodZmaker?

I love this but the only thing I Use from it is the random block, or item.

how do i download this? i tried to in the mcreator plugins management page but it would not appear. i resintalled mcreator but that did nothing. other plugins work just fine but not this one

Why is it not working for me?

I'm using 2021.1 and downloaded the newest version of this plugin

Hello, please update this plugin for Mcreator 2021.2. Since i updated Mcreator, my mod is completely broken due to some procedures using this plugin, I can't modify them and when i try changing things up, it breaks even more I hope an update to this plugin would fix this problem ;~;.
Sorry, thanks in any cases

here's hoping 1.17 gets supported now that it's out...