Jump to content

Damage does not have a past state


AgentGamerPro

Recommended Posts

Ive never gotten this error and was wondering what it is and if anyone could help me with it. The error is in the title and here it the line of code

damage wasn't caused by a arrow

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

26 minutes ago, AgentGamerPro said:

Ive never gotten this error and was wondering what it is and if anyone could help me with it. The error is in the title and here it the line of code


damage wasn't caused by a arrow

 

Hello! The damagecause type does not include any reference to arrow, in favor of projectile. See below:
https://skripthub.net/docs/?id=2140

 

An example of a proper comparison:

on damage of player:
  if event-damagecause is not projectile:

 

Hope this helps!

 - Discord: Brim#0768

 

image.png.f1adf348277e390065b8e913c0f185d4.png

 

 

 

Link to comment
Share on other sites

1 minute ago, BurningBrimstone said:

Hello! The damagecause type does not include any reference to arrow, in favor of projectile. See below:
https://skripthub.net/docs/?id=2140

 

An example of a proper comparison:


on damage of player:
  if event-damagecause is not projectile:

 

Hope this helps!

I get no errors but the skript still continues. Heres the skript (Reach Detection)
 

on damage:
	if event-damage cause is not projectile: # This line
		if attacker is player:
			if distance between attacker and victim is greater than {ReachDetection}:
				loop all players where [input has permission "{@UsePermission}"]:
					send "{@Alert} &7%attacker% &7is suspected to be using &aReach &7(%distance between attacker and victim% &7Blocks)" to loop-player

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

4 minutes ago, AgentGamerPro said:

I get no errors but the skript still continues. Heres the skript (Reach Detection)
 


on damage:
	if event-damage cause is not projectile: # This line
		if attacker is player:
			if distance between attacker and victim is greater than {ReachDetection}:
				loop all players where [input has permission "{@UsePermission}"]:
					send "{@Alert} &7%attacker% &7is suspected to be using &aReach &7(%distance between attacker and victim% &7Blocks)" to loop-player

 

You should not have a space between "event-damage" and "cause".

 - Discord: Brim#0768

 

image.png.f1adf348277e390065b8e913c0f185d4.png

 

 

 

Link to comment
Share on other sites

Just now, BurningBrimstone said:

Try reformatting with this:


if damage wasn't caused by projectile:

All of these conditions are working fine on my server. Do you have addons conflicting?

I use SkBee, SkQuerty, SkRayfall, and Skript (of course)
Thanks it works!

  • Like 1

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

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