Inline
Inline 是一个用于在文本中渲染内联内容的 Minecraft 库。它提供了一些面向玩家的功能,主要用于娱乐,同时也作为未来开发者的示例和辅助工具。
查看画廊以获取一些示例!
面向玩家的功能
客户端
Inline 自带了几个内置的匹配器:
- 物品 -- 例如:
[item:diamond_sword]-- 支持任何物品 ID - 实体 -- 例如:
[entity:pig]-- 支持任何实体类型 ID - 玩家头颅 -- 例如:
[face:samsthenerd]-- 支持玩家名称 - 模组图标 -- 例如:
[mod:inline]
你可以使用各种字符来替代 :,其中一些会修改渲染的大小,非常适合用于告示牌标签!
;和:为正常大小,为 0.75 倍缩放!为 1.5 倍缩放+为 2 倍缩放
有一个客户端配置项,用于限制聊天消息中的最大渲染尺寸,以防止垃圾信息阻塞其他消息。
你还可以在这些标记前加上 \ 来防止其被匹配。
其他一些模组(如 emi、rei 以及其他可能的模组)会在物品的工具提示中添加该物品所属模组的名称。Inline 会检测这一点并将模组的图标附加到上面。
所有这些功能都可以从游戏内的配置屏幕中进行配置。
Create 兼容
Inline 渲染可用于 Create 的显示板。由于存在一些限制,在使用显示链接时可能需要比预期更宽的显示板,否则内容会被截断且无法正确匹配/渲染。
服务端
服务端匹配器用于匹配 [show:hand] 或 [show:offhand],以便在聊天中展示你当前手持的物品。
已知模组冲突
- Emojiful - 由于其替换了文本渲染器,导致 Inline 的 Mixin 无法应用。
如果你发现其他冲突,请提交 Issue 反馈!
开发者

查看 readme 以获取更多关于使用 Inline 进行开发的信息!
Inline
Inline is a minecraft library for rendering in-line with text. It has some player facing features, mostly for fun, but also to serve as examples and helpers for future devs.
Check out the gallery for some examples !
Player Facing Features
Clientside
Inline comes with a couple of built-in matchers:
- Items -- ex:
[item:diamond_sword]-- supports any item id - Entity -- ex:
[entity:pig]-- supports any entity type id - Player heads -- ex:
[face:samsthenerd]-- supports player name - Mod Icon -- ex:
[mod:inline]
You can use various characters in place of the :, some of which modify the size of the render, good for sign labels!
;and:are normal size,is x0.75 scale!is x1.5 scale+is x2 scale
There's a clientside config for upper size limit of in-chat messages to prevent spam from blocking other messages.
You can also prefix any of these with \ to prevent it from matching.
Some other mods, such as emi, rei, and probably others, add the name of the mod that an item comes from to its tooltip. Inline will look for this and attach the mod's icon to it.
All of these are configurable from the in-game config screen.
Create Interop
Inline renders can be used on the create display boards. Due to some limitations, it can be a bit iffy with display links where you need a wider display board than you'd think, otherwise it gets cut off and won't match/render properly.
Serverside
Server-side matchers match against [show:hand] or [show:offhand] to show off your currently held item in chat.
Known Mod Conflicts
- Emojiful - due to them replacing the text renderer, preventing inline's mixins from applying.
If you find any others, please open an issue about it !
Devs

Check out the readme for more information on developing with Inline !
下载 Inline
下载 Inline
下载 Inline
下载 Inline
下载 Inline
下载 Inline
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.2.2
修复
- 由 SVG 解析器导致的服务器端崩溃
- 不再支持 SVG 文件——如果你是模组开发者并希望此功能,请联系我。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧