跳到正文

JsMacros Ruby

作者:grepsedawk

Ruby support for JsMacros. Add .rb files to macros dir use Ruby. Runs under JRuby.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

JsMacros Ruby

Write your JsMacros macros in Ruby instead of JavaScript. Drop .rb files into your macros folder and they run under JRuby with the full JsMacros API.

Requirements

  • JsMacros Reloaded 2.0.0 or newer — required. This is a companion mod; it does nothing on its own.
  • Fabric, Minecraft 26.1.2+

Install

  1. Install JsMacros Reloaded.
  2. Drop JsMacros Ruby into your mods/ folder — exactly like any other Fabric mod. (No more hunting for a config/jsMacros/Extensions/ folder.)
  3. Write macros as .rb files. They’re picked up automatically and bound to triggers like any JS macro.

Example

Chat.log("Hello from Ruby!")

# the full JsMacros API is available
player = Player.get_player
Chat.log "You are at #{player.get_x}, #{player.get_y}, #{player.get_z}"

Notes

  • JRuby is bundled into the mod (no separate Ruby install needed).
  • Open source — see the source link.

常见问题

JsMacros Ruby 支持哪些 Minecraft 版本?

JsMacros Ruby 支持 Minecraft Java 版 26.1–26.3,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

JsMacros Ruby 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

grepsedawk 的其他作品

查看全部 →