Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # speech output: 100
- # by Plagiatus
- #
- # Copy this into your Commandblock. Make sure the points you want to say are in a scoreboard objective named "points"
- summon MinecartCommandBlock ~ ~.6 ~ {
- Command:kill @e[type=MinecartCommandBlock,r=1],Riding:{
- Command:/kill @e[type=ArmorStand,name=20hz_p_s,r=5],id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.1 @a[score_20hz_points_min=1,score_20hz_points=1] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.2 @a[score_20hz_points_min=2,score_20hz_points=2] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.3 @a[score_20hz_points_min=3,score_20hz_points=3] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.4 @a[score_20hz_points_min=4,score_20hz_points=4] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.5 @a[score_20hz_points_min=5,score_20hz_points=5] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.6 @a[score_20hz_points_min=6,score_20hz_points=6] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.7 @a[score_20hz_points_min=7,score_20hz_points=7] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.8 @a[score_20hz_points_min=8,score_20hz_points=8] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/playsound custom.9 @a[score_20hz_points_min=9,score_20hz_points=9] ~ ~ ~ 1 1 1,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard players operation @a[] 20hz_points /= @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_100,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard players operation @a[] 20hz_points %= @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_1000,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard players operation @a[] 20hz_points = @a[] points,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_1000 1000,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_100 100,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_10 10,id:MinecartCommandBlock,Riding:{
- Command:/summon ArmorStand ~ ~1 ~ {CustomName:"20hz_p_s",Small:1,Invisible:1,NoGravity:1},id:MinecartCommandBlock,Riding:{
- Command:/scoreboard objectives add 20hz_1000 dummy,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard objectives add 20hz_100 dummy,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard objectives add 20hz_10 dummy,id:MinecartCommandBlock,Riding:{
- Command:/scoreboard objectives add 20hz_points dummy,id:MinecartCommandBlock,Riding:{
- Block:activator_rail,Time:1,DropItem:0,id:FallingSand
- }}}}}}}}}}}}}}}}}}}}}}}
- #
- # Run this command 4 ticks (one full repeater) after the thing above
- #
- /playsound custom.100 @a[score_20hz_points_min=1,score_20hz_points=9] ~ ~ ~ 1 1 1
- #
- #
- #
- # And here is all the commands without the crazy CommandblockMinecart stuff around it for anyone interested.
- #
- /scoreboard objectives add 20hz_points dummy
- /scoreboard objectives add 20hz_10 dummy
- /scoreboard objectives add 20hz_100 dummy
- /scoreboard objectives add 20hz_1000 dummy
- /summon ArmorStand ~ ~1 ~ {CustomName:"20hz_p_s",Small:1,Invisible:1,NoGravity:1}
- /scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_10 10
- /scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_100 100
- /scoreboard players set @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_1000 1000
- /scoreboard players operation @a[] 20hz_points = @a[] points
- /scoreboard players operation @a[] 20hz_points %= @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_1000
- /scoreboard players operation @a[] 20hz_points /= @e[type=ArmorStand,name="20hz_p_s",r=2] 20hz_100
- /playsound custom.9 @a[score_20hz_points_min=9,score_20hz_points=9] ~ ~ ~ 1 1 1
- /playsound custom.8 @a[score_20hz_points_min=8,score_20hz_points=8] ~ ~ ~ 1 1 1
- /playsound custom.7 @a[score_20hz_points_min=7,score_20hz_points=7] ~ ~ ~ 1 1 1
- /playsound custom.6 @a[score_20hz_points_min=6,score_20hz_points=6] ~ ~ ~ 1 1 1
- /playsound custom.5 @a[score_20hz_points_min=5,score_20hz_points=5] ~ ~ ~ 1 1 1
- /playsound custom.4 @a[score_20hz_points_min=4,score_20hz_points=4] ~ ~ ~ 1 1 1
- /playsound custom.3 @a[score_20hz_points_min=3,score_20hz_points=3] ~ ~ ~ 1 1 1
- /playsound custom.2 @a[score_20hz_points_min=2,score_20hz_points=2] ~ ~ ~ 1 1 1
- /playsound custom.1 @a[score_20hz_points_min=1,score_20hz_points=1] ~ ~ ~ 1 1 1
- /kill @e[type=ArmorStand,name=20hz_p_s,r=5]
Advertisement
Add Comment
Please, Sign In to add comment