跳到正文

Rotten Flesh Compost

Makes Rotten Flesh compostable in a Composter: 65% chance per item, same tier as carrots and potatoes. Pure data map — vanilla compostables are untouched, no config needed, works on servers.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。
# Rotten Flesh Compost
 
Rotten Flesh is the one mob drop you always have too much of and can do almost nothing with. This mod makes it useful: **drop it into a Composter and it works like any other food item — a 65% chance to add one compost layer** (same tier as carrots, potatoes and melons).
 
## Features
 
– Rotten Flesh is compostable at a **0.65** success chance.
– **Nothing else changes.** All vanilla compostable items keep their exact values — this mod only adds one entry.
– **No configuration, no commands, no new blocks or items.** One tiny data file does the whole job.
– Works in singleplayer and on servers; packs only ~13 KB.
 
## Installation
 
1. Install **NeoForge for Minecraft 1.21.1**.
2. Drop the jar into your `mods` folder.
3. That’s it — right-click a Composter with Rotten Flesh.
 
**Multiplayer:** install it on the **server**. Clients do not need it — the values are synced automatically, so players without the mod still see the correct behaviour.
 
## Customising the chance
 
The mod is driven entirely by NeoForge’s `compostables` data map, so you can override it without touching the jar: put a file at
 
“`
data/neoforge/data_maps/item/compostables.json
“`
 
inside a **world datapack** (data pack format `48`) and set whatever chance you like:
 
“`json
{
“values”: {
“minecraft:rotten_flesh”: { “chance”: 0.65 }
}
}
“`
 
Setting `”can_villager_compost”: true` additionally lets farmer villagers compost it themselves.
 
## Why is the jar so small?
 
Since 1.21.1, NeoForge no longer reads `ComposterBlock.COMPOSTABLES` — composting is data-driven. So the correct implementation is a single data map file, not code. (Which also means the old `ComposterBlock.COMPOSTABLES.put(…)` trick you’ll find in older tutorials silently does nothing on this version.)
 
## Compatibility
 
– Minecraft **1.21.1**, NeoForge **21.1.0+**
– No mixins, no coremods, no other mod dependencies — should be compatible with everything
– Modpacks are welcome to include it
 
## License
 
MIT — do whatever you like with it.

常见问题

Rotten Flesh Compost 支持哪些 Minecraft 版本?

Rotten Flesh Compost 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Rotten Flesh Compost 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分