介绍
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)
常见问题
Death Location 支持哪些 Minecraft 版本?
Death Location 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Death Location 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
capitalthree 的其他作品
查看全部 →Lingering Loot
Granularly customize item despawning time and behavior!
BitHop
Hoppers sans lag, for ModJam 2018.1
Tinkered Constructor
A balance fork for the 1.7.10 version of Tinker's Construct
评论
登录后评论和评分