本页面借助 AI 从英文翻译而来。改进此翻译或阅读英文原文。
命令
清除 SCore 中的内容
- 此命令可以清除 SCore 中大部分正在进行的内容
- 你可以清除:
- ACTIONBARS
- COOLDOWNS
- DELAYED_COMMANDS(延迟执行的 SCore 命令)
- WHILE
- BOSSBARS
- PARTICLES
- ALL
- 命令:/score clear {player} {WHAT_YOU_WANT_TO_CLEAR}
清除冷却
- 用于清除特定冷却的命令(针对特定玩家 / 实体)
- 命令:/score cooldowns clear {cooldown_id} [UUID]
{cooldown_id}:示例 -> EI:myitem:myactivator[UUID]:(可选)玩家 / 实体的 UUID
检查循环,对调试很有用
- 命令:/score inspect-loop
重载 SCore 的变量、投射物和硬度配置
- 命令:/score reload
Discord webhook
通过 webhook 向 Discord 发送消息
- /score webhook {url} {debug} [allowed_mentions] {message...}
{url}:webhook 的 url{debug}:是否在执行 webhook 消息时通知执行者[allowed_mentions]:可以是 users:id[,id,...] 或 roles:id[,id,...],也可以留空{message...}:目标 webhook 将要发送的消息
粒子命令
变量命令
手动运行 SCore 命令
玩家命令
-
信息:此命令允许在 Ssomar Plugins 内部和外部对特定玩家运行 SCore 的自定义命令。
-
使用此命令时,整行命令都会经过 PlaceholdersAPI 解析,因此你可以在其中添加占位符。
-
命令:/score run-player-command player:{player} {command}
player:目标玩家的名称command:将应用于 {player} 的 SCore 玩家命令
-
示例:
- /score run-player-command player:SsomarPluginsPlayer SENDMESSAGE &eHello
- /score run-player-command player:SsomarPluginsPlayer SENDMESSAGE &eHello player:Ssomar +++ DELAY 10 +++ SWING_MAIN_HAND
- /score run-player-command player:SsomarPluginsPlayer SENDMESSAGE &eHello my name is %player% and my life is %player_health%
方块命令
-
信息:此命令允许在 Ssomar Plugins 内部和外部对特定方块运行 SCore 的自定义命令。
-
命令:/score run-block-command [player:{player}] block:{world},{x},{y},{z} {command}
-
player:与此激活器相关的玩家-
它是可选的,因为有些命令需要它,例如
MOB_AROUND:由谁造成伤害?该命令会对周围的生物造成伤害,但伤害会被计为由 \{player\} 造成,因此会检查该玩家是否确实可以伤害这个生物,伤害和击杀都会计入该玩家,等等。 VEIN_BREAKER:由谁破坏了方块?该命令会以矿脉形状破坏方块,但这些方块会被计为由 \{player\} 破坏,因此会检查该玩家是否确实可以破坏该方块,破坏的方块会计入该玩家,等等。
-
-
blockworld:方块所在的世界x:方块的 X 坐标y:方块的 Y 坐标z:方块的 Z 坐标
-
command:将对该方块运行的方块命令,如果存在玩家,则由该玩家执行。- 命令中的方块占位符(
%block%、%block_lower%、%block_x%……)均指此方块的对应值。
- 命令中的方块占位符(
-
-
示例:
- /score run-block-command block:world,-23,-61,27 BREAK
- /score run-block-command player:SsomarPluginsPlayer block:world,-23,-61,27 MINEINCUBE 1 false
实体命令
-
信息:此命令允许在 Ssomar Plugins 内部和外部对特定实体运行 SCore 的自定义命令
-
命令:/score run-entity-command [player:{player}] entity:{entityUUID} {command}
player:(可选)相关玩家的名称或 UUID:之后可以在命令中使用玩家占位符(%player%、%player_health%……),例如在IF中。entityUUID:目标实体的 UUIDcommand:将对该实体运行的实体命令。
-
示例:
- /score run-entity-command entity:c4d5338b-6f8e-4b97-9f18-9dbc47f60131 JUMP 1
- /score run-entity-command entity:%entity_uuid% JUMP 1
- /score run-entity-command player entity:%entity_uuid% IF %player_health%>10 SET_ENTITY_NAME name:&cTamed
物品命令
-
信息:此命令允许在 Ssomar Plugins 内部和外部,对玩家背包中的某个物品运行自定义物品命令。
-
命令:/score run-item-command player:{player} slot:{slot} {command}
player:拥有该物品的玩家的名称或 UUIDslot:物品在玩家背包中的槽位:0到8为快捷栏,9到35为背包其余部分,36到39为盔甲(靴子到头盔),40为副手command:将对该物品运行的物品命令。其中可以使用玩家占位符。- 当玩家离线或槽位为空时,不会发生任何事情。
-
示例:
- /score run-item-command player slot SET_ITEM_NAME name:&6Excalibur
- /score run-item-command player slot IF %player_health%>=20 ADD_ITEM_ENCHANTMENT enchantment level
立即试用
复制到 ExecutableItems 中并重载
来自 SCore 自定义命令参考。将其粘贴到配置中,运行插件的重载命令,你就有了一个可以直接编辑的可用起点。
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
playerCommands:
- ABSORPTION amount:5 time:200 # Gives the player absorption
activator1: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of target
targetCommands:
- ABSORPTION amount:5 time:200 # Gives the target absorption本页使用的插件
ExecutableItems带有能力、激活器和命令的自定义物品,无需写代码。
- 5.0/5,共 10 条评价
- 当前有 3.1K 个服务器正在运行(bStats)
- 在 SPlugins 上已有 103 次下载
€19.99
一次性付款,终身更新