Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pseudo Randomizer for Minecraft
- SETUP:
- scoreboard objectives add randomizer dummy
- scoreboard players set highnr randomizer 1001100010
- scoreboard players set one randomizer 1
- scoreboard players set nr randomizer **ANY 9 DIGIT NUMBER**
- LOOP:
- scoreboard players operation nr randomizer *= highnr randomizer
- scoreboard players operation nr randomizer += one randomizer
- scoreboard players operation nr randomizer %= highnr randomizer
- scoreboard players operation @a randomizer = nr randomizer
- execute as @a[scores={randomizer=NUMBER}] run COMMAND
- -------------------------------------
- the randomizer will create a 'random' number in between of the maximum and minimum possible value of a minecraft scoreboard.
- to execute a command with a certain chance, just do something like:
- execute as @a[scores={randomizer=999000000..}] run COMMAND
- using this number the command will get executet with an average of about 2 to 5 times per minute (if the command is executet at 20ticks/sec)
- ------------------------------------
- Made by Lugico :D
- Free 2 Use
Add Comment
Please, Sign In to add comment