一个提供与物品、效果、渲染和玩家相关实用工具的简单库。
部分工具源自其他库。
实现方法
将 Modrinth 的仓库添加到你的 build.gradle repositories 中。
maven {
url = "https://api.modrinth.com/maven"
}
然后,在 build.gradle 的 dependencies 块中添加 Lumenium 的依赖。
modImplementation "maven.modrinth:lumenium:${project.lumenium_version}"
接着,在你的 gradle.properties 中输入正确的 Lumenium 版本号。
或者,你也可以将其作为 jar-in-jar 依赖使用。
将 jar 文件放置在与 build.gradle 相同的主文件夹中。
然后,在 build.gradle 的 dependencies 块中输入以下代码:
modImplementation files(lumenium-1.0.0)
将 1.0.0 替换为你正在使用的 Lumenium 的实际版本号。
功能列表
光束渲染器 (Beam Renderer)
- 在客户端或通用(服务端)侧创建带有纹理的光束。
球体渲染器 (Sphere renderer)
- 在客户端或通用(服务端)侧创建带有纹理的球体。
四边形渲染器 (Quad Renderer)
- 在客户端或通用(服务端)侧创建带有纹理的四边形。
立方体渲染器 (Cube renderer)
- 在客户端或通用(服务端)侧创建带有纹理的立方体。
屏幕闪光 (Screen Flash)
- 在屏幕上产生颜色闪烁效果。
缓动函数 (Easings)
- 简单的缓动函数。源自 LodestoneLib。
不可清除的效果 (Unclearable Effects)
- 使状态效果无法被清除。
自定义命中音效物品 (Custom Hit Sound Item)
- 每次命中时播放自定义音效。
自定义物品名称颜色 (Custom Item Name Color)
- 根据十六进制代码更改物品名称的颜色。
击杀保存物品 (Kill Save Item)
- 当玩家死亡时保存其生命/状态。
双手持握物品 (Two-Handed Item)
- 使物品变为双手持握模式。
击杀特效物品 (On Kill Effect Item)
- 当实体被击杀时执行代码。
备注
- 感谢 Homak 提供 立方体和四边形渲染器!
- 太阳、地球及星空背景的纹理素材来源于 SolarSystemScope。
- 该库的所有用法指南请参阅 文档。
- 缓动工具源自 LodestoneLib。
Simple library adding utilities related to items, effects, rendering, and players.
Some utilities are derived from other libraries.
Implementation
Add the repository for Modrinth to your build.gradle repositories.
maven {
url = "https://api.modrinth.com/maven"
}
Then, add the dependency for Lumenium in your build.gradle dependencies block.
modImplementation "maven.modrinth:lumenium:${project.lumenium_version}"
Then simply input the correct version of Lumenium in your gradle.properties.
Alternatively, it can be used as a jar-in-jar dependency.
Place the jar file in the your main folder, where build.gradle is.
Then, in build.gradle, input the following line in the dependencies block.
modImplementation files(lumenium-1.0.0)
Replace 1.0.0 with whatever version of Lumenium is being used.
List of Features
Beam Renderer
- Creates a textured beam on either client or common(server) side.
Sphere renderer
- Creates a textured sphere on either client or common(server) side.
Quad Renderer
- Creates a textured quad on either client or common(server) side.
Cube renderer
- Creates a textured cube on either client or common(server) side.
Screen Flash
- Creates a flash of color on the screen.
Easings
- Simple easing functions. Derived from LodestoneLib.
Unclearable Effects
- Makes a status effect unclearable.
Custom Hit Sound Item
- Plays a custom sound on every hit.
Custom Item Name Color
- Changes the color of an Item's name based on hex code.
Kill Save Item
- Saves a player from death when killed.
Two-Handed Item
- Makes an Item two-handed.
On Kill Effect Item
- Runs code when an entity is killed.
Side note
- Thanks to Homak for providing Cube & Quad renderers!
- Textures for the Sun, Earth, and star background sourced from SolarSystemScope.
- A guide to all of the library's usage is provided in the documentation
- Easing utilities derived from LodestoneLib.
下载 Lumenium
下载 Lumenium
下载 Lumenium
下载 Lumenium
下载 Lumenium
下载 Lumenium
修复了因 @Environment 不匹配导致服务器崩溃的渲染器问题,并添加了一个简单的烟雾粒子效果。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧