Jump to content

Toggle water "(custom)"


Mrbizarre

Recommended Posts

made this cool toggle water skript for someone so i thought i would leak it

 

options:
    prefix: YOURSERVER
    permission: PERMISSION
            
            
command /togglewaterdmg:
    permission: {@permission}
    permission message: {@prefix} No permission!
    trigger:
        if {waterdamage} is true:
            set {waterdamage} to false
            send "{@prefix} &aSuccessfully toggled water damage to: &3&lOFF"
            stop
        if {waterdamage} is false:
            set {waterdamage} to true
            send "{@prefix} &aSuccessfully toggled water damage to: &3&lON"
            stop
            
on walk on water:
    if {waterdamage} is true:
        remove 2 from player's health
    else if {waterdamage} is false:
        heal the player
        stop
        
        
        
on break of water:
    if {waterdamage} is true:
        cancel event
        send "{@prefix} &cYou can't pick up water!"

Edited by Mrbizarre
Link to comment
Share on other sites

On 12/4/2021 at 6:33 PM, Mrbizarre said:

made this cool toggle water skript for someone so i thought i would leak it

 

options:
    prefix: YOURSERVER
    permission: PERMISSION
            
            
command /togglewaterdmg:
    permission: {@permission}
    permission message: {@prefix} No permission!
    trigger:
        if {waterdamage} is true:
            set {waterdamage} to false
            send "{@prefix} &aSuccessfully toggled water damage to: &3&lOFF"
            stop
        if {waterdamage} is false:
            set {waterdamage} to true
            send "{@prefix} &aSuccessfully toggled water damage to: &3&lON"
            stop
            
on walk on water:
    if {waterdamage} is true:
        remove 2 from player's health
    else if {waterdamage} is false:
        heal the player
        stop
        
        
        
on break of water:
    if {waterdamage} is true:
        cancel event
        send "{@prefix} &cYou can't pick up water!"

This is cool!

Just a question: does skript really think when you pick up water you are breaking the water? xD I just want to know if this is true

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

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...