欢迎来到Minecraft插件百科!
对百科编辑一脸懵逼?
帮助:快速入门
带您快速熟悉百科编辑!
因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
查看“Magic/Skript”的源代码
←
Magic/Skript
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
自动确认用户
、
巡查者
您可以查看和复制此页面的源代码。
[https://github.com/bensku/Skript Skript] is a plugin that provides natural language scripting for Bukkit servers. Magic provides events and effects that can be used in Skripts. == Cast Event == The cast event is triggered when a player or mob casts a spell. You may use the "caster" expression to get the caster entity and the "targets" expression for any targets hit by the spell. Examples: <pre class="">on cast: send "You cast a spell" to caster damage targets by 20 hearts on cast spell "missile": send "You throw a Magic Missile" to caster # The casting event triggers before a spell is cast, versus when it finishes on casting spell "missile": send "You ready Magic Missile" to caster </pre> == Cast Effect == The cast effect can be used to force a player to cast a spell, or to cast a spell via the console. Examples: <pre class="">on place of sand: make player cast the spell "rubberize" # Use some parameters on step on glass: make player cast the spell "fling" with "pdy 1 pdx 0 pdz 0 min_speed 5 max_speed 5" on death: cast "day"</pre> == Spawn Effect == You can spawn magic mobs similar to vanilla mobs, just enclose the mob key in quotes. The "last spawned entity" expression will not work, however. <pre class="">on step on stone: player knows spell "kill" spawn a "mutant" 5 meters in front of the player</pre> == Conditionals == You may use conditionals to check if a player has a specific class, path, wand, item or spell: <pre class="">on step on glass: # Check for specific class player is class "airbender" player is holding wand "airbending" make player cast the spell "fling" with "pdy 1 pdx 0 pdz 0 min_speed 5 max_speed 5" on right click: # Check for magic items in hand or armor slots player has "emerald_sword" in offhand player is wearing "magneticleggings" on right click: # Check for specific path, and that the player has a spell player is on path "master" player knows spell "missile" on right click: # Check for having finished specific path, and that the player has a spell player has finished path "master" player knows spell "kill"</pre>
返回
Magic/Skript
。
导航菜单
个人工具
登录
命名空间
页面
讨论
大陆简体
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
编辑相关
百科公告
编辑帮助
互助客栈
贡献分数
测试沙盒
发布条目
插件分类
管理
安全
聊天
编程
经济
修正
娱乐
综合
信息
机械
角色
传送
网页
整地
创世
付费
其它
工具
链入页面
相关更改
特殊页面
页面信息
相关网站
MCMOD百科
Minecraft中文百科
Minecraft纪念论坛
Minecraft百度贴吧
虚无世界Wiki