BetaMoon - 适用于 Beta 1.7.3 的 Lua 脚本引擎
BetaMoon 在安装时需要比大多数模组更多的设置,因此请遵循 安装说明!
BetaMoon 是一个基于 Risugami 的 ModLoader 和 MinecraftForge 为 MC b1.7.3 打造的 Lua 脚本引擎。
其目标是为 MC b1.7.3 提供一个易于使用的脚本层,以便在游戏中创建自定义内容或功能,类似于使用 Lua 而非 JS 的 KubeJS。
对于更简单的修改,这使得模组制作过程变得容易得多: 无需搭建模组开发环境、处理混淆和编译错误等,你只需编写 Lua 脚本并启动 Minecraft!
如果出现问题,BetaMoon 会向你报告错误,同时尝试防止 Minecraft 崩溃。
但请注意: BetaMoon 仍在开发中,无法提供你可能想要添加到 Minecraft 中的所有功能。此外,目前对多人游戏的支持非常有限,不建议在服务器上安装 BetaMoon!
你可以在这里找到很棒的 BetaMoon 模组列表。
请注意
BetaMoon 是一个脚本引擎,本身不添加游戏玩法内容。必须使用提供的 Lua API 通过 Lua 脚本来添加内容,如 Wiki 中所解释的那样。
预发布免责声明
本模组的设计考虑了易于扩展性和向后兼容性。然而,由于 BetaMoon 仍处于预发布阶段(版本 <1.0.0),破坏性更改有时是不可避免的。它们也可能发生在主要版本之间。
请注意这一点,保留你的世界备份,并在更新时始终查看变更日志!
特性
目前,BetaMoon 提供以下特性:
- 自定义方块
- 自定义物品
- 自定义工具、护甲及其材料
- 自定义配方及配方类型
- 可交互的物品和方块
- 自定义生物群系、树木和结构
- 矿石生成
- 自定义地形生成器和世界生成设置
- 自定义维度及传送
- 自定义流体
- 自定义粒子
- 覆盖现有的方块、物品等
- 自定义方块实体、容器及方块 GUI
- 可调整大小的 GUI 元素及动画过渡
- 多方块结构
- 逻辑网络及能力系统
- 创建事件处理器及自定义热键
- 发送聊天消息
- 自定义实体
- 修改玩家和实体的移动
- 使用支持的 Bedrock/GeckoLib 风格 JSON 格式的自定义模型和动画
- 自定义声音及大气效果
欲获取完整概览和文档,请访问 Wiki!
安装
要求和安装
- Java 8
- Minecraft Beta 1.7.3(建议通过 MultiMC 或类似的启动器安装)
- 适用于 Beta 1.7.3 的 Risugami 的 ModLoader
- 适用于 Beta 1.7.3 的 MinecraftForge 1.0.6
- 作为模组安装的 BetaMoon 并启用为 Java agent
有关安装说明,请参阅 Readme 部分。
安装脚本
BetaMoon 会自动在你的 .minecraft 文件夹内创建一个 betamoon/scripts 目录,如果你使用 MultiMC/Prism,则会在实例的 .minecraft 文件夹内创建。你可以将新脚本放入其中。
确保包含任何所需的资产并保持其文件夹结构完整。打包好的模组可以作为完整的文件夹或 ZIP 文件安装。
BetaMoon 会在加载脚本时记录遇到的错误,并给你一个弹出窗口列出哪些脚本加载失败。错误和警告也可以在 Scripts 界面中查看。
你可以从该界面重新加载脚本。某些更改(如更改容器布局)需要重启 Minecraft。
查看 GitHub 页面和 Wiki 以获取更多关于安装脚本或开发自己的脚本的信息!
如果你使用 VS Code,还有一个 BetaMoon API 插件 用于代码补全、文档和类型检查。
帮助与反馈
如果你在安装 BetaMoon 时遇到困难,请先查看 安装说明 和 故障排除 页面。
如果你仍然遇到困难或对使用 BetaMoon 有疑问,欢迎直接联系我或在 GitHub Discussions 中提问!那里也欢迎提出关于编写脚本的问题!
报告 Bug
请通过 GitHub Issues 报告 Bug。如果可能,请包括:
- 你的 BetaMoon 版本
- 发生了什么以及你期望发生什么
- 重现问题的步骤
- 你安装的其他模组和 BetaMoon 脚本
- 任何相关的错误消息或截图
你可以从 Scripts → Debug → Full script report 保存诊断报告并将其附加到你的问题中。这包括脚本错误和你设置的有用信息。
如果 Minecraft 无法启动,请附加启动器日志。如果问题出在你编写的脚本上,请包含该脚本或一个能重现它的小示例。
建议功能
你也可以使用 GitHub Issues 来建议未来的功能。请解释你想要创建或改变什么,以及当前 API 中缺少什么。
BetaMoon - A Lua Scripting Engine for Beta 1.7.3
BetaMoon needs a bit more setup during installation than most mods, so please follow the Installation Instructions!
BetaMoon is a Lua scripting engine on top of Risugami's ModLoader and MinecraftForge for MC b1.7.3.
The goal is to provide an easy-to-use scripting layer for MC b1.7.3 to create custom content or functionality for the game, similar to KubeJS with Lua instead of JS.
For simpler modifications, this makes the modding process much easier: Instead of setting up a modding environment, dealing with obfuscation and compile errors, etc., you can just write your Lua script and start Minecraft!
If something fails, BetaMoon will report it to you while trying to prevent Minecraft from crashing.
But be aware: BetaMoon is still being developed and can't offer everything you may want to add to Minecraft. Furthermore, multiplayer support is currently very limited, and it's not advised to install BetaMoon on a server!
You can find a list of awesome BetaMoon Mods here.
Please Note
BetaMoon is a scripting engine and does not add gameplay content itself. Content has to be added using Lua scripts that use the provided Lua API, as explained in the Wiki.
Pre-Release Disclaimer
This mod is designed with easy expandability and backwards compatibility in mind. However, while BetaMoon is in its pre-release stage (versions <1.0.0), breaking changes are sometimes unavoidable. They may also happen between major versions.
Please be aware of that, keep backups of your worlds and always look at the changelog when updating!
Features
Currently, BetaMoon offers the following features:
- Custom Blocks
- Custom Items
- Custom Tools, Armor and their Materials
- Custom Recipes and Recipe Types
- Interactable Items and Blocks
- Custom Biomes, Trees and Structures
- Ore Generation
- Custom Terrain Generators and World Generation Settings
- Custom Dimensions and Teleportation
- Custom Fluids
- Custom Particles
- Overriding existing Blocks, Items, etc.
- Custom Tile Entities, Containers and Block GUIs
- Resizable GUI Elements and Animated Transitions
- Multiblock Structures
- Logical Networks and Capabilities
- Creating Event Handlers and Custom Hotkeys
- Sending Chat Messages
- Custom Entities
- Modifying Player and Entity Movement
- Custom Models and Animations using supported Bedrock/GeckoLib-style JSON formats
- Custom Sounds and Atmosphere Effects
For a full overview and documentation, visit the Wiki!
Installation
Requirements and Installation
- Java 8
- Minecraft Beta 1.7.3 (installation via MultiMC or a similar launcher is recommended)
- Risugami's ModLoader for Beta 1.7.3
- MinecraftForge 1.0.6 for Beta 1.7.3
- BetaMoon installed as a mod and enabled as a Java agent
For installation instructions, please refer to the Readme sections.
Installing Scripts
BetaMoon automatically creates a betamoon/scripts directory inside your .minecraft folder, or your instance's .minecraft folder if you use MultiMC/Prism. You can add new scripts by dropping them in there.
Make sure to include any required assets and keep their folder structure intact. Packaged mods can be installed as complete folders or ZIP files.
BetaMoon logs errors it encounters when loading scripts and gives you a popup listing which scripts failed to load. Errors and warnings are also available in the Scripts screen.
You can reload scripts from that screen. Some changes, like changing container layouts, require restarting Minecraft.
Look at the GitHub page and Wiki for more information on installing scripts or developing your own!
If you use VS Code, there is also a BetaMoon API addon for code completion, documentation and type checking.
Help and Feedback
If you have trouble installing BetaMoon, please check the installation instructions and Troubleshooting page first.
If you're still stuck or have questions about using BetaMoon, feel free to contact me directly or ask in GitHub Discussions. Questions about writing scripts are welcome there too!
Reporting Bugs
Please report bugs through GitHub Issues. If possible, include:
- Your BetaMoon version
- What happened and what you expected to happen
- Steps to reproduce the problem
- Other mods and BetaMoon scripts you have installed
- Any relevant error messages or screenshots
You can save a diagnostic report from Scripts → Debug → Full script report and attach it to your issue. This includes script errors and useful information about your setup.
If Minecraft won't start, attach the launcher log instead. If the problem happens with a script you wrote, please include the script or a small example that reproduces it.
Suggesting Features
You can also use GitHub Issues to suggest future features. Please explain what you want to create or change and what you're currently missing in the API.
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetaMoon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
0.11.0
实体移动
- 为支持的玩家和生物添加可组合的自定义移动规则,包括重力、 空气/流体阻力、加速度、跳跃、潜行行为、跌落追踪及跌落伤害。
- 添加分步的原生/手动运动指令、独立叠加力以及碰撞后观察机制。 暴露逻辑玩家输入和路由物理边缘。
材质与踏步音效
- 为方块和流体添加自定义材质,同时保留原版材质支持。
- 为方块添加基于音效事件的踏步音效,与原版踏步音效并存。
- 在方块调试导出中包含材质和踏步音效详情。
脚本配置
- 添加游戏内脚本配置编辑器,支持阶段性更改、默认值及验证功能。
- 支持布尔值、数字、字符串、列表、字典及固定嵌套设置,并可选标签、描述、 边界、选项及只读条目。
- 允许脚本为数值选择文本字段、滑块、下拉菜单或循环按钮。列表和字典可使用 单独控件或逗号分隔的文本来表示。
- 使嵌套部分和集合可折叠。除非声明为
expanded = true,否则默认为关闭状态。 - 添加固定选项的多选列表、可选的编辑器标题/分隔线及字段顺序,以及仅草稿状态的逐字段重置按钮。
- 原子保存更改,检测冲突的文件编辑,并保留未知的 JSON 字段。
- 保存后更新实时 Lua 值,并支持带有错误报告和重试功能的
onChange回调。
生物群系与区域生成覆盖
- 允许脚本注册可选的主世界生物群系/区域包,同时 Minecraft 仍作为基础生成器。
- 通过原生和自定义生成阶段应用限定范围的地形来源、材质规则、雕刻器、表面及种群抑制。保持生物群系身份不变,并保留未受影响的原始原生列。
- 将所选包、有效顺序及依赖签名与生成设置一起保存;重新打开时拒绝已更改或缺失的启用定义。为目标影响力和选定通道添加点/区块检查功能。
位置参数
- 在世界、实体、多方块结构、粒子、传送及世界生成运行时 API 中,除数值坐标外,还接受命名位置表和位置对象。保留每个操作的坐标单位和限制。
- 要求方块坐标和整数位置构造使用精确整数;拒绝非有限值和超出范围的浮点数位置。
- 在数值 X/Z 空间字段查询中保留非零和小数 Z 坐标。
优化与可靠性
- 在持有期间保持流体、资产和音效事件 Lua 引用标识的稳定,并保留类似值的方块/物品视图。
- 允许采用可选的配置架构版本,提供经过验证的原子迁移功能,并对较新版本或损坏的文件进行保护。
- 对重复查找的方块/物品名称建立索引,同时保留别名和首次匹配行为。
- 允许打包依赖项要求最低三位数字版本号。
内置资产
- 添加
minecraft:block/full_block,这是一个具有default材质槽的全立方体模型。 - 通过纹理资产 API 暴露 Minecraft 的完整客户端 PNG 图像及地形/物品图集单元格。
- 通过选定的原版纹理包及其客户端 JAR 回退机制解析原生引用,使用如
terrain.png和gui/items.png等原生路径。 - 支持在方块、物品和实体模型材质中使用实时原生图集单元格。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧