? SI: Essentials
Soncresity Industries 出品的主 API、库和工具包。
✨ 概览
SI: Essentials 是一个集 API、库和工具包于一体的模组。它是希望优化整合包或开发自己模组的用户的绝佳选择。
? 功能
移除模块
移除子模块允许你禁用游戏中的特定物品。你可以通过 ID、组件(Components)和正则表达式(regex)来实现。你可以完全禁用该物品,或者仅禁用特定的操作/功能,例如攻击/与该物品互动或其配方。
日志记录器
SI: Essentials 自带一个自定义日志记录器,基于 Minecraft 模组中常用的 slf4j 日志记录器。通过我们的设置,我们可以为每个世界创建单独的日志文件,其中仅包含你的模组的输出。这有助于更快地在代码中查找问题。
我们的日志记录器还附带一个调试选项,由 SI: Essentials Common Cnfg 中的全局 debug_enabled 值控制。虽然调试输出仅在 Minecraft 日志中根据该值可见,但调试输出将始终记录到上述自定义日志文件中。
配置 API
我们的配置 API 允许开发者在项目中使用多种配置,并访问和设置配置键与值。目前,你可以选择 cnfg 或 objt 文件格式。
命令工具类
命令工具类允许你以玩家身份执行命令,同时能够自定义权限、位置和旋转角度。
小数工具类
小数工具类允许你将小数值四舍五入到逗号后指定的小数位数。
文件哈希工具类
文件哈希工具类允许你获取文件的 SHA256 哈希值/校验和,并以字符串形式返回。
物品工具类
物品工具类允许你从字符串解析物品和物品堆栈,反之亦然。
消息工具类
消息工具类允许你使用 Adventure/MiniMessage API 发送(私聊或广播)消息(在聊天栏或动作栏中)。
注册表工具类
注册表工具类通过提供有用的辅助方法,简化了注册物品和方块的过程。
单人游戏工具类
单人游戏工具类允许检查 ServerPlayer 是否是单人世界的房主。如果你的模组包含封禁玩家的功能,但又不想封禁世界房主(否则他们的世界将无法正确保存,其他玩家会被踢出),这将非常有用。
槽位工具类
槽位工具类允许你获取大型箱子 GUI 中槽位的 x 和 y 坐标。这对于我们的槽位预设很有用。
音效工具类
音效工具类允许你将音效 ID 解析为 SoundEvent,随后可用于为单个玩家单独播放音效或进行广播。
标题工具类
注:原文此处误写为 Decimal Utilities,实际应为 Title Utilities
标题工具类允许你使用 Adventure/MiniMessage API 向玩家显示和广播完全可定制的标题。
? 依赖要求
- Minecraft 1.21.1, 1.21.4, 1.21.8, 1.21.10 或 1.21.11
- SI: Essentials
- NeoForge 或 Fabric
? Wiki 与文档
? 了解更多、指南和完整文档:➡️ SI: Essentials Wiki
? 社区与支持
? 加入我们的社区并获得帮助:➡️ Discord
? 报告错误 & 请求功能:➡️ 支持
? 链接
❤️ 支持我们
如果你喜欢这个项目,请考虑支持我们:➡️ Patreon
? 关于 Soncresity Industries
本项目由 Soncresity Industries 开发,这是一个专注于打造高品质 Minecraft 体验、工具和系统的团队。
⚠️ 许可与使用
本项目遵循 Soncresity Standard License (SSL) 许可证。您可以在此查看 许可证全文
? 致谢
- Soncresity Industiries
- SkyKing_PX
- KalarianAthecila
? SI: Essentials
The main API, library and toolkit by Soncresity Industries.
✨ Overview
SI: Essentials is an API, library and toolkit, all in one mod. It's a great pick for anyone looking to improve their modpack or developing their own mod.
? Features
Remover Module
The Remover submdule allows you to disable certain items in the game. You can do that through IDs, Components and regular expressions (regex). You can either disable the item completely or only disable specific operations/features such as attacking/interacting with the item or its recipes.
Logger
SI: Essentials comes with a custom logger, that is based on the slf4j logger that is commonly used in Minecraft Mods. With our setup, we allow to create separate log files for each world that only contain the output of your mod. This makes finding issues in your code faster.
Our logger also comes with a debug option that is controlled with the global debug_enabled value of the SI: Essentials Common Cnfg. While debug output is only visible depending on that value in the Minecraft logs, debug output will always be logged to your custom logfile that was explained above.
Configuration API
Our Configuration API allows you, as a developer, to create multiple configurations in your projects and access and set configuration keys and values. Currently, you can choose the cnfg or the objt file type.
Command Utilities
The Command Utilities class allows you to execute commands as a player while being able to customize the permissions, position and rotation.
Decimal Utilities
The Decimal Utilities class allows you to round a decimal value to a set number of decimal points / places after the comma.
File Hash Utilities
The File Hash Utilities class allows you get the SHA256 file hash / checksum of a file as a String.
Item Utilities
The Item Utilities class allows you parse Items and Item Stacks from Strings or vice versa.
Message Utilities
The Message Utilities class allows you to send (privately and broadcast) messages (in the chat or Action Bar) with the Adventure/MiniMessage API.
Registry Utilities
The Registry Utilities class makes the process of registering Items and Blocks easier by providing useful helper methods.
Singleplayer Utilities
The Singleplayer Utilities class allows check whether a ServerPlayer is the host of a Singleplayer World. This may be useful when your Mod includes banning players but you don't want to ban the world host as otherwise their world wouldn't get saved properly and other players would get kicked.
Slot Utilities
The Slot Utilities class allows you to get the x and y position of a slot in a large chest GUI. This is useful for our Slot presets
Sound Utilities
The Sound Utilities class allows you to parse Sound IDs to a SoundEvent which you can then use to either play a sound privately for one player or broadcast it.
Title Utilities
The Decimal Utilities class allows you to show and broadcast fully customizable Titles to players using the Adventure/MiniMessage API.
? Requirements
- Minecraft 1.21.1, 1.21.4, 1.21.8, 1.21.10 or 1.21.11
- SI: Essentials
- NeoForge or Fabric
? Wiki & Documentation
? Learn more, guides, and full documentation: ➡️ SI: Essentials Wiki
? Community & Support
? Join our community and get help: ➡️ Discord
? Report bugs & request features: ➡️ Support
? Links
❤️ Support Us
If you enjoy this project, consider supporting us: ➡️ Patreon
? About Soncresity Industries
This project is developed by Soncresity Industries, a team focused on creating high-quality Minecraft experiences, tools, and systems.
⚠️ License & Usage
This project is licensed under the Soncresity Standard License (SSL). You can view it here
? Credits
- Soncresity Industiries
- SkyKing_PX
- KalarianAthecila
下载 SI: Essentials
下载 SI: Essentials
下载 SI: Essentials
下载 SI: Essentials
下载 SI: Essentials
下载 SI: Essentials
下载 SI: Essentials
下载 SI: Essentials
下载 SI: Essentials
下载 SI: Essentials
这是一个不稳定的模组版本——使用请自行承担风险!
- 改进了移除模块中的一个 mixin 类,以防止崩溃/模组不兼容问题(修复了与 Supplementaries 的冲突)
对于开发者
- 无变更
注意:当该模组的完全稳定版本发布时,所有先前不稳定版本的更新日志将被合并。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧