Hi, I need to know if there is any way to detect if the player or entity stops sprinting after it has started sprinting, which is detectable with on player sprint. I also need to know how to detect if the player or entity has its walk speed at a certain speed (if walk speed of player is higher then xx, didn't work for me).
Code:
command /emerald:
trigger:
give emerald named "&5Speedy Emerald" with lore "&4Dangerous" to the player
on any movement:
event-entity is player:
if event-entity is sprinting:
player is holding an emerald named "&5Speedy Emerald" with lore "&4Dangerous"
#apply speed tier 2 to player for 15 seconds
set the walk speed of event-entity to 4
message "Emerald Sprint"
stop