Isekai API 是一个用于构建 Minecraft 世界 形态与规则 的工具箱——它不是提供一个现成的世界,而是提供制造世界的“机器”。 就像网页开发中的 div/span 一样,它提供了一组中立、可组合的基础原语(primitives),你可以将它们自由组合,仅通过数据包 JSON 就能构建出你想象中的 任何 世界。它本身不附带任何生物群系、结构或主题。
两个文件即可打造浮空岛世界
在你的维度配置中引用随附的 isekai_api:hooked_overworld 预设,然后覆盖一个小型的地形形状钩子(hook)文件。无需编写 Java 代码,也无需复制原版长达 2500 行的 noise_settings ——只需修改钩子,整个世界的外形就会随之改变。可运行的示例:examples/1_shape/floating_island/。
你可以控制什么
每一个 世界生成的轴向,均由可组合的原语构成:
- 地形形状 — 17 种数学/几何密度原语 + 5 种世界形状合成器(
squeeze、y_envelope、blended_noise、band_density、sloped_density)。支持浮空岛、悬挂或倒置的大陆、空心壳层、封顶山脉、镜像/平铺空间——在任意 Y 轴带上的任何 3D 形态。
- 生物群系放置 —
isekai_api:rule 生物群系源通过纯粹的空间规则来放置生物群系:垂直分层、同心环、区域,以及 and/or/not 组合逻辑(例如 y_below 20 -> deep_dark)。无需调整气候噪声。
- 表面与填充 — 通过 JSON 重新皮肤任何生物群系的顶层方块或石头填充物。
isekai_api:vanilla_overworld_surface 将原版超平坦地表规则作为一行代码提供给你,从而替换地表时无需复制那 30 KB 的内容。
- 新维度 — 将上述功能与原版的维度 JSON 结合,即可发布整个全新维度。零 Java 代码,零原版编辑。
- 大气效果 — 每个世界独立的天空、雾气和水体颜色。
- 场景、特性与树木 — 使用可组合的部分构建中性内容:仅在平坦干燥的地面上投放手工编写的 NBT 场景组件(
grounded_template),生长连接的方块簇和流体池,并从任意树干 + 树冠放置器组装防腐烂的树木。没有内置的主题——由你提供方块。
- 放置控制 — 精确决定特性/结构的位置:相对于地表或流体、基于方块上下文、Y 轴范围、坡度、距离特定方块或生物群系的远近,以及逻辑组合。
- 重新放置现有内容 — 获取任何原版 或模组 的矿石、结构、生物或特性,并将其重新分配到新世界形状中。原版深埋的稀有矿石可以重新映射到浮空岛的底部。策略包括:线性、反向、固定范围、计数缩放、带宽分割、管道——以及排除/添加选项。
- 基于地形的重新放置 —
isekai_api:column_local 会根据 每一列自身的 地表和底部来计算矿石深度,而不是使用单一的绝对 Y 轴带。无论是浮空岛、环绕行星还是天空大陆,无论处于何种高度,它们内部的矿石布局都保持一致。
- 启动时验证 — 服务器启动时即可捕获损坏或拼写错误的注册表引用,防止其静默失效(no-op)。
- Java API —
Isekai.query() 读取原版/模组的世界生成规则;Isekai.remap() 在代码中声明世界形状。
专为扩展而构建
Isekai 并不绑定于某一个特定的世界或作者。无论你希望如何使用它,我们都欢迎 ——无论是数据包世界形状、完整的 Java 模组、整合包胶水代码、快速实验,还是彻底转换。采用 MIT 许可证:免费使用、分叉,并可捆绑在整合包中。
- 数据包作者: 数据包参考文档 列出了每个键及其 JSON 形状;从
examples/ 中复制一个可运行的骨架——形状、放置和适配各自拥有独立的文件夹。
- Java 模组开发者: 将
isekai_api 添加为 Gradle 的 compileOnly 依赖项(通过 Cursemaven 或仓库自己的 maven 分支——详见 兼容性说明)并使用 Isekai 外观类。除 api 包之外的所有内容均为内部实现,因此公共接口保持小巧且稳定。每个版本均附带源码和 Javadoc jar 包。
- 扩展库本身: 五个分发接口——空间谓词、重映射策略、生物群系区域、地表锚点、过渡规则——均是基于注册表的扩展点。可以从你自己的模组 ID 注册你自己的变体,并在 JSON 中与内置项一起使用。无需分叉,无需提交 PR。
- 问题、想法、Bug: 提交 Issue。用 Isekai 构建了世界?分享一下——我很乐意看看大家做出了什么作品。
MIT · 源代码与文档。与“Isekai Adventure”整合包无关。

接受视频、直播和服务器的付费委托。发送你的想法至:kuronami.mods@gmail.com

Isekai API is a toolbox for the shape and rules of a Minecraft world — not a world, but the machine that makes worlds. Like div/span for web pages, it's a small set of neutral, composable primitives you combine to build any world you can imagine, straight from datapack JSON. It ships no biomes, structures, or themes of its own.
A floating-island world in two files
Reference the shipped isekai_api:hooked_overworld preset from your dimension, then override one small
terrain-shape hook file. No Java, and no copy of vanilla's 2500-line noise_settings — change the hook
and the whole world changes shape. Runnable example: examples/1_shape/floating_island/.
What you can control
Every axis of world generation, as composable primitives:
- Terrain shape — 17 math/geometry density primitives + 5 worldshape composers (
squeeze, y_envelope, blended_noise, band_density, sloped_density). Floating islands, hanging or inverted continents, hollow shells, capped mountains, mirrored/tiled space — any 3D form on any Y band.
- Biome placement — the
isekai_api:rule biome source places biomes by pure spatial rules: vertical layers, concentric rings, regions, and and/or/not combos (y_below 20 -> deep_dark). No climate-noise tuning.
- Surface & fill — re-skin any biome's top block or stone fill from JSON.
isekai_api:vanilla_overworld_surface hands you the whole vanilla overworld surface rule as one line, so overworld replacements skip the 30 KB copy.
- New dimensions — combine the above with vanilla dimension JSON to ship a whole new dimension. Zero Java, zero vanilla edits.
- Atmosphere — per-world sky, fog, and water colors.
- Set-pieces, features & trees — build neutral content from composable parts: drop a hand-authored NBT set-piece only on flat, dry ground (
grounded_template), grow connected block clusters and fluid pools, and assemble decay-safe trees from any trunk + foliage placer. No themes baked in — you supply the blocks.
- Placement control — decide exactly where features/structures go: relative to surface or fluid, by block context, Y range, slope, proximity to a block or biome, and logical combos.
- Re-place existing content — take any vanilla or modded ore, structure, mob, or feature and redistribute it into your world's new shape. A rare ore vanilla buries deep can be remapped to the underside of your floating islands. Strategies: linear, inverted, fixed-range, count-scaling, band-split, pipelines — plus exclude/add.
- Terrain-relative re-placement —
isekai_api:column_local resolves an ore's depth against each column's own surface and underside instead of one absolute Y band. Floating islands, orbiting planets and sky continents get the same internal ore layout whatever altitude they sit at.
- Boot-time validation — broken or mistyped registry references are caught at server start, before they silently no-op.
- Java API —
Isekai.query() reads vanilla/modded worldgen rules; Isekai.remap() declares worldshapes in code.
Built to be built on
Isekai isn't tied to any one world or author. However you want to use it, you're welcome — datapack worldshapes, full Java mods, modpack glue, quick experiments, total conversions. MIT licensed: free to use, fork, and bundle in modpacks.
- Datapack authors: the Datapack Reference lists every key with its JSON shape; copy a runnable skeleton from
examples/ — shape, placement, and adaptation each have their own folder.
- Java modders: add
isekai_api as a compileOnly Gradle dependency (Cursemaven, or the repo's own maven branch — see COMPATIBILITY) and use the Isekai facade. Everything outside the api package is internal, so the public surface stays small and stable. Sources and javadoc jars ship with every release.
- Extend the library itself: the five dispatch interfaces — spatial predicates, remap strategies, biome zones, surface anchors, transition rules — are registry-backed extension points. Register your own variant from your own mod id and use it in JSON alongside the built-ins. No fork, no PR.
- Questions, ideas, bugs: open an issue. Built a world with Isekai? Share it — I'd love to see what people make.
MIT · Source & docs. Unrelated to the "Isekai Adventure" modpack.

Paid commissions for videos, streams and servers. Send me your idea: kuronami.mods@gmail.com

评论 0
登录后参与评分
还没有评论,来抢沙发吧