

Just Mob Heads 是一个极简风格的模组,它为生物在死亡时掉落其头颅的概率提供了可配置选项。你还可以通过命令生成所有可用的生物头颅。安装了该模组后,放置或拾取头颅时会保留其名称。
模组提供了配置选项,可以设置仅由玩家击杀时掉落头颅,或者仅由闪电苦力怕掉落。
我还提供了一款Just Player Heads模组!
已更新至 26.2,现在可以获得硫磺立方体头颅了! :)








该模组允许通过两个配置文件进行配置。通用配置文件位于 ./config/serilum/justmobheads.json,其中包含:
Show Spoiler
mobSpecificDropChances 默认值 true
如果启用,将使用特定值覆盖“overallDropChance”变量。
enableStandardHeads 默认值 false
如果启用,允许苦力怕、骷髅和僵尸掉落其头颅。
enableLootingEnchant 默认值 true
如果启用,抢夺附魔将对掉落概率产生影响。
onlyAdultMobsDropTheirHead 默认值 true
如果启用,只有成年的可驯服生物在死亡时有几率掉落其头颅。
overallDropChance 默认值 0.1,最小值 0,最大值 1.0
当“mobSpecificDropChances”禁用时,设置生物掉落其头颅的概率。
creeperSkeletonZombieDropChance 默认值 0.1,最小值 0,最大值 1.0
当“enableStandardHeads”启用时,设置僵尸、骷髅和苦力怕的头颅掉落概率。如果启用了“mobSpecificDropChances”,这是 headchances.txt 中它们各自行的默认值。
onlyDropHeadsByChargedCreeper 默认值 false
启用时,仅在死亡来源是闪电苦力怕时掉落生物头颅。这会覆盖 onlyDropHeadsByPlayerKill 的值。
onlyDropHeadsByPlayerKill 默认值 false
启用时,仅在死亡来源是玩家时掉落生物头颅。
第二个配置文件位于 ./config/serilum/justmobheads/headchances.txt。此文件包含所有生物头颅掉落的默认概率(1.19 数据版本):
首次加载时,会检查现有值是否有缺失内容(例如更新后)。如果有缺失,它们将被追加到文件末尾。
也可以通过游戏内的 Mods -> Just Mob Heads -> Config,在“Extra Config Files”标签页中编辑头颅概率。在此处进行的更改会立即生效,无需使用重载命令。
Show Spoiler
"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,

/jmh reload - 重新加载对 "./config/serilum/justmobheads/headchances.txt" 配置文件所做的所有更改。
/jmh head list - 列出所有可用生物头颅的生物名称。
/jmh head <mobname> <amount> - 生成指定数量(<amount>)来自指定生物(<mobname>)的头颅。

命令示例:
Show Spoiler





使用纹理值而非通过玩家名称生成
该模组使用纹理值来生成生物头颅。这意味着不会产生通常由基于玩家名称生成的头颅所带来的卡顿问题。
纯原版资源
由于该模组没有添加任何自定义方块,您可以移除该模组,并且之前在游戏中收集的头颅仍然保留。
头颅何时掉落?
每当玩家击杀一个生物时,都有几率掉落其头颅。配置文件中预设了掉落概率,但您可以根据喜好进行修改。头颅将在生物死亡的位置掉落。
添加了哪些生物?
所有生物均已添加。当 Minecraft 更新时,新添加的生物也会获得头颅掉落。您可以在上方“可配置”部分查看完整的生物头颅列表。
苦力怕、骷髅和僵尸呢?
默认情况下,标准头颅不会掉落,因为你可以通过闪电苦力怕收集它们。不过,你可以在配置文件中启用选项,让这三种生物在死亡时像其他生物一样掉落各自对应的头颅。它们在 headchances.txt 文件中也各有单独一行。猪灵会掉落原版猪灵头颅,因此与你通过闪电苦力怕获得的头颅可以叠加。
抢夺附魔有影响吗?
抢夺附魔会影响头颅的掉落几率。此功能可以在配置文件中启用或禁用。提升后的掉落几率为:一级 3.5%,二级 4.5%,三级 5.5%,依此类推。它也适用于高于三级的抢夺等级。如果某生物的掉落几率为 0,即使有抢夺附魔也永远不会掉落其头颅。

只要下载源仍托管在 CurseForge 或 Modrinth 生态内,你就可以在任何整合包中自由使用本模组。
Serilum.com 提供了所有可用模组的概览及更多信息。
如有问题、想法、建议或其他反馈,请访问 Github 仓库。谢谢!


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 are 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!
Updated to 26.2, get the Sulfur Cube head now! :)








The mod allows configuration via two config files. The general one is located in ./config/serilum/justmobheads.json and contains:
Show Spoiler
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, max 1.0
Sets the chance of a mob dropping its head if 'mobSpecificDropChances' is disabled.
creeperSkeletonZombieDropChance default 0.1, min 0, max 1.0
Sets head drop chance for Zombies, Skeletons and Creepers if 'enableStandardHeads' is enabled. With 'mobSpecificDropChances' enabled, this is the default for their own lines in headchances.txt.
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/serilum/justmobheads/headchances.txt. This file contains the default drop chances for all mob head drops (1.19 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.
The head chances can also be edited in-game via Mods -> Just Mob Heads -> Config, in the 'Extra Config Files' tab. Changes made there apply right away, without the reload command.
Show Spoiler
"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,

/jmh reload - Reloads all changes made to the "./config/serilum/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:
Show Spoiler





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. Each of them has its own line in the headchances.txt file too. Piglins drop the vanilla Piglin Head, so it stacks with the ones you get via a charged creeper.
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. A mob with a drop chance of 0 will never drop its head, not even with Looting.

You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge or Modrinth ecosystem.
Serilum.com contains an overview and more information on all mods available.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧