Detect if one player Spleef’d another

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

TACStudios

Member
Apr 21, 2025
10
0
1
I’m working on a spleef games and i give players points for killing others, but i want spleefing others to count as a kill too

My original idea was to check for block break events near 2 players but with the scale the game will end up on i’m worried it might detect the wrong people

How would I go about doing this in a way that will reward successful spleefing without having a player get kill credit if the enemy dies even if they recovered from it

Any help is appreciated please
 
I'm not too sure since I have never made a spleef minigame before but my mind instantly went to trying to do something like this:

- capture the coordinates of where the player died
- capture the block at the coordinates of where the player died
- capture who broke the block at where the player died
- whoever broke the block under the player at those coords should be the person who should get the kill

only thing i can think of atm
 
  • Like
Reactions: TACStudios
cant you just do somthn like this?
Code:
on break of snow block:
    loop all players:
        if loop-player is not event-player:
            if distance between loop-player and event-block <= 2:
                if y-coordinate of loop-player is greater than y-coordinate of event-block:
                    send "&c%event-player% spleefed %loop-player%!" to all players
 
Last edited: