Mineuniverse
Mods
Death Location

Death Location

MOD
Tells people their coordinates when they die!
by capitalthree
Download Claim this project
35,975 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Map and Information
Advertisement Remove ads with Premium →

Do you have players?  Do they die?  Do they complain when they don't remember where they were when they died?

 

...Death Location!

 

What does death location do?  It tells people their coordinates when they die.

 

 

What people I made up have to say about death location:

 

"Thanks death location!  I located my death!"

 

"Why doesn't your mod just make me not die?  Asshole."

 

 

Want to see death location ported to your favorite version of minecraft?  Great, have at it!  Here you go!

package capitalthree.deathloc

import net.minecraft.entity.player.EntityPlayerMP
import net.minecraft.util.text.TextComponentString
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.event.entity.living.LivingDeathEvent
import net.minecraftforge.fml.common.Mod.EventHandler
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent
import net.minecraftforge.fml.common.eventhandler.{EventPriority, SubscribeEvent}
import net.minecraftforge.fml.common.Mod

@Mod(modid = "deathlocation", version = "1", name = "DeathLocation", modLanguage = "scala", acceptableRemoteVersions="*")
object DeathLocation {
  @EventHandler def init(e: FMLPreInitializationEvent) = MinecraftForge.EVENT_BUS.register(DieHandler)
}

object DieHandler {
  @SubscribeEvent(priority = EventPriority.LOWEST) def died(e: LivingDeathEvent) = e.getEntity match {
    case player: EntityPlayerMP => player.sendMessage(new TextComponentString(
      s"Death location: ${player.posX.round}, ${player.posY.round}, ${player.posZ.round}"
    ))
    case _ =>
  }
}

 (see github repo for build scripts and such)

DeathLocation-1.12-1.jar
MC 1.12.2
Release 2018-01-27 Get

More from capitalthree

Advertisement Remove ads with Premium →

You Might Also Like