RenderJS Fork
An mod that supports the modpack authors using KubeJS to draw HUDs and register ItemDecorator(item extra render in inventory), as well as a mod for rendering blocks and items in the world.
介绍
This is a drop-in RenderJS fork for Minecraft 1.20.1 (Forge).
It keeps the original KubeJS client rendering APIs (world/GUI overlays, item decorations,living-entity render events, KubeJS block-entity renderers) and adds the fork-only work below.
Custom moon rendering
KubeJS can restyle the vanilla moon from one client event, RenderJSEvents.renderMoon. Texture, size, and color are applied together in the same sky pass.
- setTexture(…) replaces the moon quad texture
- setSize(…) changes moon size (vanilla is 20)
- setColor(r, g, b) tints the moon and keeps vanilla rain fade
- setColor(r, g, b, a) also overrides alpha
- getMoonPhase() is vanilla 0–7, plus getLevel() / getPartialTick()
RenderJSEvents.renderMoon(event => {
event.setTexture('mypack:textures/environment/custom_moon.png')
event.setSize(28)
if (event.moonPhase === 0) {
event.setColor(1.0, 0.75, 0.45)
}
})
Older split events (changeMoonColor, bindCustomMoonTexture, modifyMoonSize) were folded into this single renderMoon event. Use the unified API.
Colored world outlines
renderBlockOutLine1 / renderBlockOutLine2 now take a hex color string (for example "#FFAA00") instead of a hardcoded dark outline.
Client-only registration
Item-decoration registration runs only on the physical client, so a dedicated server no longer tries to register client render callbacks.
Extra script bindings
Client scripts also get vanilla RenderSystem, plus RenderJSUtils helpers for rotatable/scalable blits and extra fill drawing.
常见问题
RenderJS Fork 支持哪些 Minecraft 版本?
RenderJS Fork 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
RenderJS Fork 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
MomochiKiruya 的其他作品
查看全部 →
Ring of Friendship
A ring can teleport you to your friend.
Gateways To Eternity Dynamic
A fork of Gateways To Eternity which adds dynamic create portal capability.
Chisel Fork
Chisel Modern Fork, remove annoying dependency and add ctm glass.
Multi Builder Tool Fork
Build Multiblocks with one click
评论
登录后评论和评分