截图
介绍
ScriptCraft lets you create mods using Javascript. http://github.com/walterhiggins/ScriptCraft/
ScriptCraft is a plugin for Minecraft Servers which lets operators, administrators and plug-in authors customize the game using Javascript. ScriptCraft makes it easier to create your own mods. Mods can be written in Javscript and can use the full CanaryMod API or Bukkit API.
Once ScriptCraft is installed, you can create a new Minecraft mod by adding .js files to the scriptcraft/plugins directory. The following example will add a new ‘jsp greet’ command to the game:
// scriptcraft/plugins/greet.js
var utils = require('utils');
command(function greet( params, sender){
var recipient = utils.player( params[0] );
echo( recipient, 'Hi ' + recipient.getName() );
}, utils.playerNames);
At the in-game prompt type ‘jsp greet <TAB>’. Pressing the TAB key brings up a list of player names. Choose a player and hit enter. The player will receive the message.
常见问题
ScriptCraft 支持哪些 Minecraft 版本?
ScriptCraft 支持 Minecraft Java 版 1.7.8–1.8.1,共 5 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
ScriptCraft 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分