Home›Java›Mods›Death Location
Death Location
ModsJava

Death Location

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

by capitalthree · on CurseForge

⬇ Download on CurseForge

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)

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.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more