Script version: 2.6.1
Minecraft version: 1.18.2
Hello there, I can't seem to make this code work:
The purpose of this script is to prevent the player from being killed in lava once, after a cooldown of 5 minutes. I cannot seem to make the if statement comparing two variables, this \/
work. It never seems to be true even if I set {_n} to 1 or higher. This is the one bit of code preventing my script from working.
Minecraft version: 1.18.2
Hello there, I can't seem to make this code work:
Code:
on connect:
set {_n} to 1
on damage of a player:
if damage cause is lava:
set {_h} to victim's health
if {_h} is less than 5:
if {_n} is more than 0:
apply fire resistance to the victim
send "&l&6Second Chance!" to victim
send "" to victim
send "&6You have been given a second chance! Quickly! Escape the lava!" to victim
set {_n} to 0
wait 5 minutes
set {_n} to 1
The purpose of this script is to prevent the player from being killed in lava once, after a cooldown of 5 minutes. I cannot seem to make the if statement comparing two variables, this \/
Code:
if {_n} is more than 0: