Advertisement
Guest User

Brovaltine Command Blocks

a guest
Mar 21st, 2015
854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. layout:
  2. [ ][1]
  3. [3][b][4][c][5][r][7][r][8]
  4. [ ][2][ ][ ][6]
  5.  
  6. legend:
  7. [ ] = block
  8. [<number>] = command block with corresponding identifier
  9. [b] = redstone block
  10. [c] = comparator, default
  11. [r] = repeater, default
  12.  
  13. commands:
  14. [1] = /setblock ~ ~-1 ~ redstone_block
  15. [2] = /setblock ~ ~1 ~ air #1 and 2 make up a clock
  16. [3] = /spreadplayers 0 0 100 2000 false @a[x=3000,y=65,z=-3000,r=25,m=0,l=0] #Random spawn command. Actual spawn is 3000 by -3000 in this case, outside of spawn radius, to prevent weird glitches. One is randomly TPd within a 2000 block radius if they are in survival (m=0) and have no XP (l=0).
  17. [4] = /testfor @a[team=] #Activates further circuitry if a brand new player (which would have no team) is detected
  18. [5] = /tellraw @a[team=] ["",{"text":"Insert welcome message here, blah blah.","color":"yellow"}] #Self-explanatory. This is the welcome message; one can add further messages, as we do.
  19. [6] = /tellraw @a[team=mods] ["",{"text":"New player(s) ","color":"gray"},{"selector":"@a[team=]","color":"gray"},{"text":" joined!","color":"gray"}] #This allows the moderators to be notified when a brand new player joins the server.
  20. [7] = /scoreboard teams join default @a[team=] #When the welcome message is complete, all brand new players are assigned to the "default" scoreboard team, and that team is never shown the welcome message again. Having this team is also useful for statistical purposes, as using '/scoreboard teams list default' renders a full list of every player that's ever logged into the server. Additionally, it gives you the number of said players.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement