ResearchLib

Factorio-style research trees, science packs and recipe locks, defined with datapacks or KubeJS. A library - no tree included.

ResearchLib

This mod was developed with the help of Anthropic's AI assistant "Claude".

Requires WhoPutItThere.

This is a Beta. Back up your world before using it. The data formats (datapacks, KubeJS scripts, saved progress) will stay compatible in future versions.

What does this mod do?

Factorio-style research for Minecraft: put science packs into a lab, finish research, unlock recipes, items and actions.

A library: no research tree is included. Add trees with datapacks, KubeJS or other mods. Without a tree, nothing is locked.

Features

For players

  • Research Tree screen (key J): search, queue, time left, progress HUD.
  • Research Bench: research by hand. Press Space on time for a speed boost.
  • Research Lab: FE or redstone fuel. Speed, productivity and efficiency modules.
  • 5 science packs: primitive, processed, metal, dimensional, netherite.
  • JEI: locked recipes are marked, with a button to the research.

For pack makers

  • KubeJS or datapacks, same names. Recipes, items and blocks are picked the KubeJS way.
  • ProbeJS (6.x / 7.x): autocompletion and descriptions for ResearchLibEvents.define. Run /probejs dump.
  • Costs: prerequisites, science packs, or a trigger (craft, pick up, mine, kill, place, smelt, enter a dimension). Levels and infinite research.
  • Locks: recipes (vanilla stations, brewing, other mods' machines), items, blocks, 41 built-in actions.
  • Rewards: attribute bonuses, script events.
  • In-game editor for datapack nodes (operators).
  • Tree selection at world creation, /research tree later.
  • Progress: server-wide (default), per player, or per FTB Teams team.
  • AE2: autocrafting, Crafting Terminal, Inscriber, Charger, Entropy Manipulator and in-water crafting follow the locks.
  • Commands: /research grant, revoke, reset, query, tree, locks (level 2).

Writing a tree

KubeJS (kubejs/server_scripts)

ResearchLibEvents.define(event => {
  event.tree('mypack:my_tree').name('My Tree').icon('minecraft:book')

  event.node('mypack:blast_furnace')
    .tree('mypack:my_tree')
    .name('Blast Furnace')
    .description('Smelt ores twice as fast.')
    .icon('minecraft:blast_furnace')
    .cost('research_lib:primitive_pack', 10, 5) // pack(s), seconds per cycle, cycles
    .lockRecipes('minecraft:blast_furnace')

  event.node('mypack:beds')
    .tree('mypack:my_tree')
    .name('Beds')
    .icon('minecraft:red_bed')
    .requires('mypack:blast_furnace')
    .cost('research_lib:primitive_pack', 10, 3)
    .lockRecipes({ output: '#minecraft:beds' })
    .lockActions('research_lib:villager_trading')
    .fireEvent('beds_done')
})

// runs when mypack:beds is researched
ResearchLibEvents.fireEvent('beds_done', event => {
  event.players.forEach(p => p.tell('You can make beds now!'))
})

/reload applies changes. event.remove(id) / event.removeTree(id) remove datapack nodes and trees.

Datapack

data/mypack/research_tree/my_tree.json

{ "name": "My Tree", "icon": "minecraft:book" }

data/mypack/research_node/blast_furnace.json

{
  "tree": "mypack:my_tree",
  "name": "Blast Furnace",
  "description": "Smelt ores twice as fast.",
  "icon": "minecraft:blast_furnace",
  "cost": { "packs": ["research_lib:primitive_pack"], "seconds": 10, "times": 5 },
  "locks": { "recipes": ["minecraft:blast_furnace"] }
}

Locks the blast furnace until researched: 5 primitive packs, 10 seconds each.

Picking recipes, items and blocks (KubeJS style)

  • Recipes: an id, a regex ('/_stairs$/'), or a filter: output, input, type, mod, id, group, not. All keys in an object must match; a list matches any. { type: '...' } locks a whole machine.
  • Items and blocks: 'minecraft:stone', '#forge:ingots', '@create', '/_ore$/'.

Node reference

KubeJS JSON
.tree(id) tree tree the node belongs to
.name(text) .description(text) .icon(item) name description icon text or translation key
.requires(ids) requires prerequisites
.cost(packs, seconds, times) cost: { packs, seconds, times } packs are used together, one set per cycle
.trigger(type, target) trigger: { type, item/block/entity/dimension } craft_item pickup_item smelt_item mine_block place_block kill_entity enter_dimension
.levels({...}) levels levelled / infinite research
.lockRecipes(...) .lockItems(...) .lockBlocks(...) locks: { recipes, items, blocks }
.hideFromJei() locks: { hide_from_jei: true } hide the locked items/blocks in JEI
.lockActions(ids) locks: { actions } e.g. research_lib:elytra_flight
.lockBrewing(ingredient, input, output) locks: { brewing: [{ ingredient, input, output }] }
.fireEvent(names) events names for ResearchLibEvents.fireEvent
.effect({...}) effects e.g. { type: 'research_lib:attribute_bonus', ... }
.sort(n) .silent() .tags(list) .position(x, y) sort silent tags position

Trees: .name() .icon() .enabled(false) .dependencies(ids) / name icon enabled dependencies.

Events: fireEvent, nodeUnlocked, nodeSelected, queueChanged, treeSelectionFinalized. The ResearchLib binding checks unlock state.

Requirements

Install on both server and client.

Installation

  1. Install Forge.
  2. Put ResearchLib and WhoPutItThere into mods.
  3. Add a research tree.

Known Limitations

  • Machines use their placer's research. With per-player or team progress, machines with no known placer (village furnaces, dispenser-placed) stay locked; place them again.

Reporting Issues

Please report bugs in the comments on this page.

Credits

  • Developed by yuhhamu

License

This mod is licensed under MIT.

Copyright (c) 2026 yuhhamu


ResearchLib

本MODの開発にはAnthropicのAIアシスタント「Claude」を活用しています。

前提MOD: WhoPutItThere

Beta版です。 使う前にワールドのバックアップを取ってください。データ形式(データパック・KubeJS スクリプト・保存された進捗)の互換性は今後の版でも維持します。

これは何をするMODですか?

Factorio のような研究を追加します。サイエンスパックで研究し、レシピ・アイテム・行動を解禁します。

ライブラリです。研究ツリーは同梱していません。データパック・KubeJS・他MODで追加します。ツリーが無ければ何もロックされません。

機能

プレイヤー向け

  • 研究ツリー画面(キー J): 検索、予約、残り時間、進行中の表示。
  • 研究台: 手作業で研究。タイミングよく Space で加速。
  • 研究所: FE かレッドストーン燃料。速度・生産力・効率モジュール。
  • サイエンスパック5種: 原始・加工・金属・次元・ネザライト。
  • JEI: ロック中のレシピに印と、研究へ移るボタン。

パック制作者向け

  • KubeJS でもデータパックでも同じ名前で書けます。指定は KubeJS と同じ書き方です。
  • ProbeJS(6.x / 7.x): ResearchLibEvents.define の補完と説明。/probejs dump を実行。
  • 条件: 前提、サイエンスパック、トリガー(作る・拾う・掘る・倒す・置く・製錬・ディメンション移動)。レベル制・無限研究。
  • ロック: レシピ(バニラの作業台類・醸造・他MODの機械)、アイテム、ブロック、組み込みの41行動。
  • 報酬: 属性ボーナス、スクリプトへのイベント。
  • ゲーム内エディタ(OP、データパックのノード)。
  • ツリー選択: ワールド作成時、後から /research tree。
  • 進捗: サーバー全体(既定)、プレイヤー別、FTB Teams のチーム別。
  • AE2: 自動クラフト・クラフト端末・インスクライバー・チャージャー・エントロピー操作器・水中クラフトがロックに従います。
  • コマンド: /research grant・revoke・reset・query・tree・locks(権限2)。

ツリーの書き方

KubeJS(kubejs/server_scripts)

ResearchLibEvents.define(event => {
  event.tree('mypack:my_tree').name('My Tree').icon('minecraft:book')

  event.node('mypack:blast_furnace')
    .tree('mypack:my_tree')
    .name('溶鉱炉')
    .description('鉱石を2倍の速さで製錬する。')
    .icon('minecraft:blast_furnace')
    .cost('research_lib:primitive_pack', 10, 5) // パック, 1回の秒数, 回数
    .lockRecipes('minecraft:blast_furnace')

  event.node('mypack:beds')
    .tree('mypack:my_tree')
    .name('ベッド')
    .icon('minecraft:red_bed')
    .requires('mypack:blast_furnace')
    .cost('research_lib:primitive_pack', 10, 3)
    .lockRecipes({ output: '#minecraft:beds' })
    .lockActions('research_lib:villager_trading')
    .fireEvent('beds_done')
})

// mypack:beds の研究が終わったときに動く
ResearchLibEvents.fireEvent('beds_done', event => {
  event.players.forEach(p => p.tell('ベッドが作れるようになった!'))
})

/reload で反映。event.remove(id)・event.removeTree(id) でデータパックのノード・ツリーを除けます。

データパック

data/mypack/research_tree/my_tree.json

{ "name": "My Tree", "icon": "minecraft:book" }

data/mypack/research_node/blast_furnace.json

{
  "tree": "mypack:my_tree",
  "name": "Blast Furnace",
  "description": "Smelt ores twice as fast.",
  "icon": "minecraft:blast_furnace",
  "cost": { "packs": ["research_lib:primitive_pack"], "seconds": 10, "times": 5 },
  "locks": { "recipes": ["minecraft:blast_furnace"] }
}

研究が終わるまで溶鉱炉を作れません。原始パック5個、1個10秒。

レシピ・アイテム・ブロックの指定(KubeJS と同じ書き方)

  • レシピ: ID、正規表現('/_stairs$/')、またはフィルタ(output・input・type・mod・id・group・not)。オブジェクトはすべて一致、リストはどれか一致。{ type: '...' } は機械1種類の全レシピ。
  • アイテム・ブロック: 'minecraft:stone'、'#forge:ingots'、'@create'、'/_ore$/'。

ノードの項目

KubeJS JSON
.tree(id) tree 所属するツリー
.name(文字) .description(文字) .icon(アイテム) name description icon 文字列か翻訳キー
.requires(ID) requires 前提
.cost(パック, 秒, 回数) cost: { packs, seconds, times } パックは1回ごとに1組ずつ同時に使う
.trigger(種類, 対象) trigger: { type, item/block/entity/dimension } craft_item pickup_item smelt_item mine_block place_block kill_entity enter_dimension
.levels({...}) levels レベル制・無限研究
.lockRecipes(...) .lockItems(...) .lockBlocks(...) locks: { recipes, items, blocks }
.hideFromJei() locks: { hide_from_jei: true } ロック中のアイテム・ブロックを JEI から隠す
.lockActions(ID) locks: { actions } 例: research_lib:elytra_flight
.lockBrewing(材料, 元, 結果) locks: { brewing: [{ ingredient, input, output }] }
.fireEvent(名前) events ResearchLibEvents.fireEvent へ送る名前
.effect({...}) effects 例: { type: 'research_lib:attribute_bonus', ... }
.sort(n) .silent() .tags(一覧) .position(x, y) sort silent tags position

ツリー: .name() .icon() .enabled(false) .dependencies(ID) / name icon enabled dependencies。

イベント: fireEvent・nodeUnlocked・nodeSelected・queueChanged・treeSelectionFinalized。ResearchLib バインディングで解禁状況を確認できます。

必要なもの

サーバーとクライアントの両方に入れてください。

導入方法

  1. Forge を導入。
  2. ResearchLib と WhoPutItThere を mods に入れる。
  3. 研究ツリーを追加する。

既知の制限

  • 機械は設置者の研究で判定します。個人別・チーム別の進捗では、設置者不明の機械(村のかまど、ディスペンサー設置など)はロックされたままです。置き直してください。

不具合の報告

このページのコメント欄でお知らせください。

クレジット

  • 開発: yuhhamu

ライセンス

本MODは MIT ライセンスの下で公開されています。

Copyright (c) 2026 yuhhamu

ResearchLib Team

profile avatar
Owner
  • 1
    Followers
  • 11
    Projects
  • 15.6K
    Downloads

Independent Minecraft mod developer. Building mods with AI-assisted development and custom tools for fast updates and reliable maintenance. Feedback and bug reports are always welcome!

More from yuhhamuView all

  • WhoPutItThere project image

    WhoPutItThere

    Library that records who placed a tagged block and when. Required by ResearchLib.

    • 9
    • December 3, 2026
  • Fourfold Factory project image

    Fourfold Factory

    Built to lighten large-scale production lines. Fold your factory into the fourth dimension: machines go inside a hypercube, and one controller runs the whole line. No sprawl, no pipes, and a glowing tesseract turning behind the glass.

    • 24
    • December 2, 2026
  • ChemicalRouterUpgrade project image

    ChemicalRouterUpgrade

    Adds a Chemical Transfer Upgrade to Modular Routers, letting Routers move Mekanism Chemicals (Gas, Infusion, Pigment, Slurry) alongside items.

    • 370
    • October 7, 2026
  • FluidRouterUpgrade project image

    FluidRouterUpgrade

    Lets a vanilla ModularRouters Router transfer Forge Fluids instead of just items. Insert a Fluid Transfer Upgrade to switch a Router's Puller, Sender, Distributor, and Void modules into fluid-transfer mode. Requires RouterUpgradeCore.

    • 230
    • October 7, 2026
  • WhoPutItThere project image

    WhoPutItThere

    Library that records who placed a tagged block and when. Required by ResearchLib.

    • 9
    • December 3, 2026
  • Fourfold Factory project image

    Fourfold Factory

    Built to lighten large-scale production lines. Fold your factory into the fourth dimension: machines go inside a hypercube, and one controller runs the whole line. No sprawl, no pipes, and a glowing tesseract turning behind the glass.

    • 24
    • December 2, 2026
  • ChemicalRouterUpgrade project image

    ChemicalRouterUpgrade

    Adds a Chemical Transfer Upgrade to Modular Routers, letting Routers move Mekanism Chemicals (Gas, Infusion, Pigment, Slurry) alongside items.

    • 370
    • October 7, 2026
  • FluidRouterUpgrade project image

    FluidRouterUpgrade

    Lets a vanilla ModularRouters Router transfer Forge Fluids instead of just items. Insert a Fluid Transfer Upgrade to switch a Router's Puller, Sender, Distributor, and Void modules into fluid-transfer mode. Requires RouterUpgradeCore.

    • 230
    • October 7, 2026