Home›Java›Mods›Death Ghost [SKRIPT]
Death Ghost [SKRIPT]
ModsJava

Death Ghost [SKRIPT]

Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Deathghost
A Skript-based death system that replaces vanilla death mechanics with custom respawn behavior, spectator mode, and stat tracking.

Features
Dependencies
How it works
Code (Text):
on death of player:
    cancel event
    broadcast hex("&4[☠] &c%victim's prefix%%victim%%victim's suffix% died.")

    set victim's gamemode to spectator
    set victim's fly speed to 0
    wait 1 tick

    set {_dir} to vector from yaw (victim's yaw) and pitch (victim's pitch)
    set victim's velocity to vector({_dir}'s x * -0.5, 0.4, {_dir}'s z * -0.5)

    execute console command "/cmi statsedit %victim% add deaths 1"              #CHANGE THIS IF USING DIFFERENT STATS PLUGIN
    execute console command "/cmi statsedit %attacker% add player_kills 1"      #CHANGE THIS IF USING DIFFERENT STATS PLUGIN

    loop 3 times:
        set {_time} to 3 - loop-number + 1
        if {_time} is 1:
            set {_s} to "second"
        else:
            set {_s} to "seconds"
        send action bar "&4&lRespawning in %{_time}% %{_s}%" to victim
        wait 1 second


    teleport victim to spawn location of world of victim
    set victim's gamemode to survival
    heal victim
    set victim's fly speed to 0.1
Configuration
Change the stat commands if using a different stats plugin:

How To Install
  1. Place Deathghost.sk in your plugins/Skript/scripts folder.
  2. Ensure you have Skript and CMI installed.
  3. Run /skript reload Deathghost in-game or from console.
Notes
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Death Ghost [SKRIPT] is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 48 times (via Spigot). Download it and open it directly in the game.

Explore more