Advertisement
Littleman9Mew2

Gamemode 4 RNG Scoreboard Concept

Nov 14th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. To Sparks:
  2. I was thinking that since the Sunken Treasure module runs off a Pheudo Random Number Generator. It would be a appropriate to have a standard "RNG" score for any module running this. It would be quite benificial for many GM4 Modules! Including Sunken Treasure!
  3. We can then have modules execute commands when a players' RNG score is a specific value!
  4.  
  5. The First Command Block:
  6.  
  7. /scoreboard objectives add GM4_RNG dummy
  8. --Adds the score
  9.  
  10. The Second Command Block:
  11.  
  12. /scoreboard players add @a GM4_RNG 1
  13. --This adds a score to all Online players an RNG score.
  14.  
  15. The Third Command Block:
  16.  
  17. /scoreboard players operation @a[score_GM4_RNG_min=100] GM4_RNG /= @r[score_GM4_RNG_min=2] GM4_RNG
  18.  
  19. --This is detecting whether or not any players with a score greater than 100 will have their score devided by another random player's score (This includes the player him/herself). Since this detecting off of everyone, the scores never surpass 100. When alone, it resets to 1, since 100/100=1. The more players the more random this value is, but players will never truely know the value anyway!
  20.  
  21. I tried tweaking it be any entity, but there's no "Select Random Entity", it would only select the closest (or furthest) entity and use that score :(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement