Disable PVP

BurntRanch

New member
Joined
May 19, 2023
Messages
8
how do you not know how to disable pvp in spawn?
simply think about what the code should do, when and in what conditions and lay it in steps
e.g. "when the player hits someone, if the player is near the spawn, prevent them from hitting."
then scour all of the code blocks that seem relevant and try to find the one you want.
 

XMohammadMinerX

New member
Joined
Sep 23, 2023
Messages
2
Do you think I'm that stupid?
I checked all the codes
I entered a code so that if the player damages the player, it should be like this, but I did not find anything for the next command to prevent the fight.

Please explain to me how to block pvp in a place
 

BurntRanch

New member
Joined
May 19, 2023
Messages
8
@XMohammadMinerX
1. Yes, Because you replied in a quote block.
2. You were probably expecting a "Stop Hit" block, That doesn't exist, Look closely for a code block, maybe one related to events? one that could, stop/cancel events?
 
Top