?SL Library
? 核心库 & 工具类
SL Library 包含一个内部库,旨在支持模组功能,如同步、事件处理、逻辑执行以及客户端渲染工具。
⚙️ 它提供了什么?
该内部库由多个实用模块组成,用于处理:
- ? 网络同步(客户端 ↔ 服务器)
- ? 用于游戏交互的事件驱动系统
- ? 条件逻辑与执行系统
- ? 文件处理与配置工具
- ⚡ 命令注册与处理
- ? 输入处理与玩家交互事件
- ✨ 自定义粒子系统(包括文本粒子)
- ? 兼容性与模块化执行支持
? 网络系统
包含完整的基于数据包的同步层:
- 在客户端和服务器之间同步自定义数据
- 处理冷却时间、标签和状态更新
- 支持粒子与视觉效果的同步
? 事件系统
提供广泛的事件以支持游戏内交互:
- 玩家输入与移动
- 攻击与战斗行为
- 瞄准系统
- 客户端渲染与摄像机控制
? 逻辑 & 执行系统
围绕可复用的“语句”构建的灵活逻辑框架:
- 玩家、实体、物品和装备的条件判断
- 执行链与条件逻辑
- 音效与动作触发器
✨ 粒子系统
包含具有高级功能的自定义粒子引擎:
- 基于文本的粒子
- 缓冲渲染系统
- 用于动画和定位的数学处理器
?️ 工具 & 辅助程序
包含的其他系统:
- 文件读取与路径构建工具
- 配置管理
- 命令注册系统
- 异常处理框架
- 渲染辅助与叠加层工具
?SL Data-Driven
扩展了数据读取功能,无论是通过外部文件夹读取资源包或数据包的数据,还是进行早期的 Jar 包内读取。
? 全局数据驱动文件夹
SL Data-Driven 在你的 `.minecraft` 文件夹内提供了两个特殊的全球目录:
.minecraft/data_driven/resourcepacks
.minecraft/data_driven/datapacks
? 工作原理
放置在这些文件夹中的任何内容,其行为都如同直接构建在游戏或模组中一样。
其关键优势在于:
- 内容是全局的
- 自动适用于所有世界
- 无需按世界单独安装
? 资源包
路径:
.minecraft/data_driven/resourcepacks
- 存储纹理、模型、动画等资产文件
- 行为类似于内置资源包
- 无需手动激活
资源包示例:
? 数据包
路径:
.minecraft/data_driven/datapacks
- 存储数据包和数据驱动逻辑
- 行为类似于标准数据包
- 在所有世界中自动加载
数据包示例:
? 依赖包系统
SL Data-Driven 引入了一种依赖系统,允许其他模组直接在它们的 .jar 包中使用结构化文件(如 JSON)自动添加内容。
这使得创建扩展、兼容性层和数据驱动功能变得容易,而无需修改基础模组。
? 它是如何工作的?
该系统是完全自动化的:
1. 声明依赖关系
你的模组必须在 META-INF 描述符中依赖于 "sl_data_driven"。
2. 文件夹结构
在你的模组内部,创建以下路径:
/data_driven/<your_mod_id>/
3. 添加文件
将希望 SL Data-Driven 处理的任何文件(JSON、配置文件等)放入该文件夹中。
4. 自动加载
启动时,SL Data-Driven 将
- 检测所有依赖它的模组
- 扫描 /data_driven/ 目录
- 将文件作为扩展加载
这允许收集和读取文件,但它不会添加基础读取;所有文件读取都必须进行设计。
确认其工作的一种方法是,例如,检查你的模组 ID 是否列在这里,在这种情况下,我将模组 (SL Library) 添加到了 Data-Driven 中。
有效时:

无效时:

✅ 最低要求
为了让你的 .jar 被识别为有效的模组:
- 必须包含 META-INF 描述符
- 必须使用:
modLoader="lowcodefml"
? 示例配置
modLoader="lowcodefml"
loaderVersion="[47,)"
license="All Rights Reserved"
[[mods]]
modId="your_modid"
displayName="Your Mod Name"
version="1.0"
authors="you"
[[dependencies.your_modid]]
modId="sl_data_driven"
mandatory=true
versionRange="*"
ordering="AFTER"
side="BOTH"
?SL Library
? Core Library & Utilities
SL Library includes a internal library designed to support mod features such as synchronization, event handling, logic execution, and client-side rendering utilities.
⚙️ What does it provide?
The internal library is composed of multiple utility modules that handle:
- ? Network synchronization (client ↔ server)
- ? Event-driven systems for gameplay interactions
- ? Conditional logic and execution systems
- ? File handling and configuration utilities
- ⚡ Command registration and processing
- ? Input handling and player interaction events
- ✨ Custom particle systems (including text particles)
- ? Compatibility and modular execution support
? Networking System
Includes a complete packet-based synchronization layer:
- Sync custom data between client and server
- Handle cooldowns, tags, and state updates
- Support for particle and visual synchronization
? Event System
Provides a wide range of events for gameplay interaction:
- Player input and movement
- Attack and combat behavior
- Targeting systems
- Client-side rendering and camera control
? Logic & Execution System
A flexible logic framework built around reusable "statements":
- Player, entity, item, and equipment conditions
- Execution chains and conditional logic
- Sound and action triggers
✨ Particle System
Includes a custom particle engine with advanced features:
- Text-based particles
- Buffered rendering system
- Mathematical handlers for animation and positioning
?️ Utilities & Tools
Additional systems included:
- File reading and path building utilities
- Configuration management
- Command registration system
- Exception handling framework
- Rendering helpers and overlay utilities
?SL Data-Driven
Extends data reading, whether for resource packs, data packs via external folders, or early internal In-Jar reads
? Global Data-Driven Folders
SL Data-Driven provides two special global directories inside your `.minecraft` folder:
.minecraft/data_driven/resourcepacks
.minecraft/data_driven/datapacks
? How it works
Anything placed inside these folders behaves as if it were built directly into the game or a mod.
The key advantage:
- Content is global
- Works across all worlds automatically
- No per-world installation required
? Resource Packs
Path:
.minecraft/data_driven/resourcepacks
- Store assets such as textures, models, animations, and similar files
- Behaves like a built-in resource pack
- No manual activation required
Resourcepack example:
? Data Packs
Path:
.minecraft/data_driven/datapacks
- Store datapacks and data-driven logic
- Works like standard datapacks
- Automatically loaded in all worlds
Datapacks example:
? Dependency Package System
SL Data-Driven introduces a dependency system that allows other mods to automatically add content using structured files (such as JSON) directly inside their .jar.
This makes it easy to create extensions, compatibility layers, and data-driven features without modifying the base mod.
? How does it work?
The system is fully automatic:
1. Declare the dependency
Your mod must depend on "sl_data_driven" in its META-INF descriptor.
2. Folder structure
Inside your mod, create the following path:
/data_driven/<your_mod_id>/
3. Add your files
Place any files you want SL Data-Driven to process (JSON, configs, etc.) inside that folder.
4. Automatic loading
On startup, SL Data-Driven
- Detects all mods that depend on it
- Scans the /data_driven/ directory
- Loads the files as extensions
This allows collecting and reading files, but it does not add a base read; all file reading must be designed.
One way to confirm that it works is, for example, to check that your modid is listed here, in this case I added the mod (SL Library) to the Data-Driven
When valid:

When it is invalid:

✅ Minimum requirements
For your .jar to be recognized as a valid mod:
- It must include a META-INF descriptor
- It must use:
modLoader="lowcodefml"
? Example configuration
modLoader="lowcodefml"
loaderVersion="[47,)"
license="All Rights Reserved"
[[mods]]
modId="your_modid"
displayName="Your Mod Name"
version="1.0"
authors="you"
[[dependencies.your_modid]]
modId="sl_data_driven"
mandatory=true
versionRange="*"
ordering="AFTER"
side="BOTH"
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SL Library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
解决了在构建“友好”错误时出现的问题。
如果某一列中的名称过长,会导致其向外延伸并破坏行的布局。系统现在会动态生成显示内容以防止此类情况发生,尽管列数已固定为两列。
修复前:
sleys.sl.library.exceptions.RegistryObjectModificationException: Unknown controlable skill event type: 'epicfight_edp:server_tick_event'
Maybe you meant?: epicfight_edp:target_entity_event
Registered Controlable Skill Event Types:
epicfight_edp:
anticipation_animation_eventattack_animation_event recovery_animation_eventanimation_phase_event
attack_entity_event attack_speed_event deal_pre_player_damage_eventdeal_post_player_damage_event
deal_pre_damage_event deal_post_damage_event take_pre_damage_event take_post_damage_event
living_death_event living_kill_event living_incoming_player_dealt_damage_eventliving_incoming_dealt_damage_event
living_incoming_take_damage_eventliving_knockback_event living_shield_blocked_eventliving_shield_block_event
living_use_totem_event living_trigger_totem_eventtarget_entity_event server_target_entity_event
client_target_entity_eventliving_drops_event living_experience_drop_eventliving_breath_event
living_fall_event movement_input_event player_client_use_input_eventplayer_server_use_input_event
player_use_input_event living_heal_event added_mob_effect_event remove_mob_effect_event
expired_mob_effect_eventapplicable_mob_effect_event
Type example: epicfight_edp:living_heal_skill_event
修复后:
sleys.sl.library.exceptions.RegistryObjectModificationException: Unknown controlable skill event type: 'epicfight_edp:living_fall_events'
Maybe you meant?: epicfight_edp:living_fall_event, epicfight_edp:living_kill_event, epicfight_edp:living_heal_event
Registered Controlable Skill Event Types:
epicfight_edp:
anticipation_animation_event attack_animation_event
recovery_animation_event animation_phase_event
attack_entity_event attack_speed_event
deal_pre_player_damage_event deal_post_player_damage_event
deal_pre_damage_event deal_post_damage_event
take_pre_damage_event take_post_damage_event
living_death_event living_kill_event
living_incoming_player_dealt_damage_event living_incoming_dealt_damage_event
living_incoming_take_damage_event living_knockback_event
living_shield_blocked_event living_shield_block_event
living_use_totem_event living_trigger_totem_event
target_entity_event server_target_entity_event
client_target_entity_event living_drops_event
living_experience_drop_event living_breath_event
living_fall_event movement_input_event
player_client_use_input_event player_server_use_input_event
player_use_input_event living_heal_event
added_mob_effect_event remove_mob_effect_event
expired_mob_effect_event applicable_mob_effect_event
client_tick_event server_tick_event
tick_event
类型示例:epicfight_edp:living_heal_skill_event
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧