Jump to content

Code not working


Nd_

Recommended Posts

on damage:
      damage cause is potion:
            victim is in world "ul_KitPVP":
                  victim's x coordinate is between -5.5 and 14.5: 
                        victim's z coordinate is between -14 and 8:
                              cancel event

So I found a bug in my server so that if the player was looking at an entity, it would bypass the thing which blocks you from throwing them in spawn and damaging people. So I added this, and it's not working. Does anyone have an Idea of what is happening?

Link to comment
Share on other sites

Try:

on damage:
	damage cause is potion
	victim is in world "ul_KitPVP"
	victim's x coordinate is between -5.5 and 14.5 
	victim's z coordinate is between -14 and 8
	cancel event

Owner of the servers powys, gwent, merthyr, ceredigion and valkyrja.

VIP

I'm very passive-aggressive. IGN: demonitisation

Link to comment
Share on other sites

3 minutes ago, cymraeg said:

Try:


on damage:
	damage cause is potion
	victim is in world "ul_KitPVP"
	victim's x coordinate is between -5.5 and 14.5 
	victim's z coordinate is between -14 and 8
	cancel event

I've tried it and it doesn't work, and idk why

Link to comment
Share on other sites

I realised the problem! See if this works:

on damage:
	victim is a player
	damage cause is potion
	victim is in world "ul_KitPVP"
	victim's x coordinate is between -5.5 and 14.5 
	victim's z coordinate is between -14 and 8
	cancel event

 

Owner of the servers powys, gwent, merthyr, ceredigion and valkyrja.

VIP

I'm very passive-aggressive. IGN: demonitisation

Link to comment
Share on other sites

2 minutes ago, cymraeg said:

I realised the problem! See if this works:


on damage:
	victim is a player
	damage cause is potion
	victim is in world "ul_KitPVP"
	victim's x coordinate is between -5.5 and 14.5 
	victim's z coordinate is between -14 and 8
	cancel event

 

Idk why but it still damages the player.

Link to comment
Share on other sites

Possibly this:

on damage:
	damage was caused by potion
	victim is a player
	victim is in world "ul_KitPVP"
	victim's x coordinate is between -5.5 and 14.5 
	victim's z coordinate is between -14 and 8
	cancel event
  • Like 1

Owner of the servers powys, gwent, merthyr, ceredigion and valkyrja.

VIP

I'm very passive-aggressive. IGN: demonitisation

Link to comment
Share on other sites

1 minute ago, cymraeg said:

Possibly this:


on damage:
	damage was caused by potion
	victim is a player
	victim is in world "ul_KitPVP"
	victim's x coordinate is between -5.5 and 14.5 
	victim's z coordinate is between -14 and 8
	cancel event

Yes, thank you!

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