Jump to content

Making it so when you stop, you take damage, but only at certain times


OsmiumJ

Recommended Posts

every 2 seconds:
    damage all players by 2 where [input is not sprinting]

Sorry but this is the closest I could get to how you want your Script to function. 

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Link to comment
Share on other sites

Thanks, it works well, but i tried incorporating this into the skript i needed, yet it went pretty badly wrong. My idea is if the player is at spawn, they wont get hurt by the damage, but if they are outside of spawn, they do. For my example i used right clicking on bedrock just for testing. (Please forgive me im new to skript at the moment)

on right click with bedrock:
  if {Nosprintdamage} is false:
    set {Nosprintdamage} to true
  else:
    set {Nosprintdamage} to false
if {Nosprintdamage} is false:
  every 2 seconds:
    damage all players by 2 where [input is not sprinting]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...