Plagiatus

Speech Output: hundrets (100)

Aug 27th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # speech output: 100
  2. # by Plagiatus
  3. #
  4. # Copy this into your Commandblock. Make sure the points you want to say are in a scoreboard objective named "points"
  5.  
  6. summon MinecartCommandBlock ~ ~.6 ~ {
  7.     Command:kill @e[type=MinecartCommandBlock,r=1],Riding:{
  8.     Command:/kill @e[type=ArmorStand,name=20hz_p_s,r=5],id:MinecartCommandBlock,Riding:{
  9.     Command:/playsound custom.1 @a[score_20hz_points_min=1,score_20hz_points=1] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  10.     Command:/playsound custom.2 @a[score_20hz_points_min=2,score_20hz_points=2] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  11.     Command:/playsound custom.3 @a[score_20hz_points_min=3,score_20hz_points=3] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  12.     Command:/playsound custom.4 @a[score_20hz_points_min=4,score_20hz_points=4] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  13.     Command:/playsound custom.5 @a[score_20hz_points_min=5,score_20hz_points=5] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  14.     Command:/playsound custom.6 @a[score_20hz_points_min=6,score_20hz_points=6] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  15.     Command:/playsound custom.7 @a[score_20hz_points_min=7,score_20hz_points=7] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  16.     Command:/playsound custom.8 @a[score_20hz_points_min=8,score_20hz_points=8] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  17.     Command:/playsound custom.9 @a[score_20hz_points_min=9,score_20hz_points=9] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
  18.     Command:/scoreboard players operation @a[] 20hz_points /= @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_100,id:MinecartCommandBlock,Riding:{
  19.     Command:/scoreboard players operation @a[] 20hz_points %= @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_1000,id:MinecartCommandBlock,Riding:{
  20.     Command:/scoreboard players operation @a[] 20hz_points = @a[] points,id:MinecartCommandBlock,Riding:{
  21.     Command:/scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_1000 1000,id:MinecartCommandBlock,Riding:{
  22.     Command:/scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_100 100,id:MinecartCommandBlock,Riding:{
  23.     Command:/scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_10 10,id:MinecartCommandBlock,Riding:{
  24.     Command:/summon ArmorStand ~ ~1 ~ {CustomName:"20hz_p_s",Small:1,Invisible:1,NoGravity:1},id:MinecartCommandBlock,Riding:{
  25.     Command:/scoreboard objectives add 20hz_1000 dummy,id:MinecartCommandBlock,Riding:{
  26.     Command:/scoreboard objectives add 20hz_100 dummy,id:MinecartCommandBlock,Riding:{
  27.     Command:/scoreboard objectives add 20hz_10 dummy,id:MinecartCommandBlock,Riding:{
  28.     Command:/scoreboard objectives add 20hz_points dummy,id:MinecartCommandBlock,Riding:{
  29.     Block:activator_rail,Time:1,DropItem:0,id:FallingSand
  30. }}}}}}}}}}}}}}}}}}}}}}}
  31.  
  32.  
  33. #
  34. # Run this command 4 ticks (one full repeater) after the thing above
  35. #
  36.  
  37. /playsound custom.100 @a[score_20hz_points_min=1,score_20hz_points=9] ~ ~ ~ 1 1 1
  38.  
  39.  
  40.  
  41.  
  42. #
  43. #
  44. #
  45. # And here is all the commands without the crazy CommandblockMinecart stuff around it for anyone interested.
  46. #
  47.  
  48. /scoreboard objectives add 20hz_points dummy
  49. /scoreboard objectives add 20hz_10 dummy
  50. /scoreboard objectives add 20hz_100 dummy
  51. /scoreboard objectives add 20hz_1000 dummy
  52.  
  53. /summon ArmorStand ~ ~1 ~ {CustomName:"20hz_p_s",Small:1,Invisible:1,NoGravity:1}
  54.  
  55. /scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_10 10
  56. /scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_100 100
  57. /scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_1000 1000
  58.  
  59. /scoreboard players operation @a[] 20hz_points = @a[] points
  60. /scoreboard players operation @a[] 20hz_points %= @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_1000
  61. /scoreboard players operation @a[] 20hz_points /= @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_100
  62.  
  63. /playsound custom.9 @a[score_20hz_points_min=9,score_20hz_points=9] ~ ~ ~ 1 1 1
  64. /playsound custom.8 @a[score_20hz_points_min=8,score_20hz_points=8] ~ ~ ~ 1 1 1
  65. /playsound custom.7 @a[score_20hz_points_min=7,score_20hz_points=7] ~ ~ ~ 1 1 1
  66. /playsound custom.6 @a[score_20hz_points_min=6,score_20hz_points=6] ~ ~ ~ 1 1 1
  67. /playsound custom.5 @a[score_20hz_points_min=5,score_20hz_points=5] ~ ~ ~ 1 1 1
  68. /playsound custom.4 @a[score_20hz_points_min=4,score_20hz_points=4] ~ ~ ~ 1 1 1
  69. /playsound custom.3 @a[score_20hz_points_min=3,score_20hz_points=3] ~ ~ ~ 1 1 1
  70. /playsound custom.2 @a[score_20hz_points_min=2,score_20hz_points=2] ~ ~ ~ 1 1 1
  71. /playsound custom.1 @a[score_20hz_points_min=1,score_20hz_points=1] ~ ~ ~ 1 1 1
  72.  
  73.  
  74. /kill @e[type=ArmorStand,name=20hz_p_s,r=5]
Advertisement
Add Comment
Please, Sign In to add comment