动作(Actions)

这一节是执行的动作

动作
描述
例子

console_command

从控制台执行命令

console_command: eco give %player% 5000

player_command

从玩家执行命令

player_command: warp survival

player_command_as_op

以OP权限为玩家执行命令

player_command_as_op: help

teleport

传送玩家,请使用以下格式: "teleport: 世界;x;y;z;yaw;pitch"

teleport: lobby;0;60;0;90;0

give_potion_effect

给玩家一个药水效果,请使用以下格式: "give_potion_effect: 效果;持续刻数;等级" 你可以在这找到所有效果: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html

give_potion_effect: BLINDNESS;180;1

remove_potion_effect

移除一种药水效果

remove_potion_effect: BLINDNESS

playsound

为玩家播放一种声音. 请使用以下格式: "playsound: 声音;音量;音高" 你可以在这找到所有声音: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html 1.8的: https://helpch.at/docs/1.8.8/index.html?org/bukkit/Sound.html

playsound: BLOCK_NOTE_BLOCK_PLING;10;0.1

playsound_resource_pack

播放材质包音效

playsound_resource_pack:

my_custom_sound;10;1

title

发送一段标题. 请使用以下格式: "title: 淡入时间;停留时间;淡出时间;标题;副标题" 时间按刻计算, 20刻 = 1秒 如果不想要标题或者副标题用none替代

title: 20;40;20;&6This is a title;none

firework

在玩家所处方位放一个烟花,格式看底下

firework: colors:YELLOW,RED type:BALL fade:AQUA power:0

remove_item

移除玩家背包里X个物品. 你可以在下一节查看格式.

remove_item: DIAMOND;10

移除物品(Remove Item)

格式:remove_item: <种类>;<数量>;datavalue: <数据值>;name: <名称>;lorecontains: <包含的描述>

数据值,名称,包含的描述都为可选项,不要使用颜色代码

# 这将移除五个钻石
remove_item: DIAMOND;5

你也可以用PlceholderAPI中的checkitem来删除物品,请用下方格式:

remove_item: %checkitem_remove_,,<...>%

详情请见https://www.mcbbs.net/thread-1226244-1-1.html

烟花(Firework)

格式:

firework: colors:<颜色1>,<颜色2> type:<种类> fade:<颜色1>,<颜色2> power:<能量>

fade(渐变)选项是可选的,但是其他的必须要填,你可以加2种以上的颜色

Last updated

Was this helpful?