Advertisement
Guest User

Commands

a guest
Oct 22nd, 2019
5,626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. By the way, make sure to replace the appropriate names and bossbars with your own.
  2. These all go in the command block chain I made in my video.
  3.  
  4. Commands:
  5.  
  6. execute as @a[scores={rightclick=1..,timer=60..},nbt={SelectedItem:{tag:{display:{Name:"{\"text\":\"Teleporty stick\"}"}}}},nbt={SelectedItem:{id:"minecraft:stick"}}] at @s run tp ^ ^ ^8
  7.  
  8. tellraw @a[scores={timer=60}] ["",{"text":"Teleport ","color":"aqua","hoverEvent":{"action":"show_text","value":["",{"text":"Your ","color":"aqua"},{"text":"Teleport ","bold":true,"color":"green"},{"text":"ability teleports you forward 4 blocks. ","color":"aqua"},{"text":"Cooldown:1s","color":"green"}]}},{"text":"ability ready!","color":"green","hoverEvent":{"action":"show_text","value":["",{"text":"Your ","color":"aqua"},{"text":"Teleport ","bold":true,"color":"green"},{"text":"ability teleports you forward 4 blocks. ","color":"aqua"},{"text":"Cooldown:1s","color":"green"}]}}]
  9.  
  10. execute as @a[scores={timer=60..},nbt={SelectedItem:{tag:{display:{Name:"{\"text\":\"Teleporty stick\"}"}}}},nbt={SelectedItem:{id:"minecraft:stick"}}] run scoreboard players reset @a[scores={timer=60..,rightclick=1}] timer
  11.  
  12. replaceitem entity @a[nbt={SelectedItem:{tag:{display:{Name:"{\"text\":\"Teleporty stick\"}"}}}},nbt={SelectedItem:{id:"minecraft:stick"}}] weapon.offhand minecraft:carrot_on_a_stick 1
  13.  
  14. clear @a[nbt=!{SelectedItem:{tag:{display:{Name:"{\"text\":\"Teleporty stick\"}"}}}},nbt=!{SelectedItem:{id:"minecraft:stick"}}] minecraft:carrot_on_a_stick
  15.  
  16. scoreboard players add @a timer 3
  17.  
  18. execute as @a[name=Your minecraft username,scores={rightclick=1}] run bossbar set minecraft:bossbar value 0
  19.  
  20. execute at @a run playsound minecraft:entity.enderman.teleport hostile @a[scores={rightclick=1,timer=60..}]
  21.  
  22. scoreboard players reset @a[scores={rightclick=1..}] rightclick
  23.  
  24. execute store result bossbar minecraft:bossbar value run scoreboard players get Your_username_here timer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement