Tree Sap Extractor
A side-mounted sap tap for NeoForge 1.21.1. Attach it to a tree trunk, place a fluid container underneath, and it slowly fills with tree sap, latex or a modded resin. Tree mappings, yields, cycle times and leaf requirements are all datapack recipes, so any pack can add its own trees without touching code.
Q&A
Q: What does it do? A: Taps a living tree from the side and pushes sap, latex or resin into a container below. The tree is not chopped or consumed.
Q: Do I need other mods? A: No. The extractor, fluid basin and rubber chain work standalone.
Q: Can I put it in a modpack? A: Yes, freely. It is MIT licensed and works out of the box.
Q: Does it support modded trees? A: Yes. 13 recipes ship by default, including Tinkers' Construct slime trees and Integrated Dynamics menril. More can be added with a datapack.
Q: Can I add it to an existing world? A: Yes. Remove its blocks before uninstalling the mod, since a removed mod leaves unknown blocks behind.
Q: Can I change the numbers? A: Yes. Yield, cycle, trunk, leaves and soil are all recipe fields.
Features
- Side-mounted extractor. Attaches to a trunk side, spout facing out. No full block of space needed, no tree chopping.
- Real fluid handling. Output goes straight into the container below. The included 1,000 mB Fluid Basin supports 1 mB precision, comparator output and a rendered fluid surface.
- Data-driven trees. Every tree is a recipe: trunk, leaves, soil, fluid, amount, cycle, height and leaf thresholds. 13 extraction recipes ship by default.
- Redstone toggle. Each redstone edge flips the machine on or off; a constant signal does not override manual control.
- Progressive output. Fluid is injected every tick and averaged over the cycle instead of arriving in one lump at the end.
- Rubber chain. Latex can be turned into rubber, rubber blocks and vulcanized rubber.
Included fluids: Tree Sap and Latex, both placeable, with source, flowing, block and bucket forms.
Compatibility
| Mod | What you get |
|---|---|
| Tinkers' Construct | 4 slime tree recipes (skyroot, greenheart, bloodshroom, enderbark), each producing its own slime fluid and requiring slimy soil |
| Integrated Dynamics | Menril recipe producing Menril Resin, covering both normal and filled menril logs |
Other modded trees can be added with a datapack. Example:
{
"type": "sap_extractor:extraction",
"log": "yourmod:your_log",
"leaves": "yourmod:your_leaves",
"soil": "#sap_extractor:tree_soil",
"fluid": { "id": "sap_extractor:tree_sap", "amount": 15 },
"time": 500,
"min_height": 3,
"max_height": 16,
"min_leaves": 3,
"max_leaves": 24
}
Datapack recipes
Path: data/sap_extractor/recipe/extraction/<id>.json, type sap_extractor:extraction.
- Every field is mandatory. A missing key fails the recipe instead of falling back to a default.
log,leavesandsoilaccept a block id or a#tag.logalso accepts a list of block ids, useful when one tree mixes several trunk blocks:["integrateddynamics:menril_log", "integrateddynamics:menril_log_filled"].fluidaccepts{ "id": "...", "amount": n }or{ "fluid": "...", "amount": n }.
Soil defaults to #sap_extractor:tree_soil, which resolves common tags (#minecraft:dirt, #c:stones, #c:sands, #c:gravels) instead of listing individual modded blocks.
Requirements
- Minecraft 1.21.1
- NeoForge 21.1+
Known limitations
- Leaf counting stops at Manhattan distance 6, so very wide canopies lose their outer leaves.
- The fallback root path does not require soil, so a tall enough log pillar next to a real tree can be mistaken for one.
Credits
- Icon: copper faucet rendered from this mod's own
sap_extractormodel, on a background of the vanilla oak bark texture (minecraft:block/oak_log). Vanilla textures belong to Mojang Studios and are used under the Minecraft EULA. - Fluid Basin textures: the model reuses the vanilla cauldron textures (
minecraft:block/cauldron_side,cauldron_top,cauldron_inner) under the same terms. All other textures are original.
Links
- Source code: https://github.com/Rhaaaaaast1/tree_sap_extractor
- Issue tracker: https://github.com/Rhaaaaaast1/tree_sap_extractor/issues
- License: MIT — https://github.com/Rhaaaaaast1/tree_sap_extractor/blob/master/LICENSE
- Datapack reference: https://github.com/Rhaaaaaast1/tree_sap_extractor/blob/master/docs/tree_sap_extractor.md
树液采集器
NeoForge 1.21.1 的侧面树液采集器。把铜制龙头贴在树干侧面,在正下方放带流体能力的容器,开启后自动把树汁、胶乳或模组树脂送入容器。树种、流体、产量、周期和树叶要求全部由数据包配方决定。
Q&A
问:它到底做什么? 答:从侧面采集活着的树,把树汁、胶乳或树脂送进下方容器。它不砍树,也不消耗树木。
问:需要装别的模组吗? 答:不需要。采集器、流体盆和橡胶链都能独立工作。
问:可以放进整合包吗? 答:当然可以。MIT 许可,开箱即用。
问:支持模组的树吗? 答:支持。默认内置 13 条配方,含匠魂史莱姆树与 Integrated Dynamics 门瑞欧。更多树可以用数据包添加。
问:能中途加入现有存档吗? 答:可以。卸载前先把它的方块清掉,否则存档会留下未知方块。
问:数值能改吗? 答:能。产量、周期、树干、树叶和土壤都是配方字段。
特性
- 侧面安装,不需要砍树,也不需要整块空间。
- 自带 1000 mB 流体盆,支持 1 mB 精度、比较器输出与液面渲染。
- 13 条内置提取配方,覆盖 8 种原版树、4 种匠魂史莱姆树和门瑞欧树。
- 红石信号每变化一次翻转一次开关。
- 产量每 tick 均摊注入,不会等到周期结束才一次性输出。
- 胶乳可加工为橡胶、橡胶块与硫化橡胶。
兼容
| 模组 | 内容 |
|---|---|
| 匠魂 | 4 条史莱姆树配方,各产出对应黏液,只认黏液土壤 |
| Integrated Dynamics | 门瑞欧配方,产出 10 mB 门瑞欧树脂,普通与富集原木通用 |
其他模组的树可以用数据包添加,配方字段与上方英文示例一致。
要求
- Minecraft 1.21.1
- NeoForge 21.1+
已知限制
- 树叶统计到曼哈顿距离 6 为止,特别宽的树冠外围树叶不计入。
- 退化路径不要求着地,贴着一棵真树立一根足够高的原木柱,可能被当成同一棵树。
素材来源
- 图标:铜制水龙头由本模组自己的
sap_extractor模型渲染,背景为原版橡木树皮纹理(minecraft:block/oak_log)。原版材质版权归 Mojang Studios,依 Minecraft EULA 使用。 - 流体盆材质:模型直接引用原版炼药锅纹理(
minecraft:block/cauldron_side、cauldron_top、cauldron_inner),同样依 EULA 使用。其余纹理为本模组自制。

