ModsJava
Death Ghost [SKRIPT]
Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotDeathghost
A Skript-based death system that replaces vanilla death mechanics with custom respawn behavior, spectator mode, and stat tracking.
Features
Configuration
Change the stat commands if using a different stats plugin:
A Skript-based death system that replaces vanilla death mechanics with custom respawn behavior, spectator mode, and stat tracking.
Features
- Custom death broadcast message with player prefix and suffix
- Players become spectators on death with knockback effect
- Automatic respawn countdown (3 seconds)
- Integration with CMI stats plugin for death and kill tracking
- Players teleport to spawn on respawn
- Full health restoration after respawn
- Skript
- CMI (for stat tracking) or compatible stats plugin
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
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
Change the stat commands if using a different stats plugin:
- Replace /cmi statsedit %victim% add deaths 1 with your stats command for death tracking
- Replace /cmi statsedit %attacker% add player_kills 1 with your stats command for kill tracking
- Place Deathghost.sk in your plugins/Skript/scripts folder.
- Ensure you have Skript and CMI installed.
- Run /skript reload Deathghost in-game or from console.
- Death messages use hex color codes for styling.
- Players retain their position but are knocked back on death.
- Respawn countdown is displayed via action bar.
- Customize the spawn location by modifying the teleport command.
- Test on a test server before deploying to production.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.