I need a skript that detects if a specific player is in water or a waterlogged block, and if they are, it damages them.
I have a skript that will detect if a player is in water when they move, and if they are, it damages them. This is my current skript:
on any move:
if name of player is not "JackWill6672":
stop
else:
block at player is seagrass
damage player by 5
on any move:
if name of player is not "JackWill6672":
stop
else:
block at player is water
damage player by 5
on any move:
if name of player is not "JackWill6672":
stop
else:
block at player is tall seagrass
damage player by 5
I want to make it always be checking, even when the player does not move, and I also want to have it detect if a player is in a waterlogged block. Thanks in advance!
Question
DerpyJack21
I need a skript that detects if a specific player is in water or a waterlogged block, and if they are, it damages them.
I have a skript that will detect if a player is in water when they move, and if they are, it damages them. This is my current skript:
on any move:
if name of player is not "JackWill6672":
stop
else:
block at player is seagrass
damage player by 5
on any move:
if name of player is not "JackWill6672":
stop
else:
block at player is water
damage player by 5
on any move:
if name of player is not "JackWill6672":
stop
else:
block at player is tall seagrass
damage player by 5
I want to make it always be checking, even when the player does not move, and I also want to have it detect if a player is in a waterlogged block. Thanks in advance!
Link to comment
Share on other sites
15 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now