NanTian 发表于 2024-3-30 09:27:56

【转载】【多版本】Skript脚本插件


[*]什么是脚本库?
脚本库是Skript脚本的“脚本百科”,你可以在脚本库中查看各类脚本的索引。当然,你也可以在脚本库中收录/认领自己的脚本。
[*]访问脚本库
脚本库 <---点击访问
[*]关于脚本库
脚本库负责人:0o酱(讨论)点击右方“讨论”按钮可以咨询脚本库的相关问题(你也可以在主页中寻找我的联系方式)Skript原文地址http://njol.ch/projects/skript/介绍Skript是一个流行的服务器插件。它允许服务器管理员在不写任何Java语言的情况下简单的管理Minecraft。这是用触发器、条件和效果三个部分做到的。当触发器触发,所有条件均满足,效果就会被触发。Skript的基础想法是——自定义 —— 每个服务器都能在没有自定义插件的情况下表现不同。这比你自己钻研插件和找人写插件快的多。同时你也不需要那么多小插件了,这一个插件就够了。你可以在[这里]下载最新版本的Skript已经提及了,Skript的触发器提供了这个插件的基本功能。Skript中文wiki官方链接:Skript - Minecraft插件百科 (mineplugin.org)
<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">触发器很普通,并由一些条件和效果组成,就像这个简单的掉落修复脚本:</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">
</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on break of glass:
    drop glass
译者注:
当打破玻璃的时候:
    掉落玻璃
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">
Skript也能用来做自定义命令。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这些基本的触发器已被改成了执行特定的命令。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">下面的简单触发器允许玩家在手持物品输入/id时显示它的ID。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">
</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /id:
    description: Find the ID of the item you're holding
    trigger:
      message "You're holding a %type of tool% whose ID is %id of tool%."
译者注:
当使用/id时:
    描述: 获取你当前持有物的ID
    触发器:
      给玩家发送消息 "你现在正在拿着一个%type of tool%[工具类型] ,它的ID是 %id of tool%[工具ID]"
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">
Skript同时也有直接从聊天栏执行效果的选项,输出一个可配置的符号打头(!是默认的)的聊天信息。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这经常被指令使用。例如,</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">!repair tool</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">,将会修复你的工具。因为这些指令非常强大且用的地方很多。 只有在玩家拥有</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">skript.effectcommands</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">权限时才能使用(OP默认不拥有!)</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">Skript的语法不仅限制于上面的简单指令,还包括一些循环,包含等语法。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">下面的脚本是一个很简单的从附近箱子抽调燃料的例子——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on burn of fuel:
    fuel slot of the block is empty
    loop blocks in radius 1:
      loop-block is chest
      loop items of type fuel:
            loop-block contains loop-item
            remove loop-item from loop-block
            set fuel of the event-block to loop-item
            stop trigger
译者注:
当燃料燃烧时:
    熔炉的燃料槽空了
    在周围半径一格寻找方块:
      寻找箱子
      寻找物品是燃料类型
            箱子包含燃料
            从箱子中移除燃料
            把燃料移到燃料槽
            停止触发器
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">更多信息请前往[<a class="external text" href="https://dev.bukkit.org/bukkit-plugins/skript/" style="text-decoration-line: none; color: rgb(51, 102, 187); background: linear-gradient(transparent, transparent) right center no-repeat, url(&quot;data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22%3E %3Cpath fill=%22%23fff%22 stroke=%22%2336c%22 d=%22M1.5 4.518h5.982V10.5H1.5z%22/%3E %3Cpath fill=%22%2336c%22 d=%22M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M9.995 2.004l.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z%22/%3E %3C/svg%3E&quot;); padding-right: 13px;">BukkitDev</a>]<sup id="cite_ref-2" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap;"><a href="https://mineplugin.org/Skript#cite_note-2" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup>,然后也请阅读下面的教程和帮助文档。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">教程是新手的必读品。它解释了如何写一个脚本。这里是[<a class="external text" href="https://dev.bukkit.org/bukkit-plugins/skript/pages/general-tutorial/" style="text-decoration-line: none; color: rgb(51, 102, 187); background: linear-gradient(transparent, transparent) right center no-repeat, url(&quot;data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22%3E %3Cpath fill=%22%23fff%22 stroke=%22%2336c%22 d=%22M1.5 4.518h5.982V10.5H1.5z%22/%3E %3Cpath fill=%22%2336c%22 d=%22M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M9.995 2.004l.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z%22/%3E %3C/svg%3E&quot;); padding-right: 13px;">另一段教程</a>]<sup id="cite_ref-3" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap;"><a href="https://mineplugin.org/Skript#cite_note-3" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup></p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">帮助文档是所有触发器的集合,这里面有所有关于脚本的东西。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">
[<a class="external text" href="http://dev.bukkit.org/bukkit-plugins/skript/" style="text-decoration-line: none; color: rgb(51, 102, 187); background: linear-gradient(transparent, transparent) right center no-repeat, url(&quot;data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22%3E %3Cpath fill=%22%23fff%22 stroke=%22%2336c%22 d=%22M1.5 4.518h5.982V10.5H1.5z%22/%3E %3Cpath fill=%22%2336c%22 d=%22M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M9.995 2.004l.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z%22/%3E %3C/svg%3E&quot;); padding-right: 13px;">链接到BukkitDev</a>]</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">[<a class="external text" href="http://dev.bukkit.org/bukkit-plugins/skript/forum/" style="text-decoration-line: none; color: rgb(51, 102, 187); background: linear-gradient(transparent, transparent) right center no-repeat, url(&quot;data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22%3E %3Cpath fill=%22%23fff%22 stroke=%22%2336c%22 d=%22M1.5 4.518h5.982V10.5H1.5z%22/%3E %3Cpath fill=%22%2336c%22 d=%22M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M9.995 2.004l.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z%22/%3E %3C/svg%3E&quot;); padding-right: 13px;">链接到作者论坛</a>]</p><h2 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 1em; margin-bottom: 0.25em; overflow: hidden; border-bottom: 1px solid rgb(162, 169, 177); font-family: &quot;Linux Libertine&quot;, Georgia, Times, serif; line-height: 1.3;"><span id="教程"></span><span class="mw-headline" id=".E6.95.99.E7.A8.8B">教程</span></h2><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="作者在自带页面给出的教程"></span><span class="mw-headline" id=".E4.BD.9C.E8.80.85.E5.9C.A8.E8.87.AA.E5.B8.A6.E9.A1.B5.E9.9D.A2.E7.BB.99.E5.87.BA.E7.9A.84.E6.95.99.E7.A8.8B">作者在自带页面给出的教程</span></h3><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="开始"></span><span class="mw-headline" id=".E5.BC.80.E5.A7.8B">开始</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在你开始写脚本之前你应该先安装Skript插件</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">下载最新的Skript插件,把它放入plugins,重启服务器来生成配置和一些示例脚本。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="写触发器"></span><span class="mw-headline" id=".E5.86.99.E8.A7.A6.E5.8F.91.E5.99.A8">写触发器</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在你打开你的编辑器之前我推荐你知道你要写什么脚本,但你可以简单地开始写了。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在这个教程中我会说明如何写一个用锄头来直接撒播种子的脚本。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">它应该包括 当一个人手持锄头右键泥土时自动种植作物。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">首先,打开你的文档编辑器[例如NotePad++] <sup id="cite_ref-4" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap;"><a href="https://mineplugin.org/Skript#cite_note-4" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup></p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">现在思考怎么样能让你的触发器被触发,所以我们写下第一行:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on right click:
译者注:
在右键时:
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你不知道有哪些条件可以触发的话,点击[<a class="external text" href="http://njol.ch/projects/skript/doc/events/" style="text-decoration-line: none; color: rgb(51, 102, 187); background: linear-gradient(transparent, transparent) right center no-repeat, url(&quot;data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22%3E %3Cpath fill=%22%23fff%22 stroke=%22%2336c%22 d=%22M1.5 4.518h5.982V10.5H1.5z%22/%3E %3Cpath fill=%22%2336c%22 d=%22M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M9.995 2.004l.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z%22/%3E %3C/svg%3E&quot;); padding-right: 13px;">这里</a>]<sup id="cite_ref-5" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap;"><a href="https://mineplugin.org/Skript#cite_note-5" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup></p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">但是我们不想让人们右键都触发,只是在泥土上用锄头而已。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">所以我们应该改变一下——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on right click on soil holding a hoe:
译者注:
当持有锄头右键泥土时:
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">我们也可以用这个事件+条件来替代——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on right click:
    block is soil
    player is holding a hoe
译者注:
当右键时:
    方块是泥土
    玩家手持锄头
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这两种都可以,但我在这篇文档中将使用第一种。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">然后我们来检测玩家有无种子:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on right click on soil holding a hoe:
    player has seeds
译者注:
当用锄头右键泥土时:
    玩家拥有种子
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">请注意第二行的缩进。这会使读取器认为这是一个触发器中的语句,并且使脚本更简单的阅读。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你不注意这个缩进的话你的插件就会报错因为插件认为他们不属于一个触发器。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在那之后我们应该种植作物了——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on right click on soil holding a hoe:
    player has seeds
    set block above the clicked block to crops
译者注:
当手持锄头右键泥土时:
    玩家拥有种子
    将泥土上方的方块设置为作物
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这不是很精确因为可能我们点击的泥土方块上方有方块(如下图)</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);"> <- 其他方块</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);"> <- 泥土方块</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果我们只是设置的话我们会覆盖掉原有方块。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这可能是别的玩家领地中的物品甚至是基岩。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这样的问题看起来并不明显但会有BUG的存在。你可以在你服务器上使用之前先在一个测试服务器上尝试运行。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个问题可以用检测泥土上方的方块来解决——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on right click on soil holding a hoe:
    player has seeds
    block above the clicked block is air
    set block above the clicked block to crops
当手持锄头右击方块时:
    玩家拥有种子
    被点击方块的上面是空气
    把点击方块上面的方块设置为作物
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">然后不要忘了移除玩家的种子,不然他们就有免费作物了:D</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on right click on soil holding a hoe:
    player has seeds
    block above the clicked block is air
    set block above the clicked block to crops
    remove seeds from player
当手持锄头右击方块时:
    玩家拥有种子
    被点击方块的上面是空气
    把点击方块上面的方块设置为作物
    移除玩家的种子
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">最后一件事是把你的脚本储存到</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">./plugins/Skript/scripts</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">里,你可以取任何名字。 但请不要以</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">-</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">号打头,因为这会使脚本无法读取。 文件的扩展名必须是</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">.sk</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">,例如,你可以把这个脚本储存为</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">hoe.sk</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">
现在开启你的服务器[可能是测试的],检查后台有无错误信息,如果有,尝试修复。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">然后登入服务器测试脚本查看是不是都可以运行。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你测试完毕,你可以上传到你的主服务器让玩家使用了。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你也可以使用</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">/sk reload 脚本名称</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">来使脚本重载。这方便你调试脚本,不要重启服务器。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">所有的错误将会发送给使用指令的玩家。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果后台使用,将发送给后台。</p><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="BukkitDev给出的教程"></span><span class="mw-headline" id="BukkitDev.E7.BB.99.E5.87.BA.E7.9A.84.E6.95.99.E7.A8.8B">BukkitDev给出的教程</span></h3><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">Skript的目标就是让不会语法的程序员们写他们自己的小插件[称之为脚本]。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">我感觉这个目的渐渐的被人淡化因为人们也不会写脚本。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个教程教写脚本的新人,如何让这个绝妙的插件在TA的服务器上工作。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">[<a class="external text" href="http://njol.ch/projects/skript/doc" style="text-decoration-line: none; color: rgb(51, 102, 187); background: linear-gradient(transparent, transparent) right center no-repeat, url(&quot;data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22%3E %3Cpath fill=%22%23fff%22 stroke=%22%2336c%22 d=%22M1.5 4.518h5.982V10.5H1.5z%22/%3E %3Cpath fill=%22%2336c%22 d=%22M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M9.995 2.004l.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z%22/%3E %3C/svg%3E&quot;); padding-right: 13px;">帮助文档</a>]解释了你服务器所需要的所有的脚本构成。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">我不是这里单一的教程帖子了,我将会引用一些他们的东西。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个插件在你自己编程的时候非常有用,你可以做你想做的东西,以及它不需要完美的语法。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">帮助文档可以在这篇文章的最上方找到。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">变量,循环,指令,条件和事件—— 你写脚本的时候,你最少要用到一个,甚至你可能都需要。 下面我会详细介绍每个是干什么的,什么时候用他们——</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="事件"></span><span class="mw-headline" id=".E4.BA.8B.E4.BB.B6">事件</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">事件就是当一件事情发生的时候,例如玩家点击了一些东西,打出伤害,狗带,或一个怪物做了一些事情,甚至是环境自己改变。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这允许你做一些另外的事情——例如:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on explode:
      cancel event
当爆炸时:
      取消事件的发生
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">注意空格,事件后都有一个冒号。你可以用4个或8个空格<sup id="cite_ref-6" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap;"><a href="https://mineplugin.org/Skript#cite_note-6" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup>。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你不能使用tab或空格来换行。我偏向于使用tab来缩进因为我只需要点一次<sup id="cite_ref-7" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap;"><a href="https://mineplugin.org/Skript#cite_note-7" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup></p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">真正的事件其实非常简单。当一个爆炸发生,取消它。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这能很好地防止TNT 苦力怕的爆炸,甚至防止末影龙。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">记住这个会真正的取消爆炸,就是玩家也不会受到伤害。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">所以这个脚本非常简单,你可以简单的变换结局。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">例如杀死服务器上的所有玩家<sup id="cite_ref-8" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap;"><a href="https://mineplugin.org/Skript#cite_note-8" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup></p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="条件"></span><span class="mw-headline" id=".E6.9D.A1.E4.BB.B6">条件</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">条件是任何脚本的基础。他们是执行下一部分的条件代码。一个权限示例如下——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on rightclick:
      player has permission "skript.boom"
      create explosion with force 3 at targeted block
当右键时:
      玩家拥有"skript.boom"权限
      在指向方块处创造力量为3的爆炸
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这会创建一个比TNT更小的爆炸,但只会在玩家拥有对应权限时工作。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">条件能被用来检查玩家是否拥有物品,或牌子上写的东西。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你甚至可以用多个条件来限制效果。</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on rightclick:
      block is a sign
      line 1 of sign is ""
      player has permission "skript.shop"
      player has 2 gold nuggets
      remove 2 gold nuggets from player
      give player 1 bread
      message "<light green>You bought a bread."
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在这个脚本中玩家必须右击一个第一行为的牌子,拥有权限,2个金粒,然后才能有效果。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="指令"></span><span class="mw-headline" id=".E6.8C.87.E4.BB.A4">指令</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">每个服务器的管理员都知道指令,这是你运营服务器的方式。 Skript允许你自己自定义指令。这些命令与事件写法大体相似,除了事件需要被你自定义。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个事件简单的版本是通过玩家输入指令来自定义效果。如果想获取更好的想法,看我下面的例子。</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /hi:
      permission: skript.hi
      trigger:
                message "hi"
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个简单的命令给发送/hi的玩家发送消息。第一行是事件。首先我们说要自定义一个命令,然后我们写什么命令。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">然后我们给它一个权限和使用方法。最后,我们增加触发器,使我们想要指令做的事情。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你可以看网页提及的自定义命令的部分。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你也可以做一些可以获取信息的指令,或者指定被作用效果的玩家。看下面的指令:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /hi <player>:
      permission: skript.hi
      trigger:
                send "hi" to argument
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个命令和之前一样发送同样的消息,但这次将会发送给别的玩家。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">我们使用这个发送效果的原因是因为消息效果只发送消息给事件中的玩家,而不是输入指令的玩家。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">有了发送效果,我们就能够给别的玩家发送信息了。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">argument是指令中的玩家,所以当你使用/hi demon_penguin时,将会给 demon_penguin 发送hi。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">同时你也可以查看网页来了解更多关于自定义命令的信息。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="循环"></span><span class="mw-headline" id=".E5.BE.AA.E7.8E.AF">循环</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">循环任务可以用来完成复杂的任务。例如如果你想检测在你附近是不是有个箱子,你可能要检测你周围所有的方块来查看它是不是箱子。这可以用一个简单的循环解决——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /chest:
      trigger:
                loop blocks in radius 3 around player:
                        loop-block is a chest
                        message "There is a chest at %location of loop-block%"
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">牌子上的变量会取代它的文本。这里有 x y z三个变量来代替 %location of loop-block%。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">循环代码的一部分是任何方块的循环检查。 循环将会在玩家3格半径的范围内寻找箱子</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">因为我们在用一个自定义指令,我们可以增加寻找的范围和arguments来允许玩家选择距离。</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /chest <integer=3>:
      trigger:
                loop blocks in radius argument around player:
                        loop-block is a chest
                        message "There is a chest at %location of loop-block%"
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这里我们为指令设置了默认值,如果在玩家没有选择的情况下为3.在循环表达中我们将argument代替了数字。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这意味着无论你输入什么数字,指令都会把其读取。如果没有输入数字,3将会成为默认值。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你想要看精确的半径的话,做一个圆球脚本,你就能看见尺寸了。</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /sphere <integer=3>:
      trigger:
                loop blocks in radius argument around player:
                        loop-block is air
                        set loop-block to stone
                set {clear.block} to location of player
                set {clear.radius} to argument

command /clear:
      trigger:
                loop blocks in radius {clear.radius} around {clear.block}:
                        loop-block is stone
                        set loop-block to air
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">/clear指令将会轻松删掉你设置的圆球。同样因为你在圆球的中心,你要想一个让自己出去的方法。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个指令可能会对地面造成一些伤害,所以请飞行来使用。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">{}中的东西叫做变量,下节会说到。如果你想了解更多关于循环的知识请看帮助文档。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="变量"></span><span class="mw-headline" id=".E5.8F.98.E9.87.8F">变量</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">变量是用来在名字下储存数据的。它像一个盒子上的标签,如果你想要知道盒子里的信息,只要找到正确的标签就可以。Skript的变量就是这样。你可以像这样储存变量:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">set {variable.name.goes.here} to true
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">变量值可以是true/false ,一个坐标,或数字。这样的原因是我们可以晚些获得这个信息。所以也许我们可以检查玩家是否输入过指令,我们可以这样做:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /sethome:
      trigger:
                set {home} to location of player

command /home:
      trigger:
                teleport player to {home}
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你的变量必须用{}括起来,因为这才能告诉Skript这是一个变量。上面是一个非常简单的家园脚本。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">我们记录玩家的位置在一个叫做{home}的'盒子'里。当玩家输入/home时因为有变量所以我们知道把玩家传送去哪里。这不会把变量清除,它更偏向于只读类型。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">即读取后放回原处。但在你写脚本中,你必须思考用户可能出错的方式。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">例如玩家并没有设置他的家,那么在用/home后会发生什么?他们会被传送到哪里?</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这你需要使用if来检测。检测是否有一些错误,如果没有,再继续执行脚本。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">上面的脚本并不会给玩家发送信息,所以你需要自己创建——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /sethome:
      trigger:
                set {home} to location of player

command /home:
      trigger:
                if {home} is not set:
                        message "<red>You need to set a home first!"
                        stop trigger
                teleport player to {home}
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">现在当玩家尝试用/home时他们会受到错误提示并且剩下的脚本不会运行。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你忘记停止脚本,剩下的事件将照常继续运行。同时如果同时如果if判断的是false,那么剩下的代码便不会运行,玩家也收不到错误消息。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">现在我们这个脚本主要的问题是当一个人/sethome后,另一个人使用/home可以直接到达这个位置。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">然后在另一个人设置家后,便会覆盖前一个人家的记录。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">修复它的方法是使用表达式。这些可以读取触发事件的人。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在这样输入指令后,会记录谁输入的指令。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">所以让每个人都有不同的家,我们其实可以用玩家的名字作为变量。例如这样——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /sethome:
      trigger:
                set {home.%player%} to location of player

command /home:
      trigger:
                if {home.%player%} is not set:
                        message "<red>You need to set a home first!"
                        stop trigger
                teleport player to {home.%player%}
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">现在玩家的名字在变量中了,所以当检测是否存在时,对我将会检测{home.demon_penguin},对别人将会检测 {home.whateveryouruseernameis}。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在这个脚本中每个人都会有他们自己家的位置了。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="注意事项"></span><span class="mw-headline" id=".E6.B3.A8.E6.84.8F.E4.BA.8B.E9.A1.B9">注意事项</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">记住你学到的命令部分下所有的东西,都可以使用在任何触发器中。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这其中包括许多事件。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你想了解更多,看帮助文档吧<sup id="cite_ref-9" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap;"><a href="https://mineplugin.org/Skript#cite_note-9" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup>。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你关于我说的有任何疑问,或要寻求帮助等,请在这里发帖 [<a class="external text" href="http://dev.bukkit.org/server-mods/skript/forum/help/" style="text-decoration-line: none; color: rgb(51, 102, 187); background: linear-gradient(transparent, transparent) right center no-repeat, url(&quot;data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22%3E %3Cpath fill=%22%23fff%22 stroke=%22%2336c%22 d=%22M1.5 4.518h5.982V10.5H1.5z%22/%3E %3Cpath fill=%22%2336c%22 d=%22M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M9.995 2.004l.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z%22/%3E %3C/svg%3E&quot;); padding-right: 13px;">传送点</a>]</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">-Demon 原作者 -c7w 翻译者</p><h2 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 1em; margin-bottom: 0.25em; overflow: hidden; border-bottom: 1px solid rgb(162, 169, 177); font-family: &quot;Linux Libertine&quot;, Georgia, Times, serif; line-height: 1.3;"><span id="WIKI帮助文档"></span><span class="mw-headline" id="WIKI.E5.B8.AE.E5.8A.A9.E6.96.87.E6.A1.A3">WIKI帮助文档</span></h2><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="总帮助"></span><span class="mw-headline" id=".E6.80.BB.E5.B8.AE.E5.8A.A9">总帮助</span></h3><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">写Skript触发器并不比描述它的条件更难。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">因为许多你想做的事情都与事件,例如放置方块,拉动拉杆开关,所有的触发器在触发时都被自定义。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这叫做触发器的事件。无论事件什么时候产生 , 例如当一个玩家放置一个方块,插件将会依次检测触发器的条件.如果满足所有触发条件,触发器将执行. 下面是一个单一事件,条件,效果的简单例子:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"># 第一行就是事件:
on place of sand:
      # condition:
      block below is air
      # effect:
      send "Watch the sand falling!" to player
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这样你就领会了这个事件是干嘛的——检测放了沙子的玩家,然后如果下面是空气,就会有发送消息。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">若要写触发器,新建一个文件,然后把它保存到 Skript/scripts/ directory /‘名字.sk’, 如 ‘plant with hoe.sk’.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你可以使用任意名,但最好与内容有关。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">然后你需要重启你的服务器或使用</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">/skript reload</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">来使这个触发器工作。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你是重启服务器,检查有无错误。如果使用指令,若有错误会直接发送给你。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">一般来说如果你得到许多错误信息应该是表明无法读取你的信息,并且一般会告诉你哪儿错了。如果你是得到这种报错 can't understand '...' or '...' is not a(n) ... 检查你的拼写。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你可以继续阅读以获取所有事件 条件 效果。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你需要帮助请去论坛反馈。一般在反馈前请仔细阅读本帮助文献,它一般可以回答你的问题。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你也可以看看别人的教程,如果我的教程不适合你的话。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="高级语法"></span><span class="mw-headline" id=".E9.AB.98.E7.BA.A7.E8.AF.AD.E6.B3.95">高级语法</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">Skript的高级语法并不限制于简单的陈述,但比这个更复杂 若要使 ‘tool of …’ 或 ‘block below/north of/above …’ 可能,你要使用表达式,请继续向下阅读。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">有时触发器语法的基本语法也比较高级。以下章节包括这些特殊情况。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="条件_2"></span><span class="mw-headline" id=".E6.9D.A1.E4.BB.B6_2">条件</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">一个很棒的特性是条件陈述。这样的陈述是触发器的一部分,但只有当主部分满足时才会被检查,像这样—— 主条件[又称事件]: 条件 条件满足继续执行 满足条件后可以继续缩进 你也可以使用else: 来在不满足条件的情况下使用—— 如下</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on login:
      chance of 50%:
                give a cake to the player
                send "You got a gift for logging in =)" to the player
      else:
                send "You were not fortunate enough to get a gift this time. Try again next time!" to the player
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个脚本会在玩家登入的时候有几率给予玩家一个蛋糕,但如果没有接收到会给玩家说他们不够幸运。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="循环_2"></span><span class="mw-headline" id=".E5.BE.AA.E7.8E.AF_2">循环</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">循环可以减少触发器内的重复任务,当前来说可以循环的东西还是很少,如变量,物品,方块,玩家。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">循环很简单,这就是格式</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">要循环的值:
      关于这个值做一些是
条件在循环中不同,如果条件没有满足,会跳过条件继续执行下面的代码。如果你想停止执行,请这样使用——
<pre>
condition:
      exit loop
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你也可以使用‘exit’ 或 ‘exit trigger’.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这儿就有一个示例,他会在使用/find时找寻附近的方块。</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /find <material>:
      description: Find a block of the given material
      trigger:
                loop blocks in radius 10:
                        loop-block is argument
                        message "Found a %argument% block at %location of loop-block%"
                        stop trigger
                send "There's no %argument% block around!" to player
</pre><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="事件_2"></span><span class="mw-headline" id=".E4.BA.8B.E4.BB.B6_2">事件</span></h3><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">下面的列表内容是你可以开始一个触发器的事件。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">每个触发器只能有一个事件,你不能在给出的语法外自行创造事件。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">请注意每个事件前面的on都是完全可选的,不过我加上会感觉更好:D</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">请注意如果事件只有一种触发方式的话就没有例子。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="At_time">At time</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
at %time%
加入的版本:
1.3.4
关于Minecraft中所有/任一世界的时间
示例:
at 18:00
at 7am in "world"
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_AoE_Cloud_Effect">On AoE Cloud Effect</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(area|AoE) effect
加入的版本:
2.2-dev21
当药水云生成时触发,默认5tick发生一次。
示例:
on area cloud effect
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Bed_Enter">On Bed Enter</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
bed enter
enter bed
加入的版本:
1.0
当玩家上床时
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Bed_Leave">On Bed Leave</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
bed leav(e|ing)
leav(e|ing) bed
加入的版本:
1.0
当玩家离开床
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Block_Damage">On Block Damage</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
block damage
加入的版本:
1.0
当玩家开始打方块,你可以用来探测左键
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Block_Growth">On Block Growth</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(plant|crop|block) grow[(th|ing)] [ %item types%]
加入的版本:
2.2-Fixes-V10
当作物生长时触发
示例:
on crop growth
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Book_Edit">On Book Edit</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
book (edit|change|write)
加入的版本:
2.2-dev31
当玩家编辑书籍时触发
示例:
on crop growth
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Book_Sign">On Book Sign</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
book sign
加入的版本:
2.2-dev31
当玩家署名书与笔时触发
示例:
on book sign
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="On_Break_/_Mine"></span><span class="mw-headline" id="On_Break_.2F_Mine">On Break / Mine</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(min(e|ing)) [ %item types%]
加入的版本:
1.0 (break), unknown (mine)
当方块被玩家破坏。如果使用on mine的话,只有掉落东西才会触发触发器。
示例:
on mine
on break of stone
on mine of any ore
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Bucket_Empty">On Bucket Empty</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
bucket empty
empty bucket
加入的版本:
1.0
当玩家把桶里的东西倒出,可以检测水和岩浆的放置事件。
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Bucket_Fill">On Bucket Fill</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
bucket fill
fill bucket
加入的版本:
1.0
当玩家在桶里装东西,可以检测水和岩浆的破坏事件。
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Burn">On Burn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
burn [ %item types%]
加入的版本:
1.0
当方块被火燃烧
示例:
on burn
on burn of wood, fences, or chests</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Can_Build_Check">On Can Build Check</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
can build check
加入的版本:
1.0 (基础), 2.0 (可以取消事件发生)
当玩家手持一个方块或能防止的物品时右击方块被触发。你可以取消这个事件,来防止方块被放置。
只支持物品ID的检查,不允许数据值</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Chat">On Chat</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
chat
加入的版本:
1.4.1
当玩家聊天时.</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Chunk_Generate">On Chunk Generate</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
chunk (generat|populat)(e|ing)
加入的版本:
1.0
当区块被创建</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Chunk_Load">On Chunk Load</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
chunk load
加入的版本:
1.0
当区块读取</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Chunk_Unload">On Chunk Unload</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
chunk unload
加入的版本:
1.0
当区块被卸载,可以取消事件</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Click">On Click</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(right|left)[( |-)]]]click [(with|using|holding) %item type%]
[(right|left)[( |-)]]]click (with|using|holding) %item type% on %entity type/item type%
加入的版本:
1.0
当玩家空手点击方块、空气和实体
在玩家没有看向方块/手拿东西时是无法检测的
示例:
on click
on rightclick holding a fishing rod
on leftclick on a stone or obsidian
on rightclick on a creeper
on click with a sword</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Combust">On Combust</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
combust
加入的版本:
1.0
当实体开始燃烧
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Command">On Command</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
command [%text%]
加入的版本:
2.0
当玩家输入一个指令
使用这个事件不如自定义命令,改变权限的方式不能预防某些指令,记录命令,检测其他插件。
示例:
on command
on command "/stop"
on command "pm Njol "</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Connect">On Connect</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
connect
加入的版本:
2.0
当玩家连接服务器,这在玩家加入服务器之前运行。
示例:
on connect:
      player doesn't have permission "VIP"
      number of players is larger than 20
      kick the player due to "The last 5 slots are reserved for VIP players."</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Consume">On Consume</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
((eat|drink)|consum(e|ing)) [ %item types%]
加入的版本:
2.0
当玩家吃/喝一些东西</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Craft">On Craft</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
craft [ %item types%]
加入的版本:
unknown
当玩家合成物品</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Creeper_Power">On Creeper Power</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
creeper power
加入的版本:
1.0
当苦力怕被充能</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Damage">On Damage</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
damag(e|ing)
加入的版本:
1.0
当实体接受攻击
示例:
on damage
on damage of a player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Death">On Death</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
death
加入的版本:
1.0
实体死亡
示例:
on death
on death of player
on death of a wither or ender dragon:
      broadcast "A %entity% has been slain in %world%!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Dispense">On Dispense</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
dispens(e|ing) [ %item types%]
加入的版本:
unknown
发射器发射物品</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Drop">On Drop</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
drop [ %item types%]
加入的版本:
unknown
玩家扔掉物品</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="On_Enderman/Sheep/Silverfish"></span><span class="mw-headline" id="On_Enderman.2FSheep.2FSilverfish">On Enderman/Sheep/Silverfish</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
enderman place
enderman pickup
sheep eat
silverfish enter
silverfish exit
加入的版本:
unknown
末影人搬运方块/羊吃草/蠹虫进出方块</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Entity_Dismount">On Entity Dismount</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
dismount
加入的版本:
2.2-dev13b
当一个实体被卸载时
示例:
on dismount:
    kill event-entity
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Entity_Mount">On Entity Mount</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
mount
加入的版本:
2.2-dev13b
当一个实体乘坐上另一个实体时(例:坐船/矿车/骑骷髅马)
示例:
on mount:
    cancel event
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Experience_Spawn">On Experience Spawn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
xp spawn
spawn of ] xp
加入的版本:
2.0
当经验值生成时,不能检测其他插件生成的经验。
示例:
on xp spawn:
      world is "minigame_world"
      cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Explode">On Explode</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
explo(d(e|ing)|sion)
加入的版本:
1.0
当发生爆炸时</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Explosion_Prime">On Explosion Prime</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
explosion prime
加入的版本:
1.0
爆炸前的准备</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Fade">On Fade</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
fad(e|ing) [ %item types%]
加入的版本:
1.0
融化
示例:
on fade of snow or ice</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Firework_Explode">On Firework Explode</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
firework explo(d(e|ing)|sion) red %colors%]
加入的版本:
2.4
当烟花火箭爆炸时
示例:
on firework explode
on firework exploding colored red, light green and black
on firework explosion coloured light green:
    broadcast "A firework colored %colors% was exploded at %location%!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_First_Join">On First Join</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
first (join|login)
加入的版本:
1.3.7
玩家第一次加入游戏</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Fishing">On Fishing</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
fish
加入的版本:
1.0
玩家钓到了一些东西</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Flight_Toggle">On Flight Toggle</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
flight toggl(e|ing)
toggl(e|ing) flight
加入的版本:
2.2-dev36
当玩家切换飞行模式时调用
(译者注:当玩家开始飞行/停止飞行时调用,并非使用某些插件的/fly指令时)
示例:
on flight toggle:
    if {game::%player%::playing} exists:
      cancel event
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Flow">On Flow</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
flow
block mov(e|ing)
加入的版本:
1.0
液体流动</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Form">On Form</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
form [ %item types%]
加入的版本:
1.0
当一个不是玩家放置的方块创建[下雪,结冰]
示例:
on form of snow
on form of a mushroom</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Fuel_Burn">On Fuel Burn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
fuel burn
加入的版本:
1.0
熔炉的燃料开始烧</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Gamemode_Change">On Gamemode Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
game[ ]mode change
加入的版本:
1.0
玩家切换游戏模式
示例:
on gamemode change
on gamemode change to adventure</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Gliding_State_Change">On Gliding State Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(gliding state change|toggl(e|ing) gliding)
加入的版本:
2.2-dev21
当玩家使用鞘翅滑翔时
示例:
on toggling gliding:
    cancel the event # bad idea, but you CAN do it!(译者注:这不是什么好主意,但是依然可以实现!)</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Grow">On Grow</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
grow
加入的版本:
1.0
树/蘑菇长大
示例:
on grow
on grow of a tree
on grow of a huge jungle tree</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Hand_Item_Swap">On Hand Item Swap</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
swap [(hand|held)] item
加入的版本:
2.3
当玩家的主副手物品调换时,即使主副手物品为空气(没有物品)也可以触发,这个触发器会在实际调换物品之前时触发,这意味着您可以在发生任何事情之前取消事件。
示例:
on swap hand items:
    event-player's tool is a diamond sword
    cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Heal">On Heal</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
heal
加入的版本:
1.0
实体被治疗
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Hunger_Meter_Change">On Hunger Meter Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(food|hunger) (level|met(er|re)|bar) chang(e|ing)
加入的版本:
1.4.4
当玩家的饥饿值改变</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Ignition">On Ignition</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
ignit(e|ion)
加入的版本:
1.0
方块被燃烧</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Inventory_Click">On Inventory Click</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
inventory(-| )click [ %item types%]
加入的版本:
2.2-Fixes-V10
当玩家点击物品栏中的物品时(包括任意容器的"物品栏")
示例:
on inventory click:
    if event-item is stone:
      give player 1 stone
      remove 20$ from player's balance</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Inventory_Close">On Inventory Close</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
inventory clos(ing|e)
加入的版本:
2.2-dev21
当玩家关闭任意物品栏时
示例:
on inventory close:
    if player's location is {location}:
      send "You exited the shop!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Inventory_Open">On Inventory Open</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
inventory open
加入的版本:
2.2-dev21
当玩家打开任意物品栏时
示例:
on inventory open:
    close player's inventory</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Item_Break">On Item Break</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
tool break
break [(a|the)] tool
加入的版本:
2.1.1
玩家的工具没耐久,自然损坏[这个不能被取消事件]</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Item_Despawn">On Item Despawn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(item[ ]| %item types%) despawn
] despawn [ %item types%]
加入的版本:
2.2-dev35
当一个掉落物即将被Minecraft删除时,通常这会发生在物品被丢弃的5分钟后
示例:
on item despawn of diamond:
    send "Not my precious!"
    cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Item_Merge">On Item Merge</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(item[ ]| %item types%) merg(e|ing)
item[ ] merg(e|ing) [ %item types%]
加入的版本:
2.2-dev35
当一个掉落物与另一个掉落物合并时(即两个同样的物品丢在同一位置时产生的"掉落物合并")
示例:
on item merge of gold blocks:
    cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Item_Spawn">On Item Spawn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
item spawn [ %item types%]
加入的版本:
unknown
当有掉落物生成</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Join">On Join</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(login|logging in|join)
加入的版本:
1.0
当玩家加入游戏
示例:
on join:
      message "Welcome on our awesome server!"
      broadcast "%player% just joined the server!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Jump">On Jump</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
jump
加入的版本:
2.3
当玩家跳跃时
示例:
on jump:
    event-player does not have permission "jump"
    cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Kick">On Kick</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(kick|being kicked)
加入的版本:
1.0
当一个玩家被T出游戏</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Language_Change">On Language Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(language|locale) chang(e|ing)
chang(e|ing) (language|locale)
加入的版本:
2.3
当玩家在设置中设置的语言改变时,你可以使用语言表达式(language)来获取玩家的设置的语言,这需要Minecraft 1.12+版本才能使用
示例:
on language change:
    if player's language starts with "en":
      send "Hello!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Leaves_Decay">On Leaves Decay</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
leaves decay
加入的版本:
1.0
树叶消失</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Level_Change">On Level Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
level
加入的版本:
unknown
玩家等级改变</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Lightning_Strike">On Lightning Strike</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
lightning
加入的版本:
1.0
发生闪电</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Move_On">On Move On</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(step|walk) (on|over) %*item types%
加入的版本:
2.0
玩家踩上指定方块
示例:
on walking on dirt or grass
on stepping on stone</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Physics">On Physics</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
physics
加入的版本:
1.4.6
物理变化
示例:
# prevents sand from falling
on block physics:
      block is sand
      cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Pick_Up">On Pick Up</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(pick[ ]up|picking up) [ %item types%]
加入的版本:
unknown
玩家捡起物品</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Pig_Zap">On Pig Zap</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
pig[ ]zap
加入的版本:
1.0
猪变成僵尸猪人</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Piston_Extend">On Piston Extend</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
piston extend
加入的版本:
1.0
当活塞被激活</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Piston_Retract">On Piston Retract</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
piston retract
加入的版本:
1.0
当活塞收回</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Place">On Place</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(plac(e|ing)|build) [ %item types%]
加入的版本:
1.0
放置方块
示例:
on place
on place of a furnace, workbench or chest</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Player_World_Change">On Player World Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
world chang(ing|e)
加入的版本:
2.2-dev28
当玩家加入其它世界时,这仅对玩家有效!
示例:
on player world change:
    world is "city"
    send "Welcome to the City!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Portal">On Portal</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
portal
加入的版本:
1.0
使用地狱门/末地门</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Portal_Create">On Portal Create</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
portal create
加入的版本:
1.0
当传送门被创建.</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Portal_Enter">On Portal Enter</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
portal enter
entering portal
加入的版本:
1.0
玩家进入传送门</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Prepare_Craft">On Prepare Craft</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(preparing|beginning) craft [ %item types%]
加入的版本:
2.2-Fixes-V10
在向玩家显示合成结果之前。请注意,由于Bukkit错误,设置结果项可能工作,也可能不工作。
示例:
on preparing craft of torch</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="On_Pressure_Plate_/_Trip"></span><span class="mw-headline" id="On_Pressure_Plate_.2F_Trip">On Pressure Plate / Trip</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
on] plate
(trip| on] tripwire)
加入的版本:
1.0 (pressure plate), 1.4.4 (tripwire)
压力板</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Projectile_Hit">On Projectile Hit</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
projectile hit
加入的版本:
1.0
当发射物击中实体或方块[箭 雪球 骷髅头 火球 鸡蛋]</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Quit">On Quit</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(quit|disconnect|log[ ]out|logging out)
加入的版本:
1.0
当玩家离开游戏</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Redstone">On Redstone</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
redstone
加入的版本:
1.0
红石流通</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="On_Region_Enter/Leave"></span><span class="mw-headline" id="On_Region_Enter.2FLeave">On Region Enter/Leave</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
cannot be used directly
加入的版本:
2.1
进入/离开区域[需要区域插件]
示例:
on region exit:
      message "Leaving %region%."</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Respawn">On Respawn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
respawn
加入的版本:
1.0
当玩家重生时</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Resurrect_Attempt">On Resurrect Attempt</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
resurrect
加入的版本:
2.2-dev28
当一个实体手持不死图腾死亡时(你可以通过使用取消事件来取消不死图腾的效果)
示例:
on resurrect attempt:
    entity is player
    entity has permission "admin.undying"
    uncancel the event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="On_Script_Load/Unload"></span><span class="mw-headline" id="On_Script_Load.2FUnload">On Script Load/Unload</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(load|init|enable)
(unload|stop|disable)
加入的版本:
2.0
当脚本被读取/卸载
示例:
on load:
      set {running.%script%} to true
on unload:
      set {running.%script%} to false</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Server_List_Ping">On Server List Ping</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
server ping
加入的版本:
2.3
当服务器在多人游戏的服务器列表中被ping时,通常在Minecraft客户端ping服务器以在服务器列表中显示其信息时调用。
IP表达式可用于获取Pinger(玩家)的IP地址。此事件只能在PaperSpigot 1.12.2+上取消,这意味着玩家将看到服务器脱机(但仍可以加入)。
你还可以使用 MOTD, Max Players, Online Players Count, Protocol Version, Version String, Hover List 和 Server Icon 表达
使用 Player Info Visibility 和 Hide Player from Server List effects 来修改服务器列表。
示例:
on server list ping:
    set the motd to "Welcome %{player-by-IP::%ip%}%! Join now!" if {player-by-IP::%ip%} is set, else "Join now!"
    set the fake max players count to (online players count + 1)
    set the shown icon to a random server icon out of {server-icons::*}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="On_Server_Start/Stop"></span><span class="mw-headline" id="On_Server_Start.2FStop">On Server Start/Stop</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(server|skript) (start|load|enable)
(server|skript) (stop|unload|disable)
加入的版本:
2.0
当服务器开启/关闭时,(实际上是Skript插件加载/卸载时,所以/reload也会触发事件)
示例:
on skript start:
on server stop:</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Sheep_Regrow_Wool">On Sheep Regrow Wool</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
sheep grow wool
加入的版本:
2.2-dev21
当羊长毛时
示例:
on sheep grow wool:
    cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Shoot">On Shoot</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
shoot
加入的版本:
1.0
当一个发射物被发射</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Sign_Change">On Sign Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
sign (chang|edit)
(chang|edit) sign
加入的版本:
1.0
牌子被玩家结束编辑
示例:
on sign change:
      line 2 is empty
      set line 1 to "<red>%line 1%"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Slime_Split">On Slime Split</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
slime split
加入的版本:
2.2-dev26
当史莱姆分裂时。这通常在大型的史莱姆死亡后发生
示例:
on slime split</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Smelt">On Smelt</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
smelt
smelt of ore
加入的版本:
1.0
当熔炉开始烧炼矿物</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Sneak_Toggle">On Sneak Toggle</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
toggl(e|ing) sneak
sneak toggl(e|ing)
加入的版本:
玩家是否潜行
示例:
# make players that stop sneaking jump
on sneak toggle:
      player was sneaking
      push the player upwards at speed 0.5</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Spawn">On Spawn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
spawn
加入的版本:
1.0
当一个实体生成
示例:
on spawn of a zombie
on spawn of an ender dragon:
      broadcast "A dragon has been sighted in %world%!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Spawn_Change">On Spawn Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
spawn change
加入的版本:
1.0
当世界的重生点被切换</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Spread">On Spread</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
spread
加入的版本:
1.0
当一个新方块生成,原方块可以传播,例如蘑菇和水</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Sprint_Toggle">On Sprint Toggle</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
toggl(e|ing) sprint
sprint toggl(e|ing)
加入的版本:
unknown
当玩家切换疾跑状态</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Swim_Toggle">On Swim Toggle</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
toggl(e|ing) swim
swim toggl(e|ing)
加入的版本:
2.3
当一个实体开始/停止游泳时
示例:
on swim toggle:
    event-entity does not have permission "swim"
    cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Tame">On Tame</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
tam(e|ing)
加入的版本:
1.0
当玩家驯服狼/豹猫</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Target">On Target</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
target
un[-]target
加入的版本:
1.0
当怪物锁定一个实体进行攻击</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Teleport">On Teleport</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
teleport
加入的版本:
1.0
当玩家被传送</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Throwing_of_an_Egg">On Throwing of an Egg</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
throw egg
egg throw
加入的版本:
1.0
当玩家扔鸡蛋</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Tool_Change">On Tool Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
] (tool|item held|held item) chang(e|ing)
加入的版本:
1.0
当玩家的工具切换</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Vehicle_Create">On Vehicle Create</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
vehicle create
creat(e|ing|ion of) vehicle
加入的版本:
1.0
当一个载具被创建.</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Vehicle_Damage">On Vehicle Damage</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
vehicle damage
damag(e|ing) vehicle
加入的版本:
1.0
载具被攻击</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Vehicle_Destroy">On Vehicle Destroy</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
vehicle destroy
destr(oy|uction of) vehicle
加入的版本:
1.0
载具被摧毁</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Vehicle_Enter">On Vehicle Enter</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
vehicle enter
enter vehicle
加入的版本:
1.0
实体进入载具</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Vehicle_Exit">On Vehicle Exit</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
vehicle exit
exit vehicle
加入的版本:
1.0
实体离开载具</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Weather_Change">On Weather Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
weather change
加入的版本:
1.0
一个世界的天气被切换
示例:
on weather change
on weather change to sunny</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_World_Init">On World Init</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
world init
加入的版本:
1.0
一个新的世界被创建</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_World_Load">On World Load</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
world load
加入的版本:
1.0
世界被加载</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_World_Save">On World Save</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
world sav(e|ing)
加入的版本:
1.0
世界被存储</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_World_Unload">On World Unload</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
world unload
加入的版本:
1.0
世界被卸载</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="On_Zombie_Break_Door">On Zombie Break Door</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
zombie break ] door
加入的版本:
unknown
僵尸破坏门</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Periodical">Periodical</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
every %time span% in ] %worlds%
加入的版本:
1.0
每隔一定的现实时间
示例:
every second
every minecraft hour
every tick # 警告:卡的一比
every minecraft day in "world"</pre><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="条件_3"></span><span class="mw-headline" id=".E6.9D.A1.E4.BB.B6_3">条件</span></h3><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Can_Build">Can Build</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (can|(is|are) allowed to) build %directions% %locations%
%players% (can('t|not)|(is|are)(n't| not) allowed to) build %directions% %locations%
加入的版本:
2.0
检测玩家是否可以在区域中放置方块,需要一个区域插件
示例:
command /setblock <material>:
      description: set the block at your crosshair to a different type
      trigger:
                player cannot build at the targeted block:
                        message "You do not have permission to change blocks there!"
                        stop
                set the targeted block to argument</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Can_Fly">Can Fly</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% can fly
%players% (can't|cannot|can not) fly
加入的版本:
2.3
检测玩家是否被允许飞行
示例:
player can fly</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Can_Hold">Can Hold</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%inventories% (can hold|ha(s|ve) space (for|to hold)) %item types%
%inventories% (can(no|')t hold|(ha(s|ve) not|ha(s|ve)n't|don't have) space (for|to hold)) %item types%
加入的版本:
1.0
检测玩家的背包或箱子是否有足够的空间
示例:
block can hold 200 cobblestone
player has enough space for 64 feathers</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Can_See">Can See</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (is|are) [(in)]visible for %players%
%players% can see %players%
%players% (is|are)(n't| not) [(in)]visible for %players%
%players% can('t| not) see %players%
加入的版本:
2.3
检测指定的玩家能否看到其他玩家
示例:
if the player can't see the player-argument:
    message "The player %player-argument% is not online!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Chance">Chance</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
chance of %number%[\%]
加入的版本:
1.0
脚本成功或失败的几率
示例:
chance of 50%:
      drop a diamond
chance of {var}% # {var} between 0 and 100
chance of {var} # {var} between 0 and 1</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Comparison">Comparison</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%objects% ((is|are)[((n't| not| neither)]) ((greater|more|higher|bigger|larger) than|above)|\>) %objects%
%objects% ((is|are)[((n't| not| neither)]) (greater|more|higher|bigger|larger|above) or (equal to|the same as)|\>=) %objects%
%objects% ((is|are)[((n't| not| neither)]) ((less|smaller) than|below)|\<) %objects%
%objects% ((is|are)[((n't| not| neither)]) (less|smaller|below) or (equal to|the same as)|\<=) %objects%
%objects% ((is|are) (not|neither)|isn't|aren't|!=) %objects%
%objects% (is|are|=) [(equal to|the same as)] %objects%
%objects% (is|are) between %objects% and %objects%
%objects% (is not|are not|isn't|aren't) between %objects% and %objects%
%objects% (was|were)[((n't| not| neither)]) ((greater|more|higher|bigger|larger) than|above) %objects%
%objects% (was|were)[((n't| not| neither)]) (greater|more|higher|bigger|larger|above) or (equal to|the same as) %objects%
%objects% (was|were)[((n't| not| neither)]) ((less|smaller) than|below) %objects%
%objects% (was|were)[((n't| not| neither)]) (less|smaller|below) or (equal to|the same as) %objects%
%objects% ((was|were) (not|neither)|wasn't|weren't) %objects%
%objects% (was|were) [(equal to|the same as)] %objects%
%objects% (was|were) between %objects% and %objects%
%objects% (was not|were not|wasn't|weren't) between %objects% and %objects%
%objects% (will be|(will (not|neither) be|won't be)) ((greater|more|higher|bigger|larger) than|above) %objects%
%objects% (will be|(will (not|neither) be|won't be)) (greater|more|higher|bigger|larger|above) or (equal to|the same as) %objects%
%objects% (will be|(will (not|neither) be|won't be)) ((less|smaller) than|below) %objects%
%objects% (will be|(will (not|neither) be|won't be)) (less|smaller|below) or (equal to|the same as) %objects%
%objects% ((will (not|neither) be|won't be)|(isn't|aren't|is not|are not) (turning|changing) to) %objects%
%objects% (will be [(equal to|the same as)]|(is|are) (turning|changing) to) %objects%
%objects% will be between %objects% and %objects%
%objects% (will not be|won't be) between %objects% and %objects%
加入的版本:
1.0
非常常规的脚本,比较两量关系。通常你可以使用平等(如 block is/isn't of <type>), 但一些值可以使用更多/更少。
在这种情况下,你也可以测试一个对象是否在两个其他量之中。
注意:这只是一些形式。事实上,另外两套类似的模式,但(was|were)或将代替(is|are)分别检测不同时间状态的表达。

示例:
the clicked block is a stone slab or a double stone slab
time in the player's world is greater than 8:00
the creature is not an enderman or an ender dragon</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Contains">Contains</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%inventories% ha(s|ve) %item types% |his|her|its)] inventory]
%inventories/texts/objects% contain %item types/texts/objects%
%inventories% do(n't| not) have %item types% |his|her|its)] inventory]
%inventories/texts/objects% do(n't| not) contain %item types/texts/objects%
加入的版本:
1.0
检查有无物品,一段对话有无一些字,或列出变量表是否包含某变量。
示例:
block contains 20 cobblestone
player has 4 flint and 2 iron ingots</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Damage_Cause">Damage Cause</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
damage [(n('|o)]t) (caused|done|made) by %damage cause%
加入的版本:
2.0
检查是什么造成的伤害,来源可以查看变量表。
示例:
# make players use their potions of fire resistance whenever they take any kind of fire damage
on damage:
      damage was caused by lava, fire or burning
      victim is a player
      victim has a potion of fire resistance
      cancel event
      apply fire resistance to the victim for 30 seconds
      remove 1 potion of fire resistance from the victim
# prevent mobs from dropping items under certain circumstances
on death;
      entity is not a player
      damage wasn't caused by a block explosion, an attack, a projectile, a potion, fire, burning, thorns or poison
      clear drops</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Event_Cancelled">Event Cancelled</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
event is canceled
event (is not|isn't) canceled
加入的版本:
2.2-dev36
检查时间是否被取消
示例:
on click:
    if event is cancelled:
      broadcast "no clicks allowed!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Exists/Is_Set"></span><span class="mw-headline" id="Exists.2FIs_Set">Exists/Is Set</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%~objects% (exist|(is|are) set)
%~objects% (do(n't| not) exist|(is|are)(n't| not) set)
加入的版本:
1.2
检查一个表达式是否被创建
示例:
{teamscript.%player%.preferred team} is not set
on damage:
      projectile exists
      broadcast "%attacker% used a %projectile% to attack %victim%!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Has_Client_Weather">Has Client Weather</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (has|have) (client|custom) weather
%players% (doesn't|does not|do not|don't) have (client|custom) weather
加入的版本:
2.3
检查玩家客户端是否自定义了天气(通常在装有高清修复的客户端中才能自定义天气)
示例:
if the player has custom weather:
    message "Your custom weather is %player's weather%"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Has_Metadata">Has Metadata</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%metadata holders% (has|have) metadata [(value|tag)] %texts%
%metadata holders% (doesn't|does not|do not|don't) have metadata [(value|tag)] %texts%
加入的版本:
2.2-dev36
检查玩家是否持有数据值
示例:
if player has metadata value "healer":</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Has_Permission">Has Permission</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[%players/console%] (don't|don't|do not) have permission %texts%
[%players/console%] ha(s|ve) permission %texts%
加入的版本:
1.0
检查玩家有无权限
示例:
player has permission "skript.tree"
victim has the permission "admin":
      send "You're attacking an admin!" to attacker</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Has_Played_Before">Has Played Before</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%offline player% [(has|did)] play (before|already)
%offline player% (has not|hasn't|did not|didn't) [(already|yet)] play (before|already|yet)
加入的版本:
1.4
检查玩家之前是否玩过游戏
示例:
player has played on this server before
player hasn't played before</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Has_Resource_Pack">Has Resource Pack</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (has|have) resource pack [(loaded|installed)]
%players% (doesn't|does not|do not|don't) have resource pack [(loaded|installed)]
加入的版本:
2.4
要求服务端核心版本:
Paper 1.9 or newer #Paper 1.9或更高
检查玩家是否加载了服务端发送给玩家的资源包。注意,这无法检测玩家本身安装的资源包,只能检查服务器发送的资源包。
示例:
if the player has a resource pack loaded:</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Has_Scoreboard_Tag">Has Scoreboard Tag</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%entities% (has|have) score[ ]board tag %texts%
%entities% (doesn't|does not|do not|don't) have score[ ]board tag %texts%
加入的版本:
2.3
检查玩家是否被给予了计分板标记
示例:
if the targeted armor stand has the scoreboard tag "test tag":</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Alive">Is Alive</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%living entities% (alive|dead)
%living entities% (alive|dead)
加入的版本:
2.0
检查实体是否存活
示例:
{villagerbuddy.%player%} is dead</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Banned">Is Banned</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%offline players/texts% (is|are) banned
%players/texts% [(is|are) IP(-| )]banned
%offline players/texts% (isn't|is not|aren't|are not) banned
%players/texts% [(isn't|is not|aren't|are not) IP(-| )]banned
加入的版本:
1.4
检查一个玩家或IP是否被BAN掉
示例:
player is banned
victim is not IP-banned
"127.0.0.1" is banned</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Block">Is Block</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%item stacks% (is|are) ( block|blocks)
%item stacks% (isn't|is not|aren't|are not) ( block|blocks)
加入的版本:
2.4
检查物品是否为一个方块
示例:
player's held item is a block
{list::*} are blocks</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Blocking">Is Blocking</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (is|are) (blocking|defending)
%players% (isn't|is not|aren't|are not) (blocking|defending)
加入的版本:
unknown
检查玩家是否在格挡
示例:
victim is blocking</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Burning">Is Burning</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%entities% (is|are) (burning|ignited|on fire)
%entities% (isn't|is not|aren't|are not) (burning|ignited|on fire)
加入的版本:
1.4.4
检查实体是否在燃烧
示例:
# increased attack against buring targets
victim is burning:
      increase damage by 2</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Empty">Is Empty</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%inventories/slots/texts% (is|are) empty
%inventories/slots/texts% (isn't|is not|aren't|are not) empty
加入的版本:
unknown
检查物品栏/装备栏/文本是空的
示例:
player's inventory is empty</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Enchanted">Is Enchanted</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%item types% (is|are) enchanted
%item types% (isn't|is not|aren't|are not) enchanted
加入的版本:
1.4.6
检查物品有无附魔
示例:
tool of the player is enchanted with efficiency 2
helm, chestplate, leggings or boots are enchanted</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Flammable">Is Flammable</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%item stacks% (is|are) flammable
%item stacks% (isn't|is not|aren't|are not) flammable
加入的版本:
2.2-dev36
检查方块是否可燃/易燃
示例:
wood is flammable
player's tool is flammable</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Flying">Is Flying</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (is|are) flying
%players% (isn't|is not|aren't|are not) flying
加入的版本:
1.4.4
检查玩家飞行
示例:
player is not flying</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Holding">Is Holding</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[%living entities%] ha(s|ve) %item types% in hand
[%living entities%] (is|are) holding %item types%
[%living entities%] ha(s|ve) %item types% in off[(-| )]hand
[%living entities%] (is|are) holding %item types% in off[(-| )]hand
[%living entities%] (ha(s|ve) not|don't have) %item types% in hand
[%living entities%] (is not|isn't) holding %item types%
[%living entities%] (ha(s|ve) not|don't have) %item types% in off[(-| )]hand
[%living entities%] (is not|isn't) holding %item types% in off[(-| )]hand
加入的版本:
1.0
检查玩家是否持有特定物品。不能在末影人上使用,请使用'entity is an enderman holding <item type>'
示例:
player is holding a stick
victim isn't holding a sword of sharpness</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Loaded">Is Loaded</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%worlds/chunks% (is|are) loaded
%worlds/chunks% (isn't|is not|aren't|are not) loaded
加入的版本:
2.3
检查是否加载方块/世界
示例:
if chunk at {home::%player's uuid%} is loaded:</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_in_World">Is in World</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%entities% (is|are) in [ world] %worlds%
%entities% (is not|isn't|are not|aren't) in [ world] %worlds%
加入的版本:
1.4
检查玩家是否在世界里
示例:
player is in "world"
argument isn't in world "world_nether"
the attacker is in the world of the victim</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Is_Member/Owner_of_Region"></span><span class="mw-headline" id="Is_Member.2FOwner_of_Region">Is Member/Owner of Region</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
不能直接使用
加入的版本:
2.1
检查玩家是否为这个区域的成员或主人,需要一个区域插件。
示例:
on region enter:
      player is the owner of the region
      message "Welcome back to %region%!"
      send "%player% just entered %region%!" to all members of the region</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_of_Type">Is of Type</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%item stacks/entities% (is|are) of type %item types/entity types%
%item stacks/entities% (isn't|is not|aren't|are not) of type %item types/entity types%
加入的版本:
1.4
检查物品或实体是否为给定的类型。这经常对变量很有效,你也可以用is来代替。(如. 'victim is a creeper').
示例:
tool is of type {*selected type}
victim is of type {villager type}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_on_Ground">Is on Ground</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%entities% (is|are) on ground
%entities% (isn't|is not|aren't|are not) on ground
加入的版本:
2.2-dev26
检查一个实体是否在地上
示例:
player is not on ground</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Online">Is Online</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%offline players% ((is|are) online|(is not|isn't|are not|aren't) offline)
%offline players% ((is|are) offline|(is not|isn't|are not|aren't) online)
加入的版本:
1.4
检查玩家是否在线
示例:
player is online
player-argument is offline</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Poisoned">Is Poisoned</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%living entities% (is|are) poisoned
%living entities% (isn't|is not|aren't|are not) poisoned
加入的版本:
1.4.4
检测实体是否中毒
示例:
player is poisoned:
      cure the player from posion
      message "You have been cured!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Riding">Is Riding</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%entities% (is|are) riding [%entity types%]
%entities% (isn't|is not|aren't|are not) riding [%entity types%]
加入的版本:
2.0
检查实体有无骑着其他实体
示例:
player is riding a saddled pig</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Script_Loaded">Is Script Loaded</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
script [%texts%] (is|are) loaded
script [%texts%] (isn't|is not|aren't|are not) loaded
加入的版本:
2.2-dev31
检查当前脚本或其他脚本是否加载
示例:
script is loaded
script "example.sk" is loaded</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Sleeping">Is Sleeping</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (is|are) sleeping
%players% (isn't|is not|aren't|are not) sleeping
加入的版本:
1.4.4
检查玩家是否在睡觉
示例:
# cut your enemies' throats in their sleep >=)
on attack:
      attacker is holding a sword
      victim is sleeping
      increase the damage by 1000</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Slime_Chunk">Is Slime Chunk</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%chunk% (is|are) ( slime chunk|slime chunks|slimey)
%chunk% (isn't|is not|aren't|are not) ( slime chunk|slime chunks|slimey)
加入的版本:
2.3
检查区块是否为史莱姆区块
示例:
command /slimey:
    trigger:
      if chunk at player is a slime chunk:
            send "Yeah, it is!"
      else:
            send "Nope, it isn't"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Sneaking">Is Sneaking</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (is|are) sneaking
%players% (isn't|is not|aren't|are not) sneaking
加入的版本:
1.4.4
检测玩家是否在潜行
示例:
# prevent mobs from seeing sneaking players if they are at least 4 meters apart
on target:
      target is sneaking
      distance of target and the entity is bigger than 4
      cancel the event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Solid">Is Solid</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%item stacks% (is|are) solid
%item stacks% (isn't|is not|aren't|are not) solid
加入的版本:
2.2-dev36
检查一个物品是否为实心的
示例:
grass block is solid
player's tool isn't solid</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Sprinting">Is Sprinting</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%players% (is|are) sprinting
%players% (isn't|is not|aren't|are not) sprinting
加入的版本:
1.4.4
检查玩家是否在疾跑
示例:
player is not sprinting</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Swimming">Is Swimming</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%living entities% (is|are) swimming
%living entities% (isn't|is not|aren't|are not) swimming
加入的版本:
2.3
要求游戏版本:
1.13或更加新的版本
检查一个实体是否在游泳
示例:
player is swimming</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Transparent">Is Transparent</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%item stacks% (is|are) transparent
%item stacks% (isn't|is not|aren't|are not) transparent
加入的版本;
2.2-dev36
检查一个物品是否是透明的
示例:
glass is transparent
player's tool is transparent.</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Is_Wearing">Is Wearing</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%living entities% (is|are) wearing %item types%
%living entities% (isn't|is not|aren't|are not) wearing %item types%
加入的版本:
1.0
Checks whether a player is wearing some armour.
示例:
player is wearing an iron chestplate and iron leggings
player is wearing all diamond armour</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="PvP">PvP</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(is PvP|PvP is) enabled
(is PvP|PvP is) disabled
加入的版本:
1.3.4
检查PVP状态
示例:
PvP is enabled
PvP is disabled in "world"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Region_Contains">Region Contains</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[ region] %regions% contain %directions% %locations%
%locations% (is|are) ( in|part of) [ region] %regions%
[ region] %regions% (do|does)(n't| not) contain %directions% %locations%
%locations% (is|are)(n't| not) (contained in|part of) [ region] %regions%
加入的版本:
2.1
区域中有XXX,必须有区域插件
示例:
player is in the region {regions::3}
on region enter:
      region contains {flags.%world%.red}
      message "The red flag is near!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Resource_Pack">Resource Pack</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
resource pack (was|is|has) %resource pack state%
resource pack (was|is|has)(n't| not) %resource pack state%
加入的版本:
2.4
需求事件: 资源包响应状态
检查资源包的响应状态
示例:
on resource pack response:
    if the resource pack wasn't accepted:
      kick the player due to "You have to install the resource pack to play in this server!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Starts/Ends_With"></span><span class="mw-headline" id="Starts.2FEnds_With">Starts/Ends With</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%texts% (start|end) with %text%
%texts% (doesn't|does not|do not|don't) (start|end) with %text%
加入的版本:
2.2-dev36
检查一个文本是否是另一文本的开头或结尾
示例:
if the argument starts with "test":
    send "Stop!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Time">Time</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%date% (was|were)( more|(n't| not) less) than %time span%
%date% (was|were)((n't| not) more| less) than %time span%
加入的版本:
2.0
给予变量时间
示例:
command /command_with_cooldown:
      trigger:
                {command.%player%.lastused} was less than a minute ago:
                        message "Please wait a minute between uses of this command."
                        stop
                set {command.%player%.lastused} to now
                # ... actual command trigger here ...</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Weather">Weather</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
is %weather types%
加入的版本:
1.0
检查世界的天气
示例:
is thundering
is raining in "world" or "world2"</pre><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="效果"></span><span class="mw-headline" id=".E6.95.88.E6.9E.9C">效果</span></h3><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Action_Bar">Action Bar</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
send action bar %text% to %players%
加入的版本:
2.3
发送给玩家一条位于ActionBar的信息
示例:
send action bar "Hello player!" to player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Ban">Ban</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
ban %texts/offline players% [(by reason of|because |on account of|due to) %text%]
unban %texts/offline players%
ban %players% by IP [(by reason of|because |on account of|due to) %text%]
unban %players% by IP
IP(-| )ban %players% [(by reason of|because |on account of|due to) %text%]
(IP(-| )unban|un[-]IP[-]ban) %players%
加入的版本:
1.4, 2.1.1 (ban reason)
BAN掉玩家或IP
必须满足Skript 2.1.1及Bukkit 172 R0.4以上,可以使用原因来ban出玩家。
如果是一个不支持的原因[如没有创建的变量],玩家仍旧会被BAN,但会使用默认原因。
示例:
unban player
ban "127.0.0.1"
IP-ban the player because "he is an idiot"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Break_Block">Break Block</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
break %blocks%
加入的版本:
2.4
像一个玩家一样破坏一个方块
你可以添加一个工具,这样破坏方块时将使用这个工具的形式破坏(即:当用手打破石头时不会掉落任何东西,而用镐子时会掉落圆石)
示例:
on right click:
    break clicked block naturally
loop blocks in radius 10 around player:
    break loop-block using player's tool
loop blocks in radius 10 around player:
    break loop-block naturally using diamond pickaxe</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Broadcast">Broadcast</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
broadcast %texts% [(to|in) %worlds%]
加入的版本:
1.0
在服务器公告内容
示例:
broadcast "Welcome %player% to the server!"
broadcast "Woah! It's a message!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Cancel_Command_Cooldown">Cancel Command Cooldown</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(cancel|ignore) cooldown
un(cancel|ignore) cooldown
加入的版本:
2.2-dev34
仅在命令中可用,使得当前的命令不会被计入冷却中
示例:
command /nick :
    executable by: players
    cooldown: 10 seconds
    trigger:
      if length of arg-1 is more than 16:
            # 使无效的参数不会让命令进入冷却时间
            cancel the cooldown
            send "Your nickname may be at most 16 characters."
            stop
      set the player's display name to arg-1</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Cancel_Event">Cancel Event</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
cancel event
uncancel event
加入的版本:
1.0
取消事件的发生
示例:
on damage:
      victim is a player
      victim has the permission "skript.god"
      cancel the event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Change:_Set/Add/Remove/Delete/Reset"></span><span class="mw-headline" id="Change:_Set.2FAdd.2FRemove.2FDelete.2FReset">Change: Set/Add/Remove/Delete/Reset</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(add|give) %objects% to %~objects%
increase %~objects% by %objects%
give %~objects% %objects%
set %~objects% to %objects%
remove (all|every) %objects% from %~objects%
(remove|subtract) %objects% from %~objects%
reduce %~objects% by %objects%
(delete|clear) %~objects%
reset %~objects%
加入的版本:
1.0 (set, add, remove, delete), 2.0 (remove all)
改变表达式,非常常规的效果
示例:
# set:
Set the player's display name to "<red>%name of player%"
set the block above the victim to lava
# add:
add 2 to the player's health # preferably use '<a href='#heal'>heal</a>' for this
add argument to {blacklist::*}
give a diamond pickaxe of efficiency 5 to the player
increase the data value of the clicked block by 1
# remove:
remove 2 pickaxes from the victim
subtract 2.5 from {points.%player%}
# remove all:
remove every iron tool from the player
remove all minecarts from {entitylist::*}
# delete:
delete the block below the player
clear drops
delete {variable}
# reset:
reset walk speed of player
reset chunk at the targeted block</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Colour_Items">Colour Items</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(dye|color|paint) %slots/item stack% %color%
(dye|color|paint) %slots/item stack% \(%number%, %number%, %number%\)
加入的版本:
2.0, 2.2-dev26 (maps and potions)
用指定的颜色给物品上色。如果您觉得16种默认颜色受到限制,也可以使用RGB代码。
RGB代码是从0到255的三个数字,按顺序排列(红色、绿色、蓝色),其中(0,0,0)为黑色,(255,255,255)为白色。
盔甲是所有Minecraft版本的彩色。使用Minecraft 1.11或更新版本,您还可以给药剂和地图上色。请注意,这些颜色看起来可能不完全符合您的预期。
示例:
dye player's helmet blue
colour the player's tool red</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Command">Command</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
command %texts%
%players/console% command %texts%
(let|make) %players/console% execute [ command] %texts%
加入的版本:
1.0
使用指令
示例:
make player execute command "/suicide"
execute console command "/say Hello everyone!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Connect">Connect</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
connect %players% to %text%
send %players% to server %text%
加入的版本:
2.3
将玩家连接到另一个BC子服内
示例:
connect all players to "hub"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Continue">Continue</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
continue
加入的版本:
2.2-dev37
跳过当前正在循环的值,如果存在下一个值,则转到下一个值。
示例:
loop all players:
    if loop-value does not have permission "moderator":
      continue # 过滤掉没有moderator的权限的玩家
    broadcast "%loop-player% is a moderator!" # 只有拥有权限moderator的玩家能公告</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Damage/Heal/Repair"></span><span class="mw-headline" id="Damage.2FHeal.2FRepair">Damage/Heal/Repair</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
damage %slots/living entities/item stack% by %number% ]
heal %living entities% ]]
repair %slots/item stack%
加入的版本:
1.0
攻击/治疗/修复
示例:
damage player by 5 hearts
heal the player
repair tool of player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Delay">Delay</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(wait|halt) %time span%
加入的版本:
1.4
等待一定的事件,不能作为tempban使用
示例:
wait 2 minutes
halt for 5 minecraft hours
wait a tick</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Do_If">Do If</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
<.+> if <.+>
加入的版本:
2.3
如果条件为真,则执行...
示例:
on join:
    give a diamond to the player if the player has permission "rank.vip"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Drop">Drop</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
drop %item types/experience point% [%directions% %locations%]
加入的版本:
1.0
掉落一个或多个物品
示例:
on death of creeper:
      drop 1 TNT</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Enable/Disable/Reload_Script_File"></span><span class="mw-headline" id="Enable.2FDisable.2FReload_Script_File">Enable/Disable/Reload Script File</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(enable|load|reload|disable|unload) s(c|k)ript %text%
加入的版本:
2.4
启用/禁用/重载一个Skript脚本
示例:
reload script "test"
enable script file "testing"
unload script file "script.sk"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Enchant/Disenchant"></span><span class="mw-headline" id="Enchant.2FDisenchant">Enchant/Disenchant</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
enchant %~item stack% with %enchantment types%
disenchant %~item stack%
加入的版本:
2.0
给物品附魔或解除附魔
示例:
enchant the player's tool with sharpness 5
disenchant the player's tool</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Equip">Equip</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
equip [%living entity%] with %item types%
make %living entity% wear %item types%
加入的版本:
1.0
给玩家穿戴装备,会覆盖当前装备。
Skript 2.1 起怪物也能穿戴装备了,猪可以穿戴鞍,马可以穿戴鞍,马铠和箱子。
示例:
equip player with diamond helmet
equip player with all diamond armour
equip the clicked horse with diamond horse armour and a saddle
make the last spawned pig wear a saddle</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Exit">Exit</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(exit|stop)
(section|loop|conditional)
(section|loop|conditional)s
(section|loop|conditional)s
加入的版本:
unknown
停止循环的触发器
示例:
if player has any ore:
      stop
message "%player% has no ores!"
loop blocks above the player:
      loop-block is not air:
                exit 2 sections
      set loop-block to water</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Explosion">Explosion</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(create|make)] explosion (of|with) (force|strength|power) %number% [%directions% %locations%]
[(create|make)] safe explosion (of|with) (force|strength|power) %number% [%directions% %locations%]
[(create|make)] fake explosion [%directions% %locations%]
[(create|make)] explosion[ ]effect [%directions% %locations%]
加入的版本:
1.0
用给出的力量制造爆炸。
力量是0时可以制造一场假爆炸,如第三行。
从 Bukkit 1.4.5 / Skript 2.0 开始你可以使用第二行,即安全爆炸,不会破坏方块。
示例:
create an explosion of force 10 at the player
create a fake explosion at the victim</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Feed">Feed</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
feed %players% ]]
加入的版本:
2.2-dev34
回复玩家的饱食度
示例:
feed all players
feed the player by 5 beefs</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Force_Respawn">Force Respawn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
force %players% to respawn
加入的版本:
2.2-dev21
强制玩家重生,如果在死亡后立即发生这个事件,将在重生之前等待1 tick
示例:
on death of player:
    force event-player to respawn</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Hide_Player_from_Server_List">Hide Player from Server List</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
hide %players% (in|on|from) server list
hide %players%' info (in|on|from) server list
加入的版本:
2.3
从TAB列表中隐藏玩家,并减少在线玩家数(仅当玩家数之前没有更改时可用)
示例:
on server list ping:
    hide {vanished::*} from the server list</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Ignite/Extinguish"></span><span class="mw-headline" id="Ignite.2FExtinguish">Ignite/Extinguish</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(ignite|set fire to) %entities%
(set|light) %entities% on fire
extinguish %entities%
加入的版本:
1.4
在实体上制造火焰/打雷
示例:
ignite the player
extinguish the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Kick">Kick</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
kick %players% [(by reason of|because |on account of|due to) %text%]
加入的版本:
1.0
把玩家从服务器踢出
示例:
on place of TNT, lava, or obsidian:
      kick the player due to "You may not place %block%!"
      cancel the event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Kill">Kill</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
kill %entities%
加入的版本:
1.0
击杀一个或多个实体。
注意: 这个效果不是把实体的生命设置为0,并不会触发死亡消息,而且不会掉落物品,而是用它最大生命的100倍去伤害它。
示例:
kill the player
kill all creepers in the player's world
kill all endermen, witches and bats</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Launch_firework">Launch firework</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(launch|deploy) [ firework ]] %firework effects% at %locations% [( (duration|power)|timed) %number%]
加入的版本:
2.4
在指定位置发射烟火。
示例:
launch ball large coloured red, purple and white fading to light green and black at player's location with duration 1</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Leash_entities">Leash entities</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(leash|lead) %living entities% to %entity%
make %entity% (leash|lead) %living entities%
un(leash|lead) %living entities%
加入的版本:
2.3
将一个实体拴在另一个实体上
示例:
leash the player to the target entity</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Lightning">Lightning</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[[ ]effect] %directions% %locations%
加入的版本:
1.4
在位置生成一道闪电
示例:
strike lightning at the player
strike lightning effect at the victim</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Load_Server_Icon">Load Server Icon</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
load server icon (from|of) %text%
加入的版本:
2.3
要求服务端核心版本:
Paper 1.12.2 或更新
从指定图片文件中加载服务器图标。您可以使用上次加载的服务器图标表达式获取已加载的图标。请注意,图像必须是64x64像素,文件路径从服务器文件夹开始读取。
示例:
on load:
    clear {server-icons::*}
    loop 5 times:
      load server icon from file "icons/%loop-number%.png"
      add the last loaded server icon to {server-icons::*}

on server list ping:
    set the icon to a random server icon out of {server-icons::*}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Locally_Suppress_Warning">Locally Suppress Warning</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
] suppress (conflict|variable save| conjunction|starting expression) warning
加入的版本:
2.3
禁止当前脚本中的(目标)警告
示例:
locally suppress conflict warnings
suppress the variable save warnings</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Log">Log</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
log %texts% [(to|in) ] %texts%]
加入的版本:
2.0
写一个log文件。你可以在 /plugins/Skript/logs 里找到
使用 'server.log' 将如此记录 ' [<script>.sk] <message>'
示例:
on place of TNT:
      log "%player% placed TNT in %world% at %location of block%" to "tnt/placement.log"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Loop_Version">Loop Version</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
use (old|new|2.1.2|2.2) loops
加入的版本:
unknown (2.2)
使用指定版本形式的loop-value
示例:
use old loops
use new loops</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Make_Fly">Make Fly</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
force %players% to [(start|stop)] fly
make %players% (start|stop) flying
make %players% fly
加入的版本:
2.2-dev34
强制玩家开始/停止飞行 #译者注:建议使用set player's fly mode来调整玩家的飞行,Make Fly在某些情况下会报错并无法使用
示例:
make player fly
force all players to stop flying</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Make_Say">Make Say</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
make %players% (say|send message) %texts%
force %players% to (say|send message) %texts%
加入的版本:
2.3
强制玩家发送消息。如果消息以"/"开头,将强制玩家使用命令。
示例:
make the player say "Hello."
force all players to send the message "I love this server"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Message">Message</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(message|send ) %texts%
加入的版本:
1.0
发送消息
示例:
message "A wild %player% appeared!"
message "This message is a distraction. Mwahaha!"
send "Your kill streak is %{kill streak.%player%}%." to player
if the targeted entity exists:
      message "You're currently looking at a %type of the targeted entity%!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="op/deop"></span><span class="mw-headline" id="op.2Fdeop">op/deop</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
]op %offline players%
加入的版本:
1.0
给予/拿走玩家的OP权限
示例:
op the player
deop all players</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Open_Inventory">Open Inventory</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(open|show) ((crafting |workbench) (view|window|inventory)]|%inventory%) (to|for) %players%
close inventory (to|of|for) %players%
close %players%' inventory
加入的版本:
2.0, 2.1.1 (closing)
为玩家打开背包
SHOW为不能移动东西
OPEN为可以移动
示例:
show the victim's inventory to the player
open the player's inventory for the player
close the player's inventory</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Play_Effect">Play Effect</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(play|show) %visual effects% (on|%directions%) %entities/locations%
加入的版本:
2.1
播放声音
示例:
play wolf hearts on the clicked wolf
show mob spawner flames at the targeted block to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Play_Sound">Play Sound</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
play sound %texts% [(in|from) %sound category%] [(at|with) volume %number%] [(and|at|with) pitch %number%] at %locations%
play sound %texts% [(in|from) %sound category%] [(at|with) volume %number%] [(and|at|with) pitch %number%] [(to|for) %players%] [(at|from) %locations%]
加入的版本:
2.2-dev28, 2.4 (sound categories)
要求游戏版本:
Minecraft 1.11+ (sound categories)
在指定位置为每个人播放声音或仅为指定的玩家播放声音,或为指定的玩家播放声音。
同时支持Minecraft声音名称和Spigot声音名称。也支持播放资源包声音。默认情况下,声音类别为"master"。
请注意,声音名称可以在任何Minecraft或Spigot版本中更改,甚至可以从Minecraft本身中删除。
示例:
play sound "block.note_block.pling" # It is block.note.pling in 1.12.2
play sound "entity.experience_orb.pickup" with volume 0.5 to the player
play sound "custom.music.1" in jukebox category at {speakerBlock}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Player_Info_Visibility">Player Info Visibility</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
hide player info [(in|on|from) server list]
(show|reveal) player info [(in|to|on|from) server list]
加入的版本:
2.3
需要前置的事件:
server list ping
服务端核心要求:
Paper 1.12.2 或更新
设置是否在服务器列表中隐藏所有与播放机相关的信息。Vanilla Minecraft客户端会展示"????(深灰色)"代替玩家
隐藏玩家信息时不会显示Tab历史记录。版本字符串可以重写"????"。同时,隐藏玩家信息时,在线玩家数和最大玩家数表达式将返回-1。#译者注:这里是机翻,我也不知道具体该怎么翻译,抱歉。
示例:
hide player info
hide player related information in the server list
reveal all player related info</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Player_Visibility">Player Visibility</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
hide %players% [(from|for) %players%]
reveal %players% [(to|for|from) %players%]
加入的版本:
2.3
更改指定玩家的玩家可见性(类似隐身)。
当“显示/隐藏 玩家”表达式组合使用且未指定时,将默认为“隐藏玩家”表达式中的指定玩家。
注意:如果玩家被隐藏并重新定位,该玩家将再次可见。
示例:
on join:
    if {vanished::%player's uuid%} is true:
      hide the player from all players

reveal hidden players of {_player}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Poison/Cure"></span><span class="mw-headline" id="Poison.2FCure">Poison/Cure</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
poison %living entities%
(cure|unpoison) %living entities% [(from|of) poison]
加入的版本:
1.3.2
中毒
示例:
poison the player
poison the victim for 20 seconds
cure the player from poison</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Potion_Effects">Potion Effects</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
apply %potions% [[ tier] %number%] to %living entities%
加入的版本:
2.0
药水效果
示例:
apply swiftness 2 to the player
remove haste from the victim
on join:
      apply potion of strength of tier {strength.%player%} to the player for 999 days</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Push">Push</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(push|thrust) %entities% %direction% [(at|with) (speed|velocity|force) %number%]
加入的版本:
1.4.6
推开实体
示例:
push the player upwards
push the victim downwards at speed 0.5</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="PvP_2">PvP</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
enable PvP
disable PVP
加入的版本:
1.3.4
检测PVP状态
示例:
enable PvP #(current world only)
disable PvP in all worlds</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Replace">Replace</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
replace [(all|every)] %texts% in %text% with %text%
replace [(all|every)] %texts% with %text% in %text%
加入的版本:
2.0
把一些文本替换
示例:
replace "<item>" in {textvar} with "%tool of player%"
replace every "&" with "§" in line 1
# The following acts as a simple chat censor, but it will e.g. censor mass, hassle, assassin, etc. as well:
on chat:
      replace all "fct]c]s" with "****" in the message</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Return">Return</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
return %objects%
加入的版本:
2.2
使函数返回值
示例:
function double(i: number) :: number:
    return 2 * {_i}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Send_Block_Change">Send Block Change</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
make %players% see %blocks% as %item stack%
加入的版本:
2.2-dev37c
使在玩家眼中看见的方块不同(大概)
示例:
make player see block at player as dirt</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Send_Resource_Pack">Send Resource Pack</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
send resource pack URL]] %text% to %players%
send resource pack URL]] %text% with hash %text% to %players%
加入的版本:
2.4
请求玩家的客户端下载并切换资源包。客户端将在后台下载资源包,并在下载完成后自动切换到该资源包。URL必须是直接下载链接(即http://xxxx.xxx/xxx.zip结尾,某些网盘的下载链接就算了吧)。
散列用于缓存,玩家不必以这种方式重新下载资源包。哈希必须是sha-1,您可以使用此联机工具(https://emn178.github.io/online-tools/sha1_checksum.html)获取资源包的sha-1哈希。
资源包请求操作可用于检查已发送资源包请求的状态。
示例:
on join:
    send the resource pack from "URL" with hash "hash" to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Shear">Shear</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
shear %living entities%
un[-]shear %living entities%
加入的版本:
2.0
为羊剪羊毛,请注意不会掉落物品
示例:
on rightclick on a sheep holding a sword:
      shear the clicked sheep</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Shoot">Shoot</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
shoot %entity types% [(at|with) (speed|velocity) %number%] [%direction%]
(make|let) %living entities/locations% shoot %entity types% [(at|with) (speed|velocity) %number%] [%direction%]
加入的版本:
1.4
从实体身上发射物品
示例:
shoot an arrow
make the player shoot a creeper at speed 10
shoot a pig from the creeper</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Spawn">Spawn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
spawn %entity types% [%directions% %locations%]
spawn %number% of %entity types% [%directions% %locations%]
加入的版本:
1.0
召唤一个实体
示例:
spawn 3 creepers at the targeted block
spawn a ghast 5 meters above the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Stop_Sound">Stop Sound</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
stop sound %texts% [(in|from) %sound category%] [(from playing to|for) %players%]
stop playing sound %texts% [(in|from) %sound category%] [(to|for) %players%]
加入的版本:
2.4
游戏版本要求:
Minecraft 1.10.2+, Minecraft 1.11+ (sound categories)
停止向指定的玩家播放声音。同时支持Minecraft声音名称和Spigot声音名称。也支持资源包声音。默认情况下,声音类别为"master"。
无法从其他类别停止声音。请注意,声音名称可以在任何Minecraft或Spigot版本中更改,甚至可以从Minecraft本身中删除。
示例:
stop sound "block.chest.open" for the player
stop playing sounds "ambient.underwater.loop" and "ambient.underwater.loop.additions" to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Teleport">Teleport</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
teleport %entities% (to|%direction%) %location%
加入的版本:
1.0
传送实体到某个位置
示例:
teleport the player to {homes.%player%}
teleport the attacker to the victim</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Title_-_Reset">Title - Reset</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
reset title
reset %players%' title
加入的版本:
2.3
将玩家的标题重置为默认值。
示例:
reset the titles of all players
reset the title</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Title_-_Send">Title - Send</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
send title %text% in %time span%] [(and|with) fade[(-| )]out %time span%]
send subtitle %text% in %time span%] [(and|with) fade[(-| )]out %time span%]
加入的版本:
2.3
向玩家发送一个标题信息,并为1.11及以上版本的Minecraft提供可选的fadein/stay/fadeout时间。注意:如果没有为标题/副标题或时间提供输入,它将保留上次发送的标题,使用重置标题效果恢复默认值。
示例:
send title "Competition Started" with subtitle "Have fun, Stay safe!" to player for 5 seconds
send title "Hi %player%" to player
send title "Loot Drop" with subtitle "starts in 3 minutes" to all players
send title "Hello %player%!" with subtitle "Welcome to our server" to player for 5 seconds with fadein 1 second and fade out 1 second
send subtitle "Party!" to all players
send title "为什么那么多东西没在wiki翻译更新!!!累死我了QAQ" to player for 233 seconds</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Toggle">Toggle</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(close|turn off|de[-]activate) %blocks%
(toggle|switch) [ state of] %blocks%
(open|turn on|activate) %blocks%
加入的版本:
1.4
切换某个方块的状态,如开门
示例:
# use arrows to toggle levers, doors, etc.
on projectile hit:
    projectile is arrow
    toggle the block at the arrow</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Toggle_Flight">Toggle Flight</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(allow|enable) (fly|flight) (for|to) %players%
(disallow|disable) (fly|flight) (for|to) %players%
加入的版本:
2.3
切换玩家的飞行模式
示例:
allow flight to event-player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Tree">Tree</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(grow|create|generate) tree %directions% %locations%
(grow|create|generate) %tree type% %directions% %locations%
加入的版本:
1.0
生成树,需要有足够空间
示例:
grow a tall redwood tree above the clicked block</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Vectors_-_Rotate_Around_Vector">Vectors - Rotate Around Vector</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
rotate %vectors% around %vector% by %number%
加入的版本:
2.2-dev28
围绕一个矢量旋转另一个矢量/向量(机翻)
示例:
rotate {_v} around vector 1, 0, 0 by 90</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Vectors_-_Rotate_around_XYZ">Vectors - Rotate around XYZ</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
rotate %vectors% around (x|y|z)(-| )axis by %number%
加入的版本:
2.2-dev28
绕X、Y或Z轴旋转若干度
示例:
rotate {_v} around x-axis by 90
rotate {_v} around y-axis by 90
rotate {_v} around z-axis by 90 degrees</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Vehicle">Vehicle</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(make|let|force) %entities% (ride|mount) [(in|on)] %entity/entity types%
[(make|let|force) %entities% (dismount|(dismount|leave) (from|of)] [(any|the|his|her)] vehicle)
[(eject|dismount) (any|the)] passenger (of|from) %entities%
加入的版本:
2.0
使实体坐上载具。
示例:
make the player ride a saddled pig
make the attacker ride the victim
</pre><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="表达式"></span><span class="mw-headline" id=".E8.A1.A8.E8.BE.BE.E5.BC.8F">表达式</span></h3><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">表达式是表示某个对象的语法元素,如一个玩家 一个数字 多个物体 服务器世界 或 列表中的方块。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">表达式在Skript脚本中可以被用在任何地方如 set {var} to <value> 或 teleport <entity expression> to <location expression>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">值的另一个可能是使用统计值,如 ‘6’ 和 ‘a pickaxe and a shovel’.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这里有两种基础的表达式:</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">简单的表达式,其中只有一些简短的单词 ,如‘player’, ‘world’, or ‘last spawned entity’, 并且经常的依赖发生的事件, 它们的值会随着事件的改变而改变。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如player表达式会表达为当前触发事件的玩家。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">属性表达式,从另一个表达式中获取值。如 data value of <item>, altitude of <location>, <entity>'s world.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">但也有一些例外, e.g. distance between <location> and <location> or the direction expression.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">表达式可以在循环中被使用,来循环执行某些代码,格式为</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"> loop <expression>:</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">请前往循环页来获取更多。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Advanced">Advanced</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">从Skript 2.0开始, 表达式可以用圆括号来表示它们之间的关系,如, set {var} to 10 emeralds and an apple or 5 stone 会报错 ,</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">但 set {var} to 10 emeralds and (an apple or 5 stone) 便不会 (如果没有括号这个特殊的例子会报错).</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你在表达式中使用另一个表达式请使用()括起,如 all players in "world" and "world_nether" 应写成 all players in ("world" and "world_nether"),</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">否则,就会被读取为 (all players in "world") and ("world_nether").</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Altitude">Altitude</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
altitude of %locations%
%locations%' altitude
加入的版本:
1.4.3
是Y坐标的简写形式,这会表示Y坐标为0以上的Y坐标。
示例:
on damage:
      altitude of the attacker is higher that the altitude of the victim
      set damage to damage * 1.25</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Amount">Amount</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(amount|number|size) of %objects%
加入的版本:
1.0
一些东西的数量
请注意 amount of <items> 并不会返回物品的数量,而是物品的组数 如 1 表示 64 个
示例:
message "There are %number of all players% players online!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Amount_of_Items">Amount of Items</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(amount|number) of %item types% (in|of) %inventories%
加入的版本:
2.0
在给出的物品栏计数物品
示例:
message "You have %number of ores in the player's inventory% ores in your inventory."</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Argument">Argument</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
last arg
arg(-| )<(d+)>
<(d*1)st|(d*2)nd|(d*3)rd|(d*)th> arg
arg
%*type%( |-)arg[( |-)<d+>]
arg( |-)%*type%[( |-)<d+>]
加入的版本:
1.0
只在命令中工作。 持有给予参数的值,如 指令 "/tell " 会这样使用 "/tell Njol Hello Njol!", 第一个参数是玩家 "Njol" 第二个参数是 "Hello Njol!".
同时也可以使用参数的类型来代替它的值 如 上面的 'player-argument' 与第一个参数相同
示例:
give the item-argument to the player-argument
damage the player-argument by the number-argument
give a diamond pickaxe to the argument
add argument 1 to argument 2
heal the last argument</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Arithmetic">Arithmetic</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%number%[ ]+[ ]%number%
%number%[ ]-[ ]%number%
%number%[ ]*[ ]%number%
%number%[ ]/[ ]%number%
%number%[ ]^[ ]%number%
加入的版本:
1.4.2
代数运算, 如. 1+2, (2 - health of player)/3
支持的运算有addition (+), subtraction (-), multiplication (*), division (/), and exponentiation<ref>次方</ref> (^). ''Negation is not available yet, use 0 - expr instead.''
示例:
set the player's health to 10 - the player's health
loop (argument + 2)/5 times:
      message "Two useless numbers: %loop-num*2 - 5%, %2^loop-num - 1%"
message "You have %health of player * 2% half hearts of HP!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Armour_Slot">Armour Slot</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(boot|shoe|leg|chestplate|helm) of %living entities%
%living entities%' (boot|shoe|leg|chestplate|helm)
加入的版本:
1.0
玩家装备栏的一个部分
在SK 2.1之后兼容怪物的物品栏
示例:
set chestplate of the player to a diamond chestplate
helmet of player is neither a helmet nor air # player is wearing a block, e.g. from another plugin</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Attacked">Attacked</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(attacked|damaged|victim) [<(.+)>]
加入的版本:
1.3
一个受伤害的事件
示例:
on damage:
      victim is a creeper
      damage the attacked creeper by 1 heart</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Attacker">Attacker</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(attacker|damager)
加入的版本:
1.3
受伤害事件中的攻击者
攻击者可以是自然 如. a cactus or lava, 但这种情况下将不会有表达式
示例:
on damage:
      attacker is a player
      health of attacker is less than or equal to 2
      damage victim by 1 heart</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Bed">Bed</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
bed ] of %players%
%players%' bed ]
加入的版本:
2.0
玩家床的位置
示例:
bed of player exists:
      teleport player the the player's bed
else:
      teleport the player to the world's spawn point</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Biome">Biome</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
biome (of|%direction%) %location%
%location%' biome
加入的版本:
1.4.4
当前位置的生物群系。请注意至于X Z坐标有关,Y坐标不会有关系。
示例:
# damage player in deserts constantly
every real second:
      loop all players:
                biome at loop-player is desert
                damage the loop-player by 1</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Block">Block</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
block
block %direction% [%location%]
加入的版本:
1.0
事件中的方块,如点击的方块和破坏的方块
同时支持方块的位置, 如 'block above' or 'block in front of the player'.
示例:
block is ore
set block below to air
spawn a creeper above the block
loop blocks in radius 4:
      loop-block is obsidian
      set loop-block to water
block is a chest:
      clear the inventory of the block</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Block_Sphere">Block Sphere</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(all|the)] blocks in radius %number% [(of|around) %location%]
[(all|the)] blocks around %location% in radius %number%
加入的版本:
1.0
玩家半径内的所有方块,经常用在循环中
示例:
loop blocks in radius 5 around the player:
      set loop-block to air
set all blocks in radius 5 around the player to air</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Blocks">Blocks</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
blocks %direction% [%locations%]
blocks from %location% %direction%
blocks from %block% to %block%
blocks between %block% and %block%
加入的版本:
1.0
相对于其他方块的方块或其他方块之间的方块。经常用于循环中
示例:
loop blocks above the player:
loop blocks between the block below the player and the targeted block:
set the blocks below (the player, the victim and the targeted block) to air</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Blocks_in_Region">Blocks in Region</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
cannot be used directly
加入的版本:
2.1
区域中的方块,需要区域插件
示例:
loop all blocks in the region {arena.%{faction.%player%}%}:
      clear the loop-block</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Chunk">Chunk</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
chunk (of|%directions%) %locations%
%locations%' chunk
加入的版本:
2.0
区块
示例:
add the chunk at the player to {protected chunks::*}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Clicked_Block/Entity"></span><span class="mw-headline" id="Clicked_Block.2FEntity">Clicked Block/Entity</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
clicked (block|%*item type/entity type%)
加入的版本:
1.0
点击的方块/实体
示例:
message "You clicked on a %type of clicked entity%!"
clicked block is a chest:
      show the inventory of the clicked block to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Colour_of">Colour of</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
color of %item stacks/entities%
%item stacks/entities%' color
加入的版本:
1.2
物品的染色色彩。如 "<%colour of ...%>this text is coloured!".
示例:
on click on wool:
      message "This wool block is <%colour of block%>%colour of block%<reset>!"
      set the colour of the block to black</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Coloured_/_Uncoloured"></span><span class="mw-headline" id="Coloured_.2F_Uncoloured">Coloured / Uncoloured</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(color-|colored )%texts%
(un|non)[-](color-|colored )%texts%
加入的版本:
2.0
在文本中添加或移除颜色
这个表达式会替换本地的颜色与格式。它不会取代英语,这使得它适用于颜色命令参数和聊天消息。
示例:
on chat:
      set message to coloured message
command /fade <player>:
      trigger:
                set display name of the player-argument to uncoloured display name of the player-argument</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Command_2">Command</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(full|complete|whole) command
command
arguments
加入的版本:
2.0
触发指令事件的指令
使用'full command'来查看包括参数的指令,'arguments' 来查看参数部分。
这个事件不能胜任一些自定义命令. See the article on custom commands to find out how to define new commands.
示例:
# prevent any commands except for the /exit command during some game
on command:
      {game.%player%.is playing} is true
      command is not "exit"
      message "You're not allowed to use commands during the game"
      cancel the event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Command_Sender">Command Sender</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
] (sender|executor)
加入的版本:
2.0
发送指令的人或控制台
示例:
make the command sender execute "/say hi!"
on command:
      log "%executor% used command /%command% %arguments%" to "commands.log"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Compass_Target">Compass Target</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
compass target of %players%
%players%' compass target
加入的版本:
2.0
玩家的指南针指向
你可以使指南针指向一个实体,但只是指向这个当前的位置。
示例:
# make all player's compasses target a player stored in {compass target.%player%}
every 5 seconds:
      loop all players:
                set the loop-player's compass target to location of {compass target.%loop-player%}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Console">Console</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(console|server)
加入的版本:
1.3.1
服务器控制台
示例:
execute console command "/stop"
send "message to console" to the console</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Coordinate">Coordinate</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(x|y|z)(-| )(coord|pos|loc) of %locations%
%locations%' (x|y|z)(-| )(coord|pos|loc)
加入的版本:
1.4.3
表示位置的一个坐标
示例:
player's y-coordinate is smaller than 40:
      message "Watch out for lava!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Creature/Entity/Player/Projectile/Villager/Powered_Creeper/etc."></span><span class="mw-headline" id="Creature.2FEntity.2FPlayer.2FProjectile.2FVillager.2FPowered_Creeper.2Fetc.">Creature/Entity/Player/Projectile/Villager/Powered Creeper/etc.</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
<.+>
加入的版本:
1.0
触发事件的实体
你可以使用实体的类型,如在 'death of a creeper' 中你可以使用 'the creeper' 来代替 'the entity'.
示例:
give a diamond sword of sharpness 3 to the player
kill the creeper
kill all powered creepers in the wolf's world
projectile is an arrow</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Damage">Damage</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
damage
加入的版本:
1.3.5
在伤害事件中的伤害值,可能忽略护甲, 附魔 。可以被更改[注意在Skript中1是满心,不是半心]
示例:
increase the damage by 2</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Damage_Cause_2">Damage Cause</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
damage (cause|type)
加入的版本:
2.0
伤害事件中造成伤害的来源
示例:
damage cause is lava, fire or burning</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Data_Value">Data Value</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
((data|damage) ]|durabilit(y|ies)) of %item stacks/slots%
%item stacks/slots%' ((data|damage) ]|durabilit(y|ies))
加入的版本:
1.2
一个物品的数据值
你一般不需要这个表达式,因为你可以直接检测类型。但是这个表达式可以改变数据值,如 "add 1 to data of <item>", 如循环使用羊毛颜色
示例:
add 1 to the data value of the clicked block</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Difference">Difference</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
difference (between|of) %object% and %object%
加入的版本:
1.4
两个值之间的差异
示例:
difference between {command.%player%.lastuse} and now is smaller than a minute:
message "You have to wait a minute before using this command again!"
stop</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Direction">Direction</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[%number% [(north[(east|west)][(south[(east|west)][(east|west)[(above|over|up|down)|beneath) [%direction%]
[%number% [[(direction|horizontal direction|facing|horizontal facing) of %entity/block% (of|from)]
[%number% [[(direction|horizontal direction|facing|horizontal facing) (of|from)]
[%number% [(in[ ]front |forward|behind|backwards|right|left) )
[%number% [(in[ ]front |forward|behind|backwards|right|left) )
加入的版本:
1.0 (basic), 2.0 (extended)
当前位置类型的一个帮助表达式
示例:
thrust the player upwards
set the block behind the player to water
loop blocks above the player:
      set {_rand} to a random integer between 1 and 10
      set the block {_rand} meters south east of the loop-block to stone
block in horizontal facing of the clicked entity from the player is air
spawn a creeper 1.5 meters horizontally behind the player
spawn a TNT 5 meters above and 2 meters horizontally behind the player
thrust the last spawned TNT in the horizontal direction of the player with speed 0.2
push the player upwards and horizontally forward at speed 0.5
push the clicked entity in in the direction of the player at speed -0.5
open the inventory of the block 2 blocks below the player to the player
teleport the clicked entity behind the player
grow a regular tree 2 meters horizontally behind the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Distance">Distance</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
distance between %location% and %location%
加入的版本:
1.0
两点之间的距离
方块的距离经常按照中心来计算,实体按照脚的距离
示例:
distance between the player and {%player%.home} is smaller than 20:
      message "You're very close to your home!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Drops">Drops</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
drops
加入的版本:
1.0
死亡事件中的掉落物
掉落物可以如此被移除 "remove ... from drops",如 "remove all pickaxes from the drops", 或 "clear drops" 如果你不想要任何掉落物的话
示例:
clear drops
remove 4 planks from the drops</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Element_of">Element of</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
( first| last| random) element of %objects%
加入的版本:
2.0
最后的参数是随机元素的列表,如变量列表
示例:
give a random element out of {free items::*} to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Enchantment_Level">Enchantment Level</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(%enchantment% level|level of [ enchant] %enchantment%) o(f|n) %item types%
%item types%' (%enchantment% level|level of [ enchant] %enchantment%)
加入的版本:
2.0
附魔的等级
示例:
player' tool is a sword of sharpness:
      message "You have a sword of sharpness %level of sharpness of the player's tool% equipped"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Ender_Chest">Ender Chest</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
ender[ ]chest of %players%
%players%' ender[ ]chest
加入的版本:
2.0
玩家的末影箱. 这个项目在打开背包时可以使用,其中的物品可以被修改,它也可以被任何玩家打开。(不只是它的主人).
示例:
open the player's ender chest to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Entities">Entities</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%*entity types% [(in|of) ] %worlds%]
entities of type %entity types% [(in|of) ] %worlds%]
%*entity types% (within|in radius) %number% [(block|met(er|re))] (of|around) %location%
entities of type %entity types% in radius %number% (of|around) %location%
加入的版本:
1.2.1
在所有世界/单个世界/半径中的所有实体,如. 'all players', 'all creepers in the player's world', 或 'players in radius 100 of the player'.
示例:
kill all creepers in the player's world
send "Psst!" to all players witin 100 meters of the player
give a diamond to all ops
heal all tamed wolves in radius 2000 around {town center}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Experience">Experience</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(spawned|dropped)] xp ]
加入的版本:
2.1
在一个经验生成事件中生成的经验数量,可以被修改
示例:
on experience spawn:
      add 5 to the spawned experience</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Facing">Facing</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
facing of %living entities/blocks%
%living entities/blocks%' facing
加入的版本:
1.4
实体或方块面朝的方向
示例:
# makes a bridge
loop blocks from the block below the player in the horizontal facing of the player:
      set block to cobblestone</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Food_Level">Food Level</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(food|hunger)[[ ](level|met(er|re)|bar)]
%player%' (food|hunger)[[ ](level|met(er|re)|bar)]
加入的版本:
1.0
玩家的饥饿值0-10 别名—— food/hunger level/meter/bar.
示例:
set the player's food level to 10</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Former/Future_State"></span><span class="mw-headline" id="Former.2FFuture_State">Former/Future State</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(former|past|old) %~object%
%~object% before
(future|to-be|new) %~object%
%~object%(-to-be| after[(wards| the event)])
加入的版本:
1.1
什么鬼?last?
''
Represents the value of an expression before an event happened or the value it will have directly after the event, e.g. the old or new level respectively in a level change event.
Note: The past, future and present states of an expression are sometimes called 'time states' of an expression.
Note 2: If you don't specify whether to use the past or future state of an expression that has different values, its default value will be used which is usually the value after the event.''
示例:
on teleport:
      former world was "world_nether" # or 'world was'
      world will be "world" # or 'world after the event is'
on tool change:
      past tool is an axe
      the tool after the event will be air
on weather change:
      set {weather.%world%.old} to past weather
      set {weather.%world%.current} to the new weather</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Furnace_Slot">Furnace Slot</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(ore|fuel|result) ] of %blocks%
%blocks%' (ore|fuel|result) ]
加入的版本:
1.0
熔炉的一个槽位
示例:
set the fuel slot of the clicked block to a lava bucket
set the block's ore slot to 64 iron ore
give the result of the block to the player
clear the result slot of the block</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Game_Mode">Game Mode</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
game[ ]mode of %players%
%players%' game[ ]mode
加入的版本:
1.0
游戏模式
示例:
player's gamemode is survival
set the player's gamemode to creative</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Hash">Hash</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[( |-)hash(ed|[( |-)]code] of) %texts%
加入的版本:
2.0
''Hashes the given text using the MD5 algorithm. This is useful for storing passwords or IP addresses without having to store them literally.
Please note that an MD5 hash is irreversible, i.e. you won't be able to get the original text back (which is the point of storing passwords like this). Brute force and rainbow table attacks can still be performed on hashes though which can easily crack short or insecure passwords.''
示例:
command /setpass <text>:
      trigger:
                set {password.%player%} to hashed text-argument
command /login <text>:
      trigger:
                {password.%player%} is hashed text-argument:
                        message "login successful."
                else:
                        message "wrong password!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Head_location">Head location</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(head|eye) ] of %living entities%
%living entities%' (head|eye) ]
加入的版本:
2.0
实体头颅的坐标
只对两个及以上高的实体有用 如 players, endermen, zombies, skeletons, etc.,但以下没用 sheep, pigs or cows.
示例:
set the block at the player's head to air
set the block in front of the player's eyes to glass
loop blocks in front of the player's head:</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Health">Health</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
health of %living entities%
%living entities%' health
加入的版本:
1.0
实体的血量
示例:
message "You have %health% HP left."</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Id">Id</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
id of %item type%
%item type%' id
加入的版本:
1.0
一个物品的ID,你不需要这个表达式因为你可以使用别称
示例:
message "the ID of %type of the clicked block% is %id of the clicked block%."</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Index_Of">Index Of</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(first|last)] index of %text% in %text%
加入的版本:
2.1
''The first of last index of a character (or text) in a text, or -1 if it doesn't occur in the text. Indices range from 1 to the length of the text.''
示例:
set {_@} to the first index of "@" in the text argument
if {_s} contains "abc":
      set {_s} to the first (index of "abc" in {_s} + 3) characters of {_s} # removes everything after the first "abc" from {_s}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Inventory">Inventory</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
inventor(y|ies) of %inventoryholders%
%inventoryholders%' inventor(y|ies)
加入的版本:
1.0
一个方块或玩家的物品栏
示例:
add a plank to the player's inventory
clear the player's inventory
remove 5 wool from the inventory of the clicked block</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="IP">IP</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
IP[( |-)address] of %players%
%players%' IP[( |-)address]
加入的版本:
1.4
玩家的IP
示例:
IP-ban the player # is equal to the next line
ban the IP-address of the player
broadcast "Banned the IP %IP of player%"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Item">Item</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
item
加入的版本:
unknown
事件中的物品
示例:
on dispense:
      item is a clock
      set the time to 6:00</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Items">Items</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(all|every)] item(s|[ ]types)
items of type %item types%
[(all|every)] block(s|[ ]types)
blocks of type %item types%
加入的版本:
unknown
特殊类型的物品或方块,经常用于循环
示例:
loop items of type ore and log:
      block contains loop-item
      message "There's at least one %loop-item% in this block"
      stop loop
drop all blocks at the player # drops one of every block at the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Items_In">Items In</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
items (inventor(y|ies)) %inventories%
加入的版本:
2.0
物品栏内的物品,经常用于循环
请注意不会记录他们的位置
示例:
loop all items in the player's inventory:
      loop-item is enchanted
      remove loop-item from the player
set {inventory.%player%::*} to items in the player's inventory</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Join_&_Split"></span><span class="mw-headline" id="Join_.26_Split">Join & Split</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(concat|join) %texts% [(with|using|by) [ delimiter] %text%]
split %text% (at|using|by) [ delimiter] %text%
%text% (at|using|by) [ delimiter] %text%
加入的版本:
2.1
''Joins several texts with a common delimiter (e.g. ", "), or splits a text into multiple texts at a given delimiter.''
示例:
message "Online players: %join all players with " | "%" # %all players% would use the default "x, y, and z"
set {_s::} to the string argument split at ","</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Last_Spawned/Shot_Entity"></span><span class="mw-headline" id="Last_Spawned.2FShot_Entity">Last Spawned/Shot Entity</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
] (spawned|shot) %*entity type%
加入的版本:
1.3 (spawned entity), 2.0 (shot entity)
最近生成的实体
示例:
spawn a priest
set {%spawned priest%.healer} to true
shoot an arrow from the last spawned entity
ignite the shot projectile</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Length">Length</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
length of %texts%
%texts%' length
加入的版本:
2.1
文本的长度
示例:
set {_l} to length of the string argument</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Level">Level</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
level of %players%
%players%' level
加入的版本:
unknown
玩家的等级
示例:
reduce the victim's level by 1
set the player's level to 0</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Level_Progress">Level Progress</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
level progress of %players%
%players%' level progress
加入的版本:
2.0
升到下一级还有的百分比
改变这个值会使玩家的等级发生改变
示例:
# use the exp bar as mana
on rightclick with a blaze rod:
      player's level progress is larger than 0.2
      shoot a fireball from the player
      reduce the player's level progress by 0.2
every 2 seconds:
      loop all players:
                level progress of loop-player is smaller than 0.9:
                        increase level progress of the loop-player by 0.1
                else:
                        set level progress of the loop-player to 0.99
on xp spawn:
      cancel event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Light_Level">Light Level</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(sky|sun|block)[ ]]light[ ]level [(of|%direction%) %location%]
加入的版本:
1.3.4
光亮等级 0-14
示例:
# set vampire players standing in bright sunlight on fire
every 5 seconds:
      loop all players:
                {vampire.%loop-player%} is true
                sunlight level at the loop-player is greater than 10
                ignite the loop-player for 5 seconds</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Location">Location</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(location|position)
(location|position) %direction% [%location%]
加入的版本:
2.0
事件发生的坐标
示例:
drop 5 apples at the event-location # exactly the same as writing 'drop 5 apples'
set {_loc} to the location 1 meter above the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Location_At">Location At</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(location|position) [(][=[ ]]]%number%, [=[ ]]]%number%, [=[ ]]]%number%[)] [[(in|of) [ world]] %world%]
加入的版本:
2.0
从三个坐标和世界来创建一个坐标位置
这个表达式可能不能正确使用
示例:
set {_loc} to the location at arg-1, arg-2, arg-3 of the world arg-4
distance between the player and the location (0, 0, 0) is less than 200</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Location_Of">Location Of</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(location|position) of %location%
%location%' (location|position)
加入的版本:
unknown
玩家或方块的位置,如果是实体的话是实体的脚的位置
示例:
set {home.%player%} to the location of the player
message "Your home was set to %player's location% in %player's world%."</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Loop_value">Loop value</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
loop-<.+>
加入的版本:
1.0
当前的循环值
示例:
# countdown:
loop 10 times:
      message "%11 - loop-number%"
      wait a second
# generate a 10x10 floor made of randomly coloured wool below the player:
loop blocks from the block below the player to the block 10 east of the block below the player:
      loop blocks from the loop-block to the block 10 north of the loop-block:
                set loop-block-2 to any wool</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Lore">Lore</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
line %number% of lore of [%item stack/item type%]
line %number% of %item stack/item type%' lore
%number%(st|nd|rd|th) line of lore of [%item stack/item type%]
%number%(st|nd|rd|th) line of %item stack/item type%' lore
加入的版本:
2.1
一个物品的Lore
示例:
set the 1st line of the item's lore to "<orange>Excalibur 2.0"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Max_Health">Max Health</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
max health of %living entities%
%living entities%' max health
加入的版本:
2.0
一个实体最大的生命值
示例:
on join:
      set the maximum health of the player to 100
spawn a giant
set the last spawned entity's max health to 1000</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Maximum_Stack_Size">Maximum Stack Size</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
max stack[[ ]size] of %item stack%
%item stack%' max stack[[ ]size]
加入的版本:
2.1
一个物品最大的堆叠值
示例:
send "You can only pick up %max stack size of player's tool% of %type of (player's tool)%" to player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Me">Me</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
me
my
加入的版本:
2.1.1
只能在效果命令中使用
示例:
!heal me
!kick myself
!give a diamond axe to me</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Message_2">Message</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
message
(join|log[ ]in)( |-)message
(quit|leave|log[ ]out|kick)( |-)message
death( |-)message
加入的版本:
消息
示例:
on chat:
      player has permission "admin"
      set message to "<red>%message%"

on first join:
      set join message to "Welcome %player% to our awesome server!"
on join:
      player has played before
      set join message to "Welcome back, %player%!"

on quit:
      set quit message to "%player% left this awesome server!"

on death:
      set the death message to "%player% died!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Money">Money</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
cannot be used directly
加入的版本:
2.0
检测玩家拥有多少钱

需要Vault和一个经济插件
示例:
message "You have %player's money%" # the currency name will be added automatically
remove 20$ from the player's balance # replace '$' by whatever currency you use
add 200 to the player's account # or omit the currency alltogether</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Name_/_Display_Name"></span><span class="mw-headline" id="Name_.2F_Display_Name">Name / Display Name</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(player|tab)[ ]list name of %players%
%players%' (player|tab)[ ]list name
(display|nick|chat)[ ]name of %slots/item stacks/living entities/players%
%slots/item stacks/living entities/players%' (display|nick|chat)[ ]name
name of %slots/item stacks/living entities/players%
%slots/item stacks/living entities/players%' name
加入的版本:
玩家名/物品/实体名
示例:
on join:
      player has permission "name.red"
      set the player's display name to "<red><gold>%name of player%"
      set the player's tablist name to "<green>%name of player%"
set the name of the player's tool to "Legendary Sword of Awesomeness"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Named_Item">Named Item</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%item types% (named|with name) %text%
加入的版本:
2.0
当前物品的名字,你可以这样改变set name of <item> to <text>.
示例:
give a diamond sword of sharpness 100 named "<gold>Excalibur" to the player
set tool of player to the player's tool named "<gold>Wand"
set the name of the player's tool to "<gold>Wand"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Now">Now</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
now
加入的版本:
1.4
当前系统时间
示例:
broadcast "Current server time: %now%"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Numbers">Numbers</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(integers) (between|from) %number% (and|to) %number%
%number% times
加入的版本:
1.4.6
两个数字之间的数字,经常用于循环
示例:
loop 5 times: # loops 1, 2, 3, 4, 5
loop numbers from 2.5 to 5.5: # loops 2.5, 3.5, 4.5, 5.5
loop integers from 2.9 to 5.1: # same as '3 to 5', i.e. loops 3, 4, 5</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Parse">Parse</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%text% parsed as (%*type%|"<.*>")
加入的版本:
2.0
''Parses text as a given type, or as a given pattern.
This expression can be used in two different ways: One which parses the entire text as a single instance of a type, e.g. as a number, and one that parses the text according to a pattern.
If the given text could not be parsed, this expression will return nothing and the parse error will be set if some information is available.
Some notes about parsing with a pattern:
- The pattern must be a Skript pattern, e.g. percent signs are used to define where to parse which types, e.g. put a %number% or %items% in the pattern if you expect a number or some items there.
- You have to save the expression's value in a list variable, e.g. set {parsed::*} to message parsed as "...".
- The list variable will contain the parsed values from all %types% in the pattern in order. If a type was plural, e.g. %items%, the variable's value at the respective index will be a list variable, e.g. the values will be stored in {parsed::1::*}, not {parsed::1}.''
示例:
set {var} to line 1 parsed as number
on chat:
      set {var::*} to message parsed as "buying %items% for %money%"
      if parse error is set:
                message "%parse error%"
      else if {var::*} is set:
                cancel event
                remove {var::2} from the player's balance
                give {var::1::*} to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Parse_Error">Parse Error</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
error
加入的版本:
2.0
导致最后一个解析操作失败的错误,如果使用了模式,而模式与所提供的文本不匹配,这可能无法设置。
示例:
set {var} to line 1 parsed as integer
if {var} is not set:
      parse error is set:
                message "<red>Line 1 is invalid: %last parse error%"
      else:
                message "<red>Please put an integer on line 1!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Passenger">Passenger</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
passenger of %entities%
%entities%' passenger
加入的版本:
2.0
一个载具的乘客
示例:
passenger of the minecart is a creeper or a cow
the saddled pig's passenger is a player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Prefix/Suffix"></span><span class="mw-headline" id="Prefix.2FSuffix">Prefix/Suffix</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
cannot be used directly
加入的版本:
2.0
聊天插件中的前缀和后缀
示例:
on chat:
      cancel event
      broadcast "%player's prefix%%player's display name%%player's suffix%: %message%" to the player's world
set the player's prefix to "[<red>Admin<reset>] "</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Random">Random</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">模型: random %*type% of %objects% 加入的版本: 1.4.9 随机 示例: give a diamond to a random player out of all players give a random item out of all items to the player Random Number 模型: random (integer|number) (from|between) %number% (to|and) %number% 加入的版本: 1.4 A random number or integer between two given numbers. Use 'number' if you want any number with decimal parts, or use use 'integer' if you only want whole numbers. Please note that the order of the numbers doesn't matter, i.e. random number between 2 and 1 will work as well as random number between 1 and 2. 示例: set the player's health to a random number between 5 and 10</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">send "You rolled a %random integer from 1 to 6%!" to the player</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Region">Region</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
cannot be used directly
加入的版本:
2.1
区域,需要一个区域插件
示例:
on region enter:
      region is {forbidden region}
      cancel the event</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Region_Members_&_Owners"></span><span class="mw-headline" id="Region_Members_.26_Owners">Region Members & Owners</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
cannot be used directly
加入的版本:
2.1
区域成员/主人
示例:
on entering of a region:
      message "You're entering %region% whose owners are %owners of region%".</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Regions_At">Regions At</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
cannot be used directly
加入的版本:
2.1
区域的位置
示例:
On click on a sign:
      line 1 of the clicked block is ""
      set {_regions::*} to regions at the clicked block
      if {_regions::*} is empty:
                message "No regions exist at this sign."
      else:
                message "Regions containing this sign: <gold>%{_regions::*}%<r>."</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Remaining_Air">Remaining Air</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
remaining air of %living entities%
%living entities%' remaining air
加入的版本:
unknown
剩余的氧气值
示例:
player's remaining air is less than 3 seconds:
      send "hurry, get to the surface!" to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Rounding">Rounding</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
floor(%number%)
[(a|the)] round down %number%
round(%number%)
[(a|the)] round %number%
ceil(%number%)
[(a|the)] round up %number%
加入的版本:
2.0
''Rounds numbers normally, up (ceiling) or down (floor) respectively.''
示例:
set {var} to rounded health of player
set line 1 of the block to round(1.5 * player's level)
set {_x} to floor({_y}) - ceil({_x})
add rounded down argument to the player's health</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Script_Name">Script Name</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
script[['s] name]
加入的版本:
2.0
当前脚本的名字
示例:
on script load:
      set {running.%script%} to true
on script unload:
      set {running.%script%} to false</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Shooter">Shooter</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
shooter
加入的版本:
1.3.7
弹射物的发射者
示例:
shooter is a skeleton
add 1 to {game.points.%shooter of {game.ball}%}</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Sign_Text">Sign Text</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
line %number%
(1st|first|2nd|second|3rd|third|4th|fourth) line
加入的版本:
1.3
牌子的一行字,最大一行16字符
示例:
on rightclick on sign:
      line 2 of the clicked block is "":
                heal the player
      set line 3 to "%player%"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Skull">Skull</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
skull of %offline players/entities/entity types%
%offline players/entities/entity types%' skull
加入的版本:
2.0
获取玩家或实体的头颅
示例:
give the victim's skull to the attacker
set the block at the entity to the entity's skull</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Spawn_2">Spawn</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
spawn [(point|location)]
%worlds%' spawn [(point|location)]
加入的版本:
1.4.2
世界的重生点
示例:
teleport all players to spawn
set the spawn point of "world" to the player's location</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Speed">Speed</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(walk|fl(y|ight))[( |-])speed of %players%
%players%' (walk|fl(y|ight))[( |-])speed
加入的版本:
unknown
玩家的走路和飞行速度
示例:
set the player's walk speed to 1
increase the argument's fly speed by 0.1
set the walk speed of the player to 0-(the player's walk speed) # reverses the player's speed</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Subtext">Subtext</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(part|sub[ ](text|string)) of %texts% (between|from) (ind(ex|ices)|character)] %number% [(and|to) (index|character)] %number%
(first|last) [%number%] character of %texts%
%number% (first|last) characters of %texts%
加入的版本:
2.1
一个文本的剩余部分
示例:
set {_s} to the first 5 characters of the text argument
message "%subtext of {_s} from characters 2 to (the length of {_s} - 1)%" # removes the first and last character from {_s} and sends it to the player or console</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Target">Target</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
target[ %*entity type%]
%living entities%' target[ %*entity type%]
加入的版本:
unknown
玩家鼠标指针指向的实体,怪物跟随的实体
示例:
on entity target:
    entity's target is a player
    send "You're being followed by an %entity%!" to target of entity</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Targeted_Block">Targeted Block</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
target block
%players%' target block
actual target block
%players%' actual target block
加入的版本:
1.0
玩家指针指向的方块
示例:
# A command to set the block a player looks at to a specific type:
command /setblock <material>:
    trigger:
      set targeted block to argument</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Time_2">Time</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
time [(in|of) %worlds%]
%worlds%' time
加入的版本:
1.0
一个世界的时间
示例:
time in world is between 18:00 and 6:00:
      broadcast "It's night-time, watch out for monsters!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Tool">Tool</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(tool|held item|weapon)
%living entities%' (tool|held item|weapon)
加入的版本:
1.0
实体正在持有的工具,可以是怪物
示例:
player is holding a pickaxe
# is the same as
player's tool is a pickaxe</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Type_of">Type of</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
type of %entity types/item stacks%
%entity types/item stacks%' type
加入的版本:
1.4
方块物品实体的类型 物品只会有ID 实体只有类型 如 'wolf' or 'player'.
示例:
on rightclick on an entity:
      message "This is a %type of clicked entity%!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="UUID">UUID</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
UUID of %players/worlds%
%players/worlds%' UUID
加入的版本:
2.1.2
世界或玩家的UUID
示例:
# prevents people from joining the server if they use the name of a player
# who has played on this server at least once 加入的版本 this script has been added
on login:
      {uuids.%name of player%} exists:
                {uuids.%name of player%} is not UUID of player
                kick player due to "Someone with your name has played on this server before"
      else:
                set {uuids.%name of player%} to UUID of player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Vehicle_2">Vehicle</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
vehicle of %entities%
%entities%' vehicle
加入的版本:
2.0
载具
示例:
vehicle of the player is a minecart</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Version">Version</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(bukkit|minecraft|skript)( |-)version
加入的版本:
2.0
服务器 MC 插件的版本
示例:
message "This server is running Minecraft %minecraft version% on Bukkit %bukkit version%"
message "This server is powered by Skript %skript version%"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Weather_2">Weather</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
weather [(in|of) %worlds%]
%worlds%' weather
加入的版本:
1.0
当前世界的天气
示例:
set weather to clear
weather in "world" is rainy</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="World">World</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
world
%entity/location%' world
加入的版本:
1.0
事件发生的世界
示例:
world is "world_nether"
teleport the player to the world's spawn
set the weather in the player's world to rain</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Worlds">Worlds</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
[(the|all)] worlds
加入的版本:
1.0
服务器所有世界
示例:
loop all worlds:
      broadcast "You're in %loop-world%" to loop-world</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="X_of_Item">X of Item</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
%number% of %item stacks/entity type%
加入的版本:
1.2
定义物品的数量
示例:
give level of player of pickaxes to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Yaw_/_Pitch"></span><span class="mw-headline" id="Yaw_.2F_Pitch">Yaw / Pitch</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">模型:
(yaw|pitch) of %locations%
%locations%' (yaw|pitch)
加入的版本:
2.0
仰角 朝向
示例:
log "%player%: %location of player%, %player's yaw%, %player's pitch%" to "playerlocs.log"</pre><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="循环_3"></span><span class="mw-headline" id=".E5.BE.AA.E7.8E.AF_3">循环</span></h3><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">Loop循环会在满足条件的情况下反复执行效果,经典的Loop循环格式是这样的:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">loop <expression to loop>:
      <condition(s)>
      <effect(s)>
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">一个循环将会不断地检测表达式的所有元素,如 所有玩家 世界 物品等。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">Loop中的条件和效果会被这些元素使用。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">条件可以是 ‘loop-<元素>’, 如 send "hello" to loop-player.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">当一个循环中的一个条件不满足循环将开始循环的下一个元素。你可以使用stop来直接停止循环。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">简单的循环可以在包括表达式后被一个条件或效果替换。如给所有人火把可以替换循环检测所有玩家然后给予火把。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="可以循环的值"></span><span class="mw-headline" id=".E5.8F.AF.E4.BB.A5.E5.BE.AA.E7.8E.AF.E7.9A.84.E5.80.BC">可以循环的值</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">不止一个变量的表达式都可以参加循环。如 ‘all players’, ‘worlds’, 等。兼容所有的变量,也可以被循环使用。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你也可以使用表达式列表,如循环受害者和攻击者,然后使他们执行一些代码。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="变量列表"></span><span class="mw-headline" id=".E5.8F.98.E9.87.8F.E5.88.97.E8.A1.A8">变量列表</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">当循环变量列表时,也可以使用 loop-index ,这是循环 loop-value 的另一种方式。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">loop-value 是当前循环变量的值, loop-index 是变量最后部分的名字 (可以使用通配符*)。下面的示例将在列表变量中增加所有的值:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">loop {var::*}:
      set {var::%loop-index%} to loop-value + 1
</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="While循环"></span><span class="mw-headline" id="While.E5.BE.AA.E7.8E.AF">While循环</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">从2.0版本开始你就可以使用While循环,只要满足条件,将只保持重复的循环。While的循环格式是这样的:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">while <condition>:
      <code>
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">请注意这种类型的循环,如果条件满足将会一直执行。</p><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="命令"></span><span class="mw-headline" id=".E5.91.BD.E4.BB.A4">命令</span></h3><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">创建Skript自定义命令并不难,但是Skript不适合创建其他已有插件命令,请创造全新的指令。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">自定义指令基础语法如下</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /commandname <arguments>: # arguments are explained below
      description: A description of what this command does
      usage: How to use the command, e.g. /commandname <arguments># If omitted this defaults to something similar to how the command was defined above.
      permission: required.permission.to.use.this.command# If omitted this command can be used by everyone regardless of permissions.
      permission message: Message to send if the player doesn't have the required permission to use this command# If omitted this defaults to "You don't have the required permission to use this
command"
      executable by: players/console/players and console# If omitted this command can be executed by players and the console.
      aliases: /c, /comname. # a list of aliases of the command which are usually abbreviations of the command
      trigger:
                put conditions and effects here that will be checked/executed when the command is used.
解:
command /XXXXXX 参数[可选]:
    描述:
    如何使用:
    权限:
    没有权限是显示的信息:
    可以被XX执行:
    别名:
    触发器:
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">命令的参数是这样的<argtype> 或这样的 <argtype = 默认值>, <item> or <item=water bucket>。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">默认值也可以是一个表达式<i style="margin-right: 3px;"> in which case it has to be put into percent signs: <item=%tool%>.</i></p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">参数也可以用文字表示,如:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /give <items> to <player>:
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个指令的格式为 /give a diamond to Njol.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你可以将可选参数用[ ]扩起,如在某半径内寻找某种怪物类型——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /find <entity type> </pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这样的命令可以这样用 /find creepers or /find zombies in radius 20, where the radius will default to 100 if omitted.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这是一个简单的自定义指令的例子:</p><ol style="margin-top: 0.3em; margin-left: 3.2em; list-style-image: none; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);"><li style="margin-bottom: 0.1em;">获取手中物品的ID</li></ol><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /id <item=%tool%>:
      description: Find the ID of the item you're holding, or any given one.
      usage: /id
      executable by: players
      trigger:
                message "The ID of %arg 1% is %id of arg 1%"
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">自定义命令可以写在脚本的任何地方——命令不需要事件。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果一个命令与一些触发器有关,我建议把命令和触发器放到同一文件,否则就可以把它放到任何文件中。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你可以写一个包含所有指令的大脚本,或给每个指令单独的脚本。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">下面是生成一个可以用金粒换治疗的自定义命令:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /healer:
      permission: healer.create
      description: spawns a healer villager which can heal players
      trigger:
                spawn a priest
                set {healers::%spawned villager%} to true
                set the name of the spawned villager to "Healer"

on rightclick on a priest:
      player has permission "healer.use"
      player is holding a gold ingot
      {healers::%clicked villager%} is true
      player's health is below 10
      heal the player by 5 hearts
      remove 1 gold ingot from the player

</pre><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="类型"></span><span class="mw-headline" id=".E7.B1.BB.E5.9E.8B">类型</span></h3><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这里是Skript使用的类型.类型是一种物体,如玩家 数字 文本。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">许多类型如果作为命令参数时可以使用<type> 如<number>,并且几乎所有的类型都可以作为循环特殊值 loop-type 如 loop-block。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">类型名字列出了每个类型的名字。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">上面列出的用于每个类型的模式的参数描述了如何在脚本中定义类型的实例, 如 如何正确的包括文本 或 如何写一个数字。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">类型参数通常不包括表示类型实例的任何表达式,如方块不能在脚本中被定义,但你可以使用表达式去获取。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Biome_2">Biome</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
swampland, forest, taiga, desert, plains, hell, sky, ocean, river, extreme hills, frozen ocean, frozen river, ice plains, ice mountains, mushroom island, mushroom shore, beach, desert hills, forest hills, taiga hills, small mountains, jungle, jungle hills
类型名字:
biome
加入的版本:
1.4.4
构成世界的生物群系
示例:
biome at the player is desert</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Block_2">Block</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
不能在脚本中使用
类型名字:
block
加入的版本:
1.0
世界中的一个方块,经常包括位置 类型,同时也拥有一个朝向,内容物或其他配置。</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Boolean">Boolean</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
true/yes/on or false/no/off
类型名字:
boolean
加入的版本:
1.0
信标
示例:
set {config.%player%.use mod} to false</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Chunk_2">Chunk</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
不能在脚本中使用
类型名字:
chunk
加入的版本:
2.0
区块</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Colour">Colour</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
black, dark grey/dark gray, grey/light grey/gray/light gray/silver, white, blue/dark blue, cyan/aqua/dark cyan/dark aqua, light blue/light cyan/light aqua, green/dark green, light green/lime/lime green, yellow/light yellow, orange/gold/dark yellow, red/dark red, pink/light red, purple/dark purple, magenta/light purple, brown/indigo
类型名字:
color
加入的版本:
unknown
羊毛 染料和聊天颜色。
请注意,相同的颜色适用于聊天和羊毛,所以你可以使用任何颜色来彩色聊天,如 message "<%colour of sheep%>this colour"

但Minecraft中两者还是有些许的不同,最大的差异是聊天中没有棕色,所以这里有另一种蓝色代替 'brown' 和 'indigo' 是相同的颜色。
示例:
color of the sheep is red or black
set the colour of the block to green
message "You're holding a <%color of tool%>%color of tool%<reset> wool block"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Command_Sender_2">Command Sender</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
use the console for the console
see player for players.
类型名字:
][ ](sender|executor)
加入的版本:
1.0
玩家或控制台
示例:
on command /pm:
      command sender is not the console
      chance of 10%
      give coal to the player
      message "You got a piece of coal for sending that PM!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Damage_Cause_3">Damage Cause</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
contact, attack, projectile, suffocation, fall, fire, burning, melting, lava, drowning, block explosion, entity explosion, void, lightning, suicide, starvation, poison, potion, wither, falling block, thorns, unknown
类型名字:
damage cause
加入的版本:
2.0
伤害的来源
请注意有时这些不是很准确,如 岩浆 火焰 燃烧, 同时弹射物和攻击也要考虑不同类型</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Date">Date</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
不能在脚本中使用
类型名字:
date
加入的版本:
1.4
真实世界的时间
示例:
set {_yesterday} to now
subtract a day from {_yesterday}
# now {_yesterday} represents the date 24 hours before now</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Direction_2">Direction</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">类型参数:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">see direction (expression)
类型名字:
direction
加入的版本:
2.0
一个方向,如 north, east, behind, 5 south east, 1.3 meters to the right, etc.
一些方块同样有方向,然并没有文本
请注意有些方向在更新时被更改,请最好不要使用为指令参数
示例:
set the block below the victim to a chest
loop blocks from the block infront of the player to the block 10 below the player:
      set the block behind the loop-block to water</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Enchantment">Enchantment</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
protection, respiration, punch, projectile protection, smite, fortune, infinity, feather falling, flame, knockback, sharpness, aqua affinity, looting, fire aspect, silk touch, blast protection, power, thorns, efficiency, fire protection, bane of arthropods, unbreaking, luck of the sea, lure
类型名字:
enchantment
加入的版本:
1.4.6
附魔类型</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Enchantment_Type">Enchantment Type</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
<enchantment> [<level>]
类型名字:
enchant(ing|ment) type
加入的版本:
1.4.6
附魔类型+等级 如 'sharpness 2' or 'fortune'.
示例:
enchant the player's tool with sharpness 5
helmet is enchanted with waterbreathing</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Entity">Entity</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
player, op, wolf, tamed ocelot, powered creeper, zombie, unsaddled pig, fireball, arrow, dropped item, item frame, etc.
类型名字:
entit(y|ies)
加入的版本:
1.0
实体
示例:
entity is a zombie or creeper
player is an op
projectile is an arrow
shoot a fireball from the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Entity_Type">Entity Type</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
请等待作者更新,这里是空的
类型名字:
entity[ ]type
加入的版本:
1.3
实体的类型
示例:
victim is a cow
spawn a creeper
targeted entity is an enderman holding a rose
spawn 10 red, green or blue sheep
spawn a falling anvil 4 meters above the player
kill all skeleton horses in all worlds</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Entity_Type_with_Amount">Entity Type with Amount</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
<number> <entity type>
类型名字:
cannot be used directly
加入的版本:
1.3
算上数量的实体类型, 如 '2 zombies'.未来将被移除
示例:
spawn 5 creepers behind the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Experience_2">Experience</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
[<number>] (xp|experience)
类型名字:
cannot be used directly
加入的版本:
2.0
经验点数
示例:
give 10 xp to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Game_Mode_2">Game Mode</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
creative/survival/adventure
类型名字:
game[ ]mode
加入的版本:
1.0
游戏模式
示例:
player's gamemode is survival
set the player argument's game mode to creative</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Inventory_2">Inventory</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
不能在脚本中使用
类型名字:
inventor(y|ies)
加入的版本:
1.0
物品栏.</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Inventory_Slot">Inventory Slot</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
不能在脚本中使用
类型名字:
slot
加入的版本:
unknown
物品栏的槽位。值得注意的是装备槽和熔炉槽。
区分一个槽位最正确且重要的方式是看它能否被切换的能力。
如,它能否被设置,删除,附魔等。
(一些表达式也能如此改变,如变量储存的物品。对于变量,只有当变量被设置时,它们所表示的项目才是它们所代表的项目).
请注意,工具也占一个槽位,但它实际上可以改变它的位置,即它可以表示不同的槽位。
示例:
set tool of player to dirt
delete helmet of the victim
set the colour of the player's tool to green
enchant the player's chestplate with projectile protection 5</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="Item_/_Material"></span><span class="mw-headline" id="Item_.2F_Material">Item / Material</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
[<number> ] <alias> ,<alias> 必须是表示一个项目的别名 (不能像后面的常规名 'sword' / 'plant')
类型名字:
item
material
加入的版本:
1.0
一个物品。 不同于项目类型的一个项目只能代表一个项目 (如 an upside-down cobblestone stair facing west), 一个项目类型可以代表一个项目的整个范围(如 any cobble stone stairs regardless of direction).
除了当你想做一个只接受一个确切项目的指令时,你通常不需要这种类型。
请注意当前的material是精确的物品,不能有数量/附魔
示例:
set {_item} to type of the targeted block
{_item} is a torch</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Item_Type">Item Type</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
[<number> ] <alias> [,/and <more enchantments...>]]
类型名字:
item[ ]type
items
materials
加入的版本:
1.0
同上,但可以有附魔和数量
示例:
give 4 torches to the player
add all slabs to the inventory of the block
player's tool is a diamond sword of sharpness
remove a pickaxes of fortune 4 from {stored items::*}
set {_item} to 10 of every upside-down stair
block is dirt or farmland</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Living_Entity">Living Entity</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
见实体类型
类型名字:
living[ ]entit(y|ies)
加入的版本:
1.0
一个存活的实体
示例:
spawn 5 powered creepers
shoot a zombie from the creeper</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Location_2">Location</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
See location at (expression)
类型名字:
location
加入的版本:
1.0
世界的一个位置,当你传送时你会保持原来的仰角和方向,你可以手动设置。</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Money_2">Money</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
<number> $ or $ <number>, where '$' is your server's currency, e.g. '10 rupees' or '£5.00'
类型名字:
cannot be used directly
加入的版本:
2.0
当前玩家的金钱数。这个需要Vault和一个经济插件的安装。
示例:
add 10£ to the player's account
remove Fr. 9.95 from the player's money
set the victim's money to 0
increase the attacker's balance by the level of the victim * 100</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Number">Number</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
[-]###[.###] (any amount of digits; very large numbers will be truncated though)
类型名字:
num
加入的版本:
1.0
一个数字,如 2.5, 3, or -9812454.
请注意一些表达式只需要整数,否则会在不产生错误的情况下丢弃小数部分。
示例:
set the player's health to 5.5
set {_temp} to 2*{_temp} - 2.5</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Object">Object</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
不能在脚本中使用
类型名字:
cannot be used directly
加入的版本:
1.0
''The supertype of all types, meaning that if %object% is used in e.g. a condition it will accept all kinds of expressions.''</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Offlineplayer">Offlineplayer</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
不能在脚本中使用
类型名字:
offline[ ]player
加入的版本:
unknown
下线的玩家。用来查看更多信息,如果玩家没有在线的话,效果和条件不会工作。</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Player">Player</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
不能在脚本中使用
类型名字:
player
加入的版本:
1.0
一个玩家,一些事件取决于玩家是否在线。如果你使用仅在线玩家能使用的效果的话会报错,如打开不在线玩家的背包。
使用命令参数时,你可以使用 <player> 和 <offline player>.
第一个需要玩家在线,并且你可以输入他们名字的一部分。第二个不要求玩家在线,但你必须精确地输入名字。</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Potion_Effect_Type">Potion Effect Type</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
speed, slowness, haste, mining fatigue, strength, instant health, instant damage, jump boost, nausea, regeneration, resistance, fire resistance, water breathing, invisibility, blindness, night vision, hunger, weakness, poison, wither
类型名字:
potion[[ ]effect][[ ]type]
加入的版本:
unknown
一个药水效果,如 'strength' 和 'swiftness'.
示例:
apply swiftness 5 to the player
apply potion of speed 2 to the player for 60 seconds
remove invisibility from the victim</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Projectile">Projectile</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
arrow, fireball, snowball, thrown potion, etc.
类型名字:
projectile
加入的版本:
1.0
一个弹射物
示例:
projectile is a snowball
shoot an arrow at speed 5 from the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Region_2">Region</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
"region name"
类型名字:
cannot be used directly
加入的版本:
2.1
一个区域插件的区域. Skript 目前支持 WorldGuard, Factions, GriefPrevention and PreciousStones.
请注意一些区域插件不会给区域命名,一些只使用ID,另外一些区域在不同世界可以有相同的名字。这样就不会工作了。</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Text">Text</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
simple: "..."
quotes: "...""..."
expressions: "...%expression%..."
percent signs: "...%%..."
类型名字:
(text|string)
加入的版本:
1.0
它就是一个简单的文本,其中如果包含表达式会被表达式内容代替(如 %player% 会被替换成玩家名字).
因为脚本也是文本,你必须把文本放到双引号中。
请阅读文本来获得更多信息
示例:
broadcast "Hello World!"
message "Hello %player%"
message "The id of ""%type of tool%"" is %id of tool%."</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Time_3">Time</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
##:##
##[:##][ ]am/pm
类型名字:
time
加入的版本:
1.0
Minecraft的时间(如 0:00 to 23:59), 可以是任何世界
更多查看Date和Timespan
示例:
at 20:00:
      time is 8 pm
      broadcast "It's %time%"
====Timeperiod====
<pre>类型参数:
##:## - ##:##
dusk/day/dawn/night
类型名字:
time[ ]period
duration
加入的版本:
1.0
时间在两者中间。 它很有用,因为你可以用这个来测试在一个特定的世界是否是白天,黑夜,黄昏或黎明。
这个类型在未来会被移除因为你可以使用 'time of world is between x and y' 作为代替.</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">示例:</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">time in world is night</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Timespan">Timespan</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
<number> ticks/seconds/minutes/hours/days [[,/and] <more...>]
[###:]##:##[.####] (minutes:seconds[.milliseconds])
类型名字:
time[ ]span
加入的版本:
1.0
两个时间之间的差异,如 '10 minutes'. Timespans 经常被现实时间使用, 但也可以用在MC时间中,如 '5 minecraft days and 12 hours'.
See date and time for the other time types of Skript.
示例:
every 5 minecraft days:
      wait a minecraft second and 5 ticks
every 10 mc days and 12 hours:
      halt for 12.7 irl minutes, 12 hours and 120.5 seconds</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Tree_Type">Tree Type</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
<general tree/mushroom type>, e.g. tree/any jungle tree/etc.
<specific tree/mushroom species>, e.g. red mushroom/small jungle tree/big regular tree/etc.
类型名字:
tree[ ]type
tree
加入的版本:
unknown
树的类型,可以用在生成树中
示例:
grow any regular tree at the block
grow a huge red mushroom above the block</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Type">Type</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
See the type name patterns of all types - including this one
类型名字:
type
加入的版本:
2.0
详见本节
经常被用在表达式中,如 'event-<type>', '<type>-argument', 'loop-<type>', etc., e.g. event-world, number-argument and loop-player.
示例:
{variable} is a number # check whether the variable contains a number, e.g. -1 or 5.5
{variable} is a type # check whether the variable contains a type, e.g. number or player
{variable} is an object # will always succeed if the variable is set as everything is an object, even types.
disable PvP in the event-world
kill the loop-entity</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Visual_Effect">Visual Effect</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
ender signal, mobspawner flames, potion break, smoke, hurt, sheep eating, wolf hearts, wolf shaking, wolf smoke
类型名字:
(visual|particle) effect
加入的版本:
2.1
可见效果,如粒子
示例:
show wolf hearts on the clicked wolf
play mob spawner flames at the targeted block to the player</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="Weather_Type">Weather Type</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
clear/sun/sunny, rain/rainy/raining, and thunder/thundering/thunderstorm
类型名字:
weather[ ]type
weather condition
weather
加入的版本:
1.0
天气类型
示例:
is raining
is sunny in the player's world
message "It is %weather in the argument's world% in %world of the argument%"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span class="mw-headline" id="World_2">World</span></h4><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">类型参数:
"world_name", e.g. "world"
类型名字:
world
加入的版本:
1.0
服务器的一个世界。世界需要放在双引号中,如 "world_nether", 但这可能不会工作因为文本也用双引号.
示例:
broadcast "Hello!" to "world_nether"</pre><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="文本"></span><span class="mw-headline" id=".E6.96.87.E6.9C.AC">文本</span></h3><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="基础文本"></span><span class="mw-headline" id=".E5.9F.BA.E7.A1.80.E6.96.87.E6.9C.AC">基础文本</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在脚本中使用文本非常的简单。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如,想要给玩家发送‘Hello!’你可以使用</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"> send "Hello!" to pl ayer</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你必须在文本旁用双引号</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">" "</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">括起来使用文本。如果要在文本中使用双引号的话,变成这样</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">"" ""
"What's this ""thing"" you're talking about?"
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你想在文本中使用玩家名称的话,使用%player%来代替。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如 send "Hello %player%!" to player 会给作者发送 ‘Hello Njol!’ 。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">类似的表达式都可以工作,如 message "The block above the block you're looking at is a %block above targeted block%".</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果你想要使用百分号的话,双写——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"> "100%%!"</pre><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="颜色与格式"></span><span class="mw-headline" id=".E9.A2.9C.E8.89.B2.E4.B8.8E.E6.A0.BC.E5.BC.8F">颜色与格式</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">颜色和格式在消息中可以有两个方式存在。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">一是普通的 ‘&x’/‘§x’ 颜色代码</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">二是使用Skript的 <colour> 代码,如</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">broadcast "<red><bold>Important Information:<reset> <blue><u>This server needs more mods!"</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你也可以在文本中使用玩家物品的颜色,如</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"> "<%colour of tool%>this text is coloured depending on the player's held item!"</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">简单的颜色和格式如——</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">可用的颜色和格式
: black, dark grey/dark gray, grey/light grey/gray/light gray/silver, white, blue/dark blue, cyan/aqua/dark cyan/dark aqua, light blue/light cyan/light aqua, green/dark green, light green/lime/lime green, yellow/light yellow, orange/gold/dark yellow, red/dark red, pink/light red, purple/dark purple, magenta/light purple, brown/indigo
chat styles: bold/b, italics/italic/i, strikethrough/strike/s, underlined/underline/u, magic, reset/r</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">其他语言也许可以使用其他颜色,但可用的极少。如,使用颜色方面的表达式[对颜色指令很有用],脚本经常使用英文的颜色代码。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="高级语法_2"></span><span class="mw-headline" id=".E9.AB.98.E7.BA.A7.E8.AF.AD.E6.B3.95_2">高级语法</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">Skript 2.0版本及以上可以比只把他们放到文本中更高级的使用名词——</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">"a %expression" 或 "an %expression"将把适合的文字放入表达式,如 “a fish”, “an apple”, 或 “a pickaxe and an emerald”.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这类似的,将允许使用 the("the %expression%"), 即使这在英语中几乎不明显, 只有一些名词,如“空气”将在这种情况下的文章下完全删除。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">请注意其他语言你需要使用那个语言的文章,如德语 "der %expression" or "ein %expression%" <sup id="cite_ref-10" class="reference" style="line-height: 1; unicode-bidi: isolate; text-wrap: nowrap; background-color: rgb(234, 243, 255);"><a href="https://mineplugin.org/Skript#cite_note-10" style="text-decoration-line: none; color: rgb(6, 69, 173); background: none;"></a></sup></p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">"%expression%s" 兼容 "<数字> %expression%" (数字比1大) 将会使后面的表达式使用复数 。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如 "2 %block%" 会表现出 “2 logs” (数字也可以在另一个表达式使用,如 "%number-argument% %item-argument%" 会出现 “5 pickaxes” 或 “1 pickaxe”).</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这个语法会在任何语言使用。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="变量名"></span><span class="mw-headline" id=".E5.8F.98.E9.87.8F.E5.90.8D">变量名</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">变量名与文本十分相似,不过你需要用{ }括起。</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"> {变量}</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">表达式不适用高级语法。</p><h3 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; font-size: 1.2em; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="变量_2"></span><span class="mw-headline" id=".E5.8F.98.E9.87.8F_2">变量</span></h3><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">变量是Skript储存数据的方式,所有的变量都有一个名字,一个值。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">你可以把变量放在任何地方去替换一些东西,如用变量的位置来替换一个位置。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这可以用简单的家指令:做一个变量'home',然后再输入指令时传送到这个位置。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如要使用变量,把它的名字放到{ }内,像这样: {变量名}. 变量的名字经常包含表达式,如要为所有玩家每人一个家,变量名应使用 {home.%player%} 。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">当变量载入时 %player% 将会被替换成玩家名字。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">所有的变量都在‘variables.csv’ 中储存,它可在插件的目录里找到。请不要自行修改文件。如果你做错了一些东西一些变量会永久失效。 变量只是会时常写入这里,所以服务器崩溃也许会是你丢失一些变量。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">从 2.0 版本开始将可以允许你使用数据库,这样你就可以共享变量。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">有3种类型的变量: 普通变量,本地变量和选项变量。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">普通变量是独一无二的,在插件中只能有一个普通变量叫这个名字,它们在服务器重启时会被保存。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">本地变量的格式是{_名字}这样的,允许不同脚本有相同名字的本地比那里,如下面的触发器:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">on join:
set {_player} to player
wait a minute
message "%{_player}%" # the local variable is unchanged no matter how many players joined in the meantime
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">如果是普通变量的话会把全局的player都展示出来</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">本地变量在没有它们的用处的时候会被自动删除,并不会使用存储器,但当服务器重启或脚本重载时本地变量会丢失。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">选项变量的格式是这样的:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">options:
option name = option value
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">在调用选项变量的时候你可以使用 {@option name}. 这将会在触发器运行之前把变量内容完全替换为你设置的变量值。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">所以你可以把任何东西放到选项变量中,甚至是脚本。 不要在选项变量中使用百分号,会保留。</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="变量的列出"></span><span class="mw-headline" id=".E5.8F.98.E9.87.8F.E7.9A.84.E5.88.97.E5.87.BA">变量的列出</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">列出变量的变量是这样的</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"> {variable name::*} </pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">并且可以添加元素并使用默认的添加和移除效果移除元素,当被删除时会删除所有在列表上的值。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">您可以使用{variable name::index}访问变量列表的特定值:其中index是那个特定值。特定值可以是任何东西,如一个玩家的名字,数字,但当为列表增加变量时,新的特定值会变成一个数字。</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">变量列表可以这样被循环</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"> {list variable::*}</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">其中循环值可以使用 loop-value 特定值可以使用 loop-index.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">列出变量对于在消息中展示一些列表很有用,如一些在线的管理员,首先把他们列到同一变量,然后使用列出变量。(见下方的例子).</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">最好是使用本地变量列表{_local list variable::*}</p><h4 style="color: rgb(0, 0, 0); background: none rgb(255, 255, 255); margin-top: 0.3em; overflow: hidden; padding-top: 0.5em; border-bottom: 0px; line-height: 1.6; font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif;"><span id="好吃的栗子"></span><span class="mw-headline" id=".E5.A5.BD.E5.90.83.E7.9A.84.E6.A0.97.E5.AD.90">好吃的栗子</span></h4><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">这里是一些栗子</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">检查一共有多少人登入进你的服务器过:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;"># if you add a 'variables:' section to your script, the variables defined there will be set to the given value if they don't exist
# when the script is loaded. You cannot change an existing variable's value this way however, in particular if you
# change the variables' values here the actual variables will not be changed at all.
variables:
      {logincount} = 0

on login:
      add 1 to {logincount}

command /logincount:
      description: Find out how many people have ever logged into this server
      trigger:
                message "Since its beginnings <green>%{logincount}%<reset> people have logged into this server"
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">简单的home脚本:</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">command /sethome:
      permission: skript.home
      description: Set your home
      trigger:
                set {home.%player%} to location of player
                message "Set your home to <grey>%location of player%<reset>"

command /home:
      permission: skript.home
      description: Teleport yourself to your home
      trigger:
                if {home.%player%} is not set:
                        message "You have not set your home yet!"
                        stop trigger
                teleport player to {home.%player%}
</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">显示在线管理员的脚本</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">:
command /staff:
      description: Shows online staff
      trigger:
                loop all players:
                        loop-player has permission "is.staff"
                        add loop-player to {_online staff::*}

                size of {_online staff::*} is 0:
                        message "No staff currently online! Happy griefing ;)!"
                else:
                        message "Online staff: %{_online staff::*}%"

</pre><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit; color: rgb(34, 34, 34); font-family: Arial, Tahoma, &quot;Microsoft YaHei&quot;, 微软雅黑, &quot;Hiragino Sans GB&quot;, &quot;Microsoft JhengHei&quot;, 微軟正黑體, sans-serif; background-color: rgb(255, 255, 255);">可以Shift右键发射火焰弹的脚本(可以通过设置options来编辑冷却时间,使用后的虚弱时间) (注意:虚弱时间可以被叠加,即使用2或以上次火焰弹会将虚弱时间叠加到5秒以上) 作者:0ojixueseno0</p><pre style="font-family: monospace, monospace; color: rgb(0, 0, 0); background-color: rgb(248, 249, 250); border: 1px solid rgb(234, 236, 240); padding: 1em; text-wrap: wrap; line-height: 1.3em;">options:
      #冷却时间
      cooldown: 3 seconds
      #虚弱时间
      debufftimes: 5 seconds
on right click with a fire charge:
      if player is sneaking:
                set {_cooldown} to difference between {cd.%player%.fireball} and now
                if {_cooldown} is less than {@cooldown}:
                        send action bar "&c&l火焰弹冷却中" to player
                        stop
                else:
                        remove a fire charge from player's inventory
                        shoot a fireball from the player with speed 0.001
                        apply weakness of tier 2 to the player for {@debufftimes}
                        set {cd.%player%.fireball} to now
      else:
                stop
on load:
      send " &b丢出火焰弹 &a已加载" to console
on unload:
      send " &b丢出火焰弹 &c已卸载" to console</pre>
页: [1]
查看完整版本: 【转载】【多版本】Skript脚本插件