跳到正文

Chapters

作者:gabinx

GameStages-style chapter progression for NeoForge. Lock items, fluids, recipes, and more behind named stages. For Minecraft 1.21 and 26.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Chapters

Guide, recipes, and troubleshooting: https://github.com/GabinFqt/chapters/wiki

Chapters locks items, fluids, recipes, and dimensions behind stages until you grant them.

A stage is an id you choose, like mypack:iron_age. The /chapters commands, KubeJS, and the FTB Quests Stage fields all use that same id.

The jar ships no stages. You write them. Chapters runs on its own. KubeJS is the way the example below is written. A datapack works if you do not want scripts. JEI, FTB Quests, FTB Teams, and Mekanism are optional.

What you can lock

  • Items. Hidden in JEI, no ground pickup, dropped from the inventory (about once a second), no crafting on the vanilla grid.
  • Fluids. The player cannot place them or move them with buckets and tanks. JEI hides them.
  • Recipes. That recipe id will not craft on the vanilla grid, and JEI hides it. The output item stays free unless you also lock the item.
  • Dimensions. Travel is cancelled (portals, /tp). Players already inside are sent back to the Overworld.
  • A whole mod. @create locks that mod’s items, fluids, and Mekanism chemicals. It does not lock dimensions.
  • Mekanism chemicals, on Minecraft 1.21 when Mekanism is installed. The player cannot move them by hand. JEI hides them.

You can soften a lock (keep it visible in JEI, or let the player hold the item). The wiki page Restriction flags shows how. Most packs should leave the defaults: fully locked until the stage is granted.

Example

Install KubeJS. Create kubejs/server_scripts/stages.js and call this inside ServerEvents.loaded:

ChaptersEvents.defineStage(‘mypack:iron_age’, [‘@create’, ‘dimension:minecraft:the_nether’])

Nothing from Create, and no Nether, until you grant the stage:

  • /chapters check Steve mypack:iron_age
  • /chapters add Steve mypack:iron_age

With FTB Quests, add a Stage Reward and type mypack:iron_age. No extra plugin. With FTB Teams, the whole party gets the stage.

The formatted script and more recipes are on the wiki.

Commands

/chapters add, remove, list, check, reload

Versions

– Minecraft 1.21 (NeoForge 21.1, Java 21): Chapters 1.x
– Minecraft 26 (NeoForge 26.1, Java 25): Chapters 2.x

Links

– GitHub: https://github.com/GabinFqt/chapters
– Releases: https://github.com/GabinFqt/chapters/releases
– License: MIT

 

常见问题

Chapters 支持哪些 Minecraft 版本?

Chapters 支持 Minecraft Java 版 1.21.1–26.1.2,共 2 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Chapters 怎么安装?

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

评论

登录后评论和评分

gabinx 的其他作品

查看全部 →