promotional bannermobile promotional banner

Death Location

Tells people their coordinates when they die!

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)

The Death Location Team

profile avatar
  • 3
    Followers
  • 5
    Projects
  • 813.7K
    Downloads

More from capitalthreeView all

  • MatterLink project image

    MatterLink

    • 17.4K
    • Mods

    Simple bridge between Minecraft, Mattermost, IRC, XMPP, Gitter, Slack, Discord, Telegram, Rocket.Chat, Hipchat(via xmpp), Matrix and Steam.

    • 17.4K
    • April 9, 2020
    • Mods
    • +1
  • Lingering Loot project image

    Lingering Loot

    • 743.7K
    • Mods

    Granularly customize item despawning time and behavior!

    • 743.7K
    • April 13, 2019
    • Mods
  • BitHop project image

    BitHop

    • 118.2K
    • Mods

    Hoppers sans lag, for ModJam 2018.1

    • 118.2K
    • April 18, 2018
    • Mods
    • +3
  • BTFU continuous rsync incremental backup project image

    BTFU continuous rsync incremental backup

    • 6.9K
    • Mods

    Fire-and-forget continuous server backup for the masses

    • 6.9K
    • February 25, 2018
    • Mods
  • MatterLink project image

    MatterLink

    • 17.4K
    • Mods

    Simple bridge between Minecraft, Mattermost, IRC, XMPP, Gitter, Slack, Discord, Telegram, Rocket.Chat, Hipchat(via xmpp), Matrix and Steam.

    • 17.4K
    • April 9, 2020
    • Mods
    • +1
  • Lingering Loot project image

    Lingering Loot

    • 743.7K
    • Mods

    Granularly customize item despawning time and behavior!

    • 743.7K
    • April 13, 2019
    • Mods
  • BitHop project image

    BitHop

    • 118.2K
    • Mods

    Hoppers sans lag, for ModJam 2018.1

    • 118.2K
    • April 18, 2018
    • Mods
    • +3
  • BTFU continuous rsync incremental backup project image

    BTFU continuous rsync incremental backup

    • 6.9K
    • Mods

    Fire-and-forget continuous server backup for the masses

    • 6.9K
    • February 25, 2018
    • Mods