
需要库模组 Collective (Fabric) 以及 Fabric API。

本模组是 The Vanilla Experience 整合包的一部分。
Just Mob Heads 是一款极简风格的模组,它为生物在死亡时掉落其头颅提供了可配置的概率。你还可以通过命令生成所有可用的生物头颅。安装了该模组后,放置和拾取生物头颅时会保留其名称。
有多种配置选项可用,例如仅允许玩家击杀时掉落头颅,或仅由闪电苦力怕掉落头颅。
我还提供了一款名为 Just Player Heads 的模组!
支持 1.19!

可配置: (如何配置?)
该模组允许通过两个配置文件进行配置。通用配置文件位于 ./config/justmobheads-common.toml,其中包含以下设置:
mobSpecificDropChances (默认 = true):如果启用,将使用特定值覆盖“overallDropChance”变量。
enableStandardHeads (默认 = false):如果启用,允许苦力怕、骷髅和僵尸掉落其头颅。
enableLootingEnchant (默认 = true):如果启用,抢夺附魔将对掉落概率产生影响。
onlyAdultMobsDropTheirHead (默认 = true):如果启用,只有成年的可驯服生物在死亡时有机会掉落其头颅。
overallDropChance (默认 = 0.1,最小值 0.0001,最大值 1.0):当“mobSpecificDropChances”禁用时,设置生物掉落其头颅的概率。
creeperSkeletonZombieDropChance (默认 = 0.1,最小值 0.0001,最大值 1.0):当“enableStandardHeads”启用时,设置僵尸、骷髅和苦力怕的头颅掉落概率。
onlyDropHeadsByChargedCreeper (默认 = false):启用后,仅当死亡来源是闪电苦力怕时才掉落生物头颅。这会覆盖 onlyDropHeadsByPlayerKill 的值。
onlyDropHeadsByPlayerKill (默认 = false):启用后,仅当死亡来源是玩家时才掉落生物头颅。
第二个配置文件位于 ./config/justmobheads/headchances.txt。该文件包含了所有生物头颅掉落的默认概率(基于 1.17 数据):
首次加载时,会检查现有值是否缺少任何内容(例如更新后)。如果是这样,缺失的内容将被追加到文件末尾。
"all_black_cat" : 0.5,
"allay" : 0.5,
"armorer" : 0.1,
"bat" : 0.25,
"bee" : 0.1,
"black_and_white_rabbit" : 0.1,
"black_cat" : 0.5,
"black_horse" : 0.1,
"black_rabbit" : 0.1,
"black_sheep" : 0.025,
"blaze" : 0.01,
"blue_axolotl" : 0.5,
"blue_parrot" : 0.75,
"blue_sheep" : 0.025,
"british_shorthair_cat" : 0.5,
"brown_horse" : 0.1,
"brown_llama" : 0.05,
"brown_mooshroom" : 0.05,
"brown_rabbit" : 0.1,
"brown_sheep" : 0.025,
"brown_trader_llama" : 0.25,
"butcher" : 0.1,
"calico_cat" : 0.5,
"cartographer" : 0.1,
"cave_spider" : 0.01,
"charged_creeper" : 1.0,
"chestnut_horse" : 0.1,
"chicken" : 0.05,
"cleric" : 0.1,
"cod" : 0.1,
"cold_frog" : 0.1,
"cow" : 0.05,
"creamy_horse" : 0.1,
"creamy_llama" : 0.05,
"creamy_trader_llama" : 0.25,
"cyan_axolotl" : 0.5,
"cyan_parrot" : 0.75,
"cyan_sheep" : 0.025,
"dark_brown_horse" : 0.1,
"dolphin" : 0.2,
"donkey" : 0.1,
"drowned" : 0.05,
"elder_guardian" : 0.3,
"enderman" : 0.02,
"endermite" : 0.02,
"evoker" : 0.02,
"farmer" : 0.1,
"fisherman" : 0.1,
"fletcher" : 0.1,
"ghast" : 0.1,
"glow_squid" : 0.2,
"goat" : 0.05,
"gold_axolotl" : 0.5,
"gold_rabbit" : 0.1,
"gray_horse" : 0.1,
"gray_llama" : 0.05,
"gray_parrot" : 0.75,
"gray_sheep" : 0.025,
"gray_trader_llama" : 0.25,
"green_parrot" : 0.75,
"green_sheep" : 0.025,
"guardian" : 0.02,
"hoglin" : 0.1,
"husk" : 0.03,
"illusioner" : 0.25,
"iron_golem" : 0.02,
"jeb_sheep" : 0.2,
"jellie_cat" : 0.5,
"killer_rabbit" : 0.1,
"leatherworker" : 0.1,
"librarian" : 0.1,
"light_blue_sheep" : 0.025,
"light_gray_sheep" : 0.025,
"lime_sheep" : 0.025,
"lucy_axolotl" : 0.5,
"magenta_sheep" : 0.025,
"magma_cube" : 0.05,
"mason" : 0.1,
"mooshroom" : 0.05,
"mule" : 0.1,
"nitwit" : 0.1,
"ocelot" : 0.1,
"orange_sheep" : 0.025,
"panda" : 0.5,
"persian_cat" : 0.5,
"phantom" : 0.1,
"pig" : 0.05,
"piglin" : 0.05,
"piglin_brute" : 0.1,
"pillager" : 0.2,
"pink_sheep" : 0.025,
"polar_bear" : 0.2,
"pufferfish" : 0.1,
"purple_sheep" : 0.025,
"ragdoll_cat" : 0.5,
"ravager" : 0.2,
"red_cat" : 0.5,
"red_fox" : 0.25,
"red_parrot" : 0.75,
"red_sheep" : 0.025,
"salmon" : 0.1,
"salt_and_pepper_rabbit" : 0.1,
"shepherd" : 0.1,
"shulker" : 0.05,
"siamese_cat" : 0.5,
"silverfish" : 0.05,
"skeleton_horse" : 0.25,
"slime" : 0.05,
"snow_fox" : 0.25,
"snow_golem" : 0.1,
"snowman" : 0.05,
"spider" : 0.05,
"squid" : 0.05,
"stray" : 0.1,
"strider" : 0.1,
"tabby_cat" : 0.5,
"tadpole" : 0.05,
"temperate_frog" : 0.1,
"toast_rabbit" : 0.5,
"toolsmith" : 0.1,
"tropical_fish" : 0.1,
"turtle" : 0.1,
"vex" : 0.25,
"villager" : 0.1,
"vindicator" : 0.25,
"wandering_trader" : 1.0,
"warden" : 1.0,
"warm_frog" : 0.1,
"weaponsmith" : 0.1,
"white_cat" : 0.5,
"white_horse" : 0.1,
"white_llama" : 0.05,
"white_rabbit" : 0.1,
"white_sheep" : 0.025,
"white_trader_llama" : 0.25,
"wild_axolotl" : 0.5,
"witch" : 0.05,
"wither" : 1.0,
"wolf" : 0.05,
"yellow_sheep" : 0.025,
"zoglin" : 0.1,
"zombie_armorer" : 0.1,
"zombie_butcher" : 0.1,
"zombie_cartographer" : 0.1,
"zombie_cleric" : 0.1,
"zombie_farmer" : 0.1,
"zombie_fisherman" : 0.1,
"zombie_fletcher" : 0.1,
"zombie_horse" : 0.25,
"zombie_leatherworker" : 0.1,
"zombie_librarian" : 0.1,
"zombie_mason" : 0.1,
"zombie_nitwit" : 0.1,
"zombie_shepherd" : 0.1,
"zombie_toolsmith" : 0.1,
"zombie_villager" : 0.1,
"zombie_weaponsmith" : 0.1,
"zombified_piglin" : 0.1,
Commands
/jmh reload - 重新加载对 "./config/justmobheads/headchances.txt" 配置文件所做的所有更改。
/jmh head list - 列出所有可用的生物头颅的生物名称。
/jmh head <mobname> <amount> - 生成指定数量(<amount>)的来自指定生物(<mobname>)的头颅。
命令示例:
使用纹理值而非通过玩家名称生成
该模组使用纹理值来生成生物头颅。这意味着不会出现由玩家名称生成的头颅通常导致的卡顿问题。
纯原版资源
由于该模组没有添加任何自定义方块,你可以移除该模组,而之前在游戏中收集的头颅仍然保留。
头颅何时掉落?
每当玩家击杀一个生物时,它都有概率掉落其头颅。配置文件中有预定义的掉落几率,但你可以按照自己的喜好进行修改。头颅将在生物死亡的位置掉落。
添加了哪些生物?
所有生物都已包含在内。当 Minecraft 更新时,新加入的生物也会获得头颅掉落。你可以在上方“可配置”部分查看完整的生物头颅列表。
苦力怕、骷髅和僵尸怎么办?
默认情况下,标准头颅不会掉落,因为你可以通过带电的苦力怕来获取它们。不过,你可以在配置文件中启用选项,让这三种生物在死亡时像其他生物一样各自掉落其对应的头颅。
抢夺附魔有影响吗?
抢夺附魔会影响头颅的掉落几率。此功能可以在配置文件中启用或禁用。提升后的几率为:I 级增加 3.5%,II 级增加 4.5%,III 级增加 5.5%,依此类推。它也适用于高于 III 级的抢夺等级。
------------------
只要下载仍托管在 CurseForge 生态系统中,你就可以在任何整合包中自由使用该模组。
Serilum.com 提供了所有可用模组的概览和更多信息。
评论已禁用,因为我无法跟踪每个模组单独页面上的所有内容。
如有问题、想法、建议或其他内容,请访问 Github 仓库。谢谢!

Requires the library mod Collective (Fabric) and the Fabric API.

This mod is part of The Vanilla Experience.
Just Mob Heads is a minimalistic mod that adds a configurable chance for mobs to drop their head on death. You can also generate every available mob head via commands. Mob heads will keep their name after placement and pickup with the mod installed.
There config options available to make mob heads only drop on player kill or only by charged creepers.
I've also got a Just Player Heads mod available!
1.19 ready!

Configurable: ( how do I configure? )
The mod allows configuration via two config files. The general one is located in ./config/justmobheads-common.toml and contains:
mobSpecificDropChances (default = true): If enabled, overrides the 'overallDropChance' variable with the specific values.
enableStandardHeads (default = false): If enabled, allows Creepers, Skeletons and Zombies to drop their heads.
enableLootingEnchant (default = true): If enabled, the looting enchant will have an effect on the drop chance.
onlyAdultMobsDropTheirHead (default = true): If enabled, only adult tameable mobs will have a chance to drop their head on death.
overallDropChance (default = 0.1, min 0.0001, max 1.0): Sets the chance of a mob dropping its head if 'mobSpecificDropChances' is disabled.
creeperSkeletonZombieDropChance (default = 0.1, min 0.0001, max 1.0): Sets head drop chance for Zombies, Skeletons and Creepers if 'enableStandardHeads' is enabled.
onlyDropHeadsByChargedCreeper (default = false): When enabled, only drops mob heads if the source on death is a charged creeper. This overwrites the onlyDropHeadsByPlayerKill value.
onlyDropHeadsByPlayerKill (default = false): When enabled, only drops mob heads if the source on death is from a player.
The second config file is located in ./config/justmobheads/headchances.txt. This file contains the default drop chances for all mob head drops (1.17 data):
On first load, the existing values are checked for anything missing (e.g. after an update). If that's the case, it'll be appended to the end of the file.
"all_black_cat" : 0.5,
"allay" : 0.5,
"armorer" : 0.1,
"bat" : 0.25,
"bee" : 0.1,
"black_and_white_rabbit" : 0.1,
"black_cat" : 0.5,
"black_horse" : 0.1,
"black_rabbit" : 0.1,
"black_sheep" : 0.025,
"blaze" : 0.01,
"blue_axolotl" : 0.5,
"blue_parrot" : 0.75,
"blue_sheep" : 0.025,
"british_shorthair_cat" : 0.5,
"brown_horse" : 0.1,
"brown_llama" : 0.05,
"brown_mooshroom" : 0.05,
"brown_rabbit" : 0.1,
"brown_sheep" : 0.025,
"brown_trader_llama" : 0.25,
"butcher" : 0.1,
"calico_cat" : 0.5,
"cartographer" : 0.1,
"cave_spider" : 0.01,
"charged_creeper" : 1.0,
"chestnut_horse" : 0.1,
"chicken" : 0.05,
"cleric" : 0.1,
"cod" : 0.1,
"cold_frog" : 0.1,
"cow" : 0.05,
"creamy_horse" : 0.1,
"creamy_llama" : 0.05,
"creamy_trader_llama" : 0.25,
"cyan_axolotl" : 0.5,
"cyan_parrot" : 0.75,
"cyan_sheep" : 0.025,
"dark_brown_horse" : 0.1,
"dolphin" : 0.2,
"donkey" : 0.1,
"drowned" : 0.05,
"elder_guardian" : 0.3,
"enderman" : 0.02,
"endermite" : 0.02,
"evoker" : 0.02,
"farmer" : 0.1,
"fisherman" : 0.1,
"fletcher" : 0.1,
"ghast" : 0.1,
"glow_squid" : 0.2,
"goat" : 0.05,
"gold_axolotl" : 0.5,
"gold_rabbit" : 0.1,
"gray_horse" : 0.1,
"gray_llama" : 0.05,
"gray_parrot" : 0.75,
"gray_sheep" : 0.025,
"gray_trader_llama" : 0.25,
"green_parrot" : 0.75,
"green_sheep" : 0.025,
"guardian" : 0.02,
"hoglin" : 0.1,
"husk" : 0.03,
"illusioner" : 0.25,
"iron_golem" : 0.02,
"jeb_sheep" : 0.2,
"jellie_cat" : 0.5,
"killer_rabbit" : 0.1,
"leatherworker" : 0.1,
"librarian" : 0.1,
"light_blue_sheep" : 0.025,
"light_gray_sheep" : 0.025,
"lime_sheep" : 0.025,
"lucy_axolotl" : 0.5,
"magenta_sheep" : 0.025,
"magma_cube" : 0.05,
"mason" : 0.1,
"mooshroom" : 0.05,
"mule" : 0.1,
"nitwit" : 0.1,
"ocelot" : 0.1,
"orange_sheep" : 0.025,
"panda" : 0.5,
"persian_cat" : 0.5,
"phantom" : 0.1,
"pig" : 0.05,
"piglin" : 0.05,
"piglin_brute" : 0.1,
"pillager" : 0.2,
"pink_sheep" : 0.025,
"polar_bear" : 0.2,
"pufferfish" : 0.1,
"purple_sheep" : 0.025,
"ragdoll_cat" : 0.5,
"ravager" : 0.2,
"red_cat" : 0.5,
"red_fox" : 0.25,
"red_parrot" : 0.75,
"red_sheep" : 0.025,
"salmon" : 0.1,
"salt_and_pepper_rabbit" : 0.1,
"shepherd" : 0.1,
"shulker" : 0.05,
"siamese_cat" : 0.5,
"silverfish" : 0.05,
"skeleton_horse" : 0.25,
"slime" : 0.05,
"snow_fox" : 0.25,
"snow_golem" : 0.1,
"snowman" : 0.05,
"spider" : 0.05,
"squid" : 0.05,
"stray" : 0.1,
"strider" : 0.1,
"tabby_cat" : 0.5,
"tadpole" : 0.05,
"temperate_frog" : 0.1,
"toast_rabbit" : 0.5,
"toolsmith" : 0.1,
"tropical_fish" : 0.1,
"turtle" : 0.1,
"vex" : 0.25,
"villager" : 0.1,
"vindicator" : 0.25,
"wandering_trader" : 1.0,
"warden" : 1.0,
"warm_frog" : 0.1,
"weaponsmith" : 0.1,
"white_cat" : 0.5,
"white_horse" : 0.1,
"white_llama" : 0.05,
"white_rabbit" : 0.1,
"white_sheep" : 0.025,
"white_trader_llama" : 0.25,
"wild_axolotl" : 0.5,
"witch" : 0.05,
"wither" : 1.0,
"wolf" : 0.05,
"yellow_sheep" : 0.025,
"zoglin" : 0.1,
"zombie_armorer" : 0.1,
"zombie_butcher" : 0.1,
"zombie_cartographer" : 0.1,
"zombie_cleric" : 0.1,
"zombie_farmer" : 0.1,
"zombie_fisherman" : 0.1,
"zombie_fletcher" : 0.1,
"zombie_horse" : 0.25,
"zombie_leatherworker" : 0.1,
"zombie_librarian" : 0.1,
"zombie_mason" : 0.1,
"zombie_nitwit" : 0.1,
"zombie_shepherd" : 0.1,
"zombie_toolsmith" : 0.1,
"zombie_villager" : 0.1,
"zombie_weaponsmith" : 0.1,
"zombified_piglin" : 0.1,
Commands
/jmh reload - Reloads all changes made to the "./config/justmobheads/headchances.txt" config file.
/jmh head list - Lists all mobnames of available mob heads.
/jmh head <mobname> <amount> - Generates <amount> of heads from <mobname>.
Command examples:
Texture values instead of generation via player-names
The mod uses texture values to generate the mob heads. This means that there won't be any lag, which player-name generated heads usually cause.
Pure Vanilla Resources
Because the mod does not add any custom blocks, you may remove the mod and still have the heads previously gathered in-game.
When does a head drop?
Whenever the player kills a mob, there is a chance that they drop their head. There are pre-defined chances in the config file, but you may alter them to your liking. It'll be dropped at their death location.
How many mobs are added?
Every mob has been added. When Minecraft updates, the newly added mobs receive a head drop as well. You can see the entire mob head list above under configurable.
What about Creepers, Skeletons and Zombies?
By default the standard heads do not drop, because you can collect them via a charged creeper. You can however enable the option within the config file for all three to drop their respective head on death just as any other mob.
Does Looting have an effect?
The Looting enchant has an effect on the head drop chance. This can be enabled/disabled within the config file. The increased chance is 3.5% at level I, 4.5% at level II, and 5.5% at level III and so forth. It also works with looting levels higher than 3.
------------------
You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge ecosystem.
Serilum.com contains an overview and more information on all mods available.
Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧