Mebahel 的骷髅复活
击杀骷髅并不总是意味着战斗的终结。
当骷髅或凋零骷髅死亡时,它有一定几率(可在配置中调整)留下一颗活体头颅。这颗头颅会立即试图逃离附近的玩家和生物。如果无人及时摧毁它,它会停下来播放复活动画,并将原来的生物复活。
这给战斗带来了一些微妙但明显的变化:你可以追击头颅以彻底完成任务,或者无视它并冒着几秒后再次与骷髅战斗的风险。
依赖项
Forge / NeoForge
- Sinytra Connector
- Forgified Fabric API
- GeckoLib
Fabric
工作原理
- 普通骷髅和凋零骷髅拥有独立的复活几率。
- 活体头颅会保持正确的骷髅或凋零骷髅外观。
- 头颅会保留原生物的自定义名称、激活的状态效果和头部栏物品(包括附魔)。这些属性在复活后将传递给复活的生物。
- 默认情况下,复活的生物无法通过死亡再次生成活体头颅。如果你希望实现无限复活循环,可以在配置文件中禁用此保护。
- 默认情况下,由刷怪箱生成的生物会被忽略,但这可以在配置中进行更改。
- 在计时器结束前可以击杀该头颅。它拥有独立的生命值、掉落物和动画。
- 模组添加的实体可以通过实体列表配置文件使用相同的系统。
配置
两个配置文件在游戏首次启动后创建。它们位于:
config/mebahels-skeleton-revival/
编辑后请重启游戏或服务器。
主要设置
文件:mebahels-skeleton-revival_config.json
{
"skeletonHeadSpawnRate": 12,
"witherSkeletonHeadSpawnRate": 12,
"timeBeforeRevival": 140,
"skeletonHeadHealthPercentage": 40,
"reanimatedEntitiesCanSpawnHeads": false,
"skeletonHeadTakesFallDamage": false,
"skeletonHeadShouldDropExperience": true,
"respawnedEntityShouldDropExperience": true,
"respawnedEntityShouldDropItem": true,
"canSpawnFromSpawner": false
}
skeletonHeadSpawnRate: 几率,范围从0到100,表示骷髅列表中的实体在死亡时生成活体头颅的概率。witherSkeletonHeadSpawnRate: 针对凋零骷髅列表中实体的相同设置。timeBeforeRevival: 头颅复活其原始生物前的时间,单位为刻(ticks)。Minecraft 每秒运行 20 刻,因此默认值140相当于 7 秒。低于30的值将被重置为默认值。skeletonHeadHealthPercentage: 活体头颅生命值占原始生物最大生命值的百分比,范围从1到100。默认值40使头颅拥有原始生物最大生命值的 40%。reanimatedEntitiesCanSpawnHeads: 设置为true时,复活的生物在死亡时可以生成另一个活体头颅,允许复活循环无限继续。skeletonHeadTakesFallDamage: 控制活体头颅是否受到跌落伤害。skeletonHeadShouldDropExperience: 控制活体头颅是否可以掉落经验值。respawnedEntityShouldDropExperience: 控制复活的生物在被再次击杀时是否可以掉落经验值。respawnedEntityShouldDropItem: 控制复活的生物在被再次击杀时是否可以掉落其正常的战利品。canSpawnFromSpawner: 设置为true时,由刷怪箱生成的生物也可以留下活体头颅。
超出 0 到 100 范围的生成率将被替换为其默认值 12。
添加其他实体
文件:entity-type-that-should-spawn-head_config.json
{
"skeletonHeadEntities": [
"minecraft:skeleton",
"modid:custom_archer"
],
"witherSkeletonHeadEntities": [
"minecraft:wither_skeleton",
"modid:dark_knight"
]
}
将实体 ID 添加到其中一个列表中即可将其纳入复活系统。skeletonHeadEntities 中的条目会生成普通骷髅头颅,而 witherSkeletonHeadEntities 中的条目会生成凋零骷髅头颅。复活的生物类型与最初死亡的实体类型相同,包括其他模组添加的实体。
实体 ID 使用 namespace:entity_name 格式。例如,原版骷髅是 minecraft:skeleton。添加来自其他模组的实体时,你需要使用其确切的注册 ID。
反馈与支持
该模组仍在开发中。欢迎在 Discord 服务器 提交错误报告、平衡性反馈和兼容性建议。
Mebahel's Skeleton Revival
Killing a skeleton is no longer always the end of the fight.
When a Skeleton or Wither Skeleton dies, it has a configurable chance to leave behind a living skull. The skull immediately tries to escape from nearby players and creatures. If nobody destroys it in time, it stops, plays its revival animation, and brings the original mob back.
This adds a small but noticeable change to combat: you can chase the skull to finish the job, or ignore it and risk fighting the skeleton again a few seconds later.
Dependencies
Forge / NeoForge
- Sinytra Connector
- Forgified Fabric API
- GeckoLib
Fabric
How it works
- Skeletons and Wither Skeletons have separate revival chances.
- The living skull keeps the correct Skeleton or Wither Skeleton appearance.
- The skull carries the original mob's custom name, active status effects and head-slot item, including its enchantments. These are passed back to the revived mob.
- Revived mobs cannot create another living skull by default. This protection can be disabled in the config if you want an unlimited revival cycle.
- Mobs created by spawners are ignored by default, but this can be changed in the config.
- The skull can be killed before the timer ends. It has its own health, loot and animations.
- Modded living entities can use the same system through the entity-list config.
Configuration
Both config files are created after the game is launched once. They can be found in:
config/mebahels-skeleton-revival/
Restart the game or server after editing them.
Main settings
File: mebahels-skeleton-revival_config.json
{
"skeletonHeadSpawnRate": 12,
"witherSkeletonHeadSpawnRate": 12,
"timeBeforeRevival": 140,
"skeletonHeadHealthPercentage": 40,
"reanimatedEntitiesCanSpawnHeads": false,
"skeletonHeadTakesFallDamage": false,
"skeletonHeadShouldDropExperience": true,
"respawnedEntityShouldDropExperience": true,
"respawnedEntityShouldDropItem": true,
"canSpawnFromSpawner": false
}
skeletonHeadSpawnRate: chance, from0to100, for an entity in the Skeleton list to create a living skull when it dies.witherSkeletonHeadSpawnRate: same setting for entities in the Wither Skeleton list.timeBeforeRevival: time before the skull revives its original mob, in ticks. Minecraft runs at 20 ticks per second, so the default value of140is 7 seconds. Values below30are reset to the default.skeletonHeadHealthPercentage: living skull health as a percentage of the original mob's maximum health, from1to100. The default value of40gives a skull 40% of the original mob's maximum health.reanimatedEntitiesCanSpawnHeads: when set totrue, revived mobs can create another living skull when they die, allowing the revival cycle to continue indefinitely.skeletonHeadTakesFallDamage: controls whether living skulls take fall damage.skeletonHeadShouldDropExperience: controls whether a living skull can drop experience.respawnedEntityShouldDropExperience: controls whether the revived mob can drop experience when killed again.respawnedEntityShouldDropItem: controls whether the revived mob can drop its normal loot when killed again.canSpawnFromSpawner: when set totrue, mobs created by spawners can also leave living skulls behind.
Spawn rates outside the 0 to 100 range are replaced with their default value of 12.
Adding other entities
File: entity-type-that-should-spawn-head_config.json
{
"skeletonHeadEntities": [
"minecraft:skeleton",
"modid:custom_archer"
],
"witherSkeletonHeadEntities": [
"minecraft:wither_skeleton",
"modid:dark_knight"
]
}
Add an entity ID to one of these lists to include it in the revival system. Entries in skeletonHeadEntities create a regular skeleton skull, while entries in witherSkeletonHeadEntities create a wither skeleton skull. The revived creature is the same entity type that originally died, including entities added by other mods.
Entity IDs use the namespace:entity_name format. For example, the vanilla Skeleton is minecraft:skeleton. You will need the exact registered ID when adding an entity from another mod.
Feedback and support
The mod is still being developed. Bug reports, balance feedback and compatibility suggestions are welcome on the Discord server.
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mebahel's Skeleton Revival
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Mebahel 的骷髅复活 v1.1.0
此更新为活体头颅赋予了更多个性,并添加了玩家请求的多个选项。头颅现在保留了来自其来源生物的重要细节,同时服务器管理员可以更好地控制复活的平衡性、掉落物以及刷怪笼的行为。
新功能
- 活体头颅现在会保留原始生物的自定义名称。
- 活动状态效果会被转移到头骨上。剩余持续时间继续倒计时,且任何仍处于激活状态的效果都会传递回复活的生物。
- 头盔栏位的装备现在会在活体头骨上显示,并在返回给复活生物时保留附魔、耐久度及其他物品数据。
- 活体头颅现在有 3.3% 的概率掉落对应的骷髅头颅或凋灵骷髅头颅物品。
- 头颅的生命值现在可以根据原始生物的最大生命值进行缩放。
- 复活后的生物可以选择生成另一个活体头颅,从而允许无限次的复活循环。
- 现在可以启用或禁用活体头颅受到的摔落伤害。
- 由刷怪笼生成的生物现在可以被纳入复活系统。
- 活体头颅的经验值与复活后生物的经验值或战利品掉落现在可以分别控制。
新增配置选项
以下设置会自动添加到 config/mebahels-skeleton-revival/mebahels-skeleton-revival_config.json:
{
"skeletonHeadHealthPercentage": 40,
"reanimatedEntitiesCanSpawnHeads": false,
"skeletonHeadTakesFallDamage": false,
"skeletonHeadShouldDropExperience": true,
"respawnedEntityShouldDropExperience": true,
"respawnedEntityShouldDropItem": true,
"canSpawnFromSpawner": false
}
skeletonHeadHealthPercentage将头颅的最大生命值设置为原始生物最大生命值的百分比。接受的值范围为1到100。reanimatedEntitiesCanSpawnHeads启用后允许复活后的生物创建新的活体头颅。skeletonHeadTakesFallDamage控制活体头颅是否承受摔落伤害。skeletonHeadShouldDropExperience控制活体头颅的经验掉落。respawnedEntityShouldDropExperience控制复活后生物的经验掉落。respawnedEntityShouldDropItem控制复活后生物的正常战利品掉落。canSpawnFromSpawner允许由刷怪笼生成的生物留下活体头颅。
所有新设置均使用安全默认值,以保留标准的单次复活行为。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
评论 0
登录后参与评分
还没有评论,来抢沙发吧