Death Location
Modby capitalthree
Tells people their coordinates when they die!
Description
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)
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Elliemore's Deep waters
Mermaids dimension
Mushroom Illager
Adds a Mushroom Illager House and Mob to the Darkforest
JAFFA Foods (A HarvestCraft Addon)
JAFFA (Just Another Fun Food Addon) is a mod that adds even more food to HarvestCraft!
NHAVE's Core
The core containing common functions used by my mods.
Tree Physics
Cutting down Trees causes them to fall realistically, thanks to Sable's Physics.
Grim kingdoms: Vanilla Edition
Adds Castles - Both mod versions are vanilla, this version simply removes hidden unique vanilla items