Corpse

Corpse - 尸体插件

适用于 1.8-1.21.10 服务器的 Minecraft 尸体。
Bukkit / Spigot 作者 denmeh 支持版本 1.8 - 1.21
服务器使用量
未统计
服务玩家数
未统计
下载量
4,272
插件详细介绍

Corpse 是一个让玩家死亡后在你的服务器上生成“尸体”的插件。它使用 packets 实现,不会把实体真实注册到 Minecraft 服务器中,因此更适合多版本扩展与兼容。

特性

  • 玩家死亡时可生成尸体
  • 仅使用 packets,不注册实际实体
  • 支持为指定玩家生成尸体
  • 支持按半径移除尸体
  • 可配置尸体存在时间
  • 可选择是否在死亡时自动生成
  • 可显示或隐藏尸体名牌
  • 可渲染尸体上的玩家盔甲与物品
  • 支持可拾取尸体掉落物
  • 可设置尸体使用的实体姿势

命令

  • /spawncorpse [Player] - 如果提供玩家名,则为该玩家生成尸体;否则为自己生成尸体。
  • /removecorpse [radius] - 移除你周围一定半径内的尸体。

权限

  • corpses.spawn - 允许使用 /spawncorpse
  • corpses.remove - 允许使用 /removecorpse

安装

  • 将 jar 文件放入 plugins 文件夹。
  • 重启服务器。不要使用 /reload

配置

YAML 示例

## Set in seconds how long the corpse lasts. (-1 or lower for forever.) 
corpse-time: 10

## Sets if corpses spawn on death. (true or false) 
on-death: true

## Show name tags on corpses. (true or false) 
show-tags: false

## Should we render player armor and items on the corpses? 
render-armor: true

## Maximum distance for rendering corps 
corpse-distance: 60

## Lootable corpses 
lootable-corpses: true

## Entity Pose to use for the corpses. 
## Possible values: SLEEPING, SWIMMING 
entity-pose: "SLEEPING"

Source

说明

  • 如果你有反馈,我非常感谢,但请不要发在评论区。
  • 如果你有问题,请直接私信我,或者在 GitHub Issues 中提交报告。

通过插件 API 也可以创建尸体。你可以将插件作为库直接导入,或者通过 Maven/Gradle 使用。

API 使用方式

导入依赖

  • 将插件作为库加入你的项目
  • 或使用 Maven/Gradle

Java 示例

import com.github.unldenis.corpse.corpse.Corpse; 
import com.github.unldenis.corpse.model.CorpseArmor; 

// 在玩家当前位置生成,使用其皮肤和盔甲 
Corpse corpse = Corpse.fromPlayer(player).spawn(); 

// 在指定位置生成 
Corpse corpse = Corpse.fromPlayer(player).location(location).spawn(); 

Corpse corpse = Corpse.fromLocation(location).name(offlinePlayer.getName()).spawn(); 

// 自定义盔甲(使用 CorpseArmor) 
CorpseArmor armor = new CorpseArmor()
        .boots(boots)
        .leggings(leggings)
        .chestplate(chestplate)
        .helmet(helmet); 

Corpse corpse = Corpse.fromPlayer(player).location(location).armor(armor).spawn(); 

Corpse corpse = Corpse.fromLocation(location).name(name).armor(armor).spawn(); 

// 移除尸体 
corpse.destroy(); 

说明

  • Corpse.fromPlayer(player) 会基于玩家创建尸体
  • Corpse.fromLocation(location) 会基于指定位置创建尸体
  • name(...) 可用于设置尸体名称
  • armor(...) 可用于设置自定义盔甲
  • destroy() 用于移除已生成的尸体
测试支持版本
1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.20.6 1.21
版本分布
基本信息
插件名称 Corpse
作者 denmeh
平台 Bukkit / Spigot
支持版本 1.8 - 1.21
点赞数 3
最近版本
暂无数据 -