Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- By the way, make sure to replace the appropriate names and bossbars with your own.
- These all go in the command block chain I made in my video.
- Commands:
- 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
- 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"}]}}]
- 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
- replaceitem entity @a[nbt={SelectedItem:{tag:{display:{Name:"{\"text\":\"Teleporty stick\"}"}}}},nbt={SelectedItem:{id:"minecraft:stick"}}] weapon.offhand minecraft:carrot_on_a_stick 1
- clear @a[nbt=!{SelectedItem:{tag:{display:{Name:"{\"text\":\"Teleporty stick\"}"}}}},nbt=!{SelectedItem:{id:"minecraft:stick"}}] minecraft:carrot_on_a_stick
- scoreboard players add @a timer 3
- execute as @a[name=Your minecraft username,scores={rightclick=1}] run bossbar set minecraft:bossbar value 0
- execute at @a run playsound minecraft:entity.enderman.teleport hostile @a[scores={rightclick=1,timer=60..}]
- scoreboard players reset @a[scores={rightclick=1..}] rightclick
- 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