💪 动作
最后更新于
broadcast_action:
type: broadcast
value:
- '<#D4F2E7>◤─────────────────────────◥'
- ''
- ' <gray>[<#87CEFA>🎣<gray>] <gradient:#F0F8FF:#87CEFA:#F0F8FF>钓鱼比赛'
- ''
- ' <#E1FFFF>目标:'
- ' <#B0C4DE>尽可能多地捕捉鱼'
- ' <#B0C4DE>开始钓鱼以参加比赛!'
- ''
- '<#D4F2E7>◣─────────────────────────◢'command_action:
type: command
value:
- 'money give {player} 200'command_action:
type: player-command
value:
- 'say hello'command_action:
type: random-command
value:
- 'money give {player} 200'
- 'money give {player} 100'
- 'money give {player} 50'close_action:
type: close-invactionbar_action:
type: actionbar
value: '您好'actionbar_action:
type: random-actionbar
value:
- 'Hi'
- '你好'
- 'Hola'mending_action:
type: mending
value: 1exp_action:
type: exp
value: 1chain_action:
type: chain
value:
action_1: ...
action_2: ...
chance: 0.5delay_action:
type: delay
value:
delay: 20
async: false
actions:
action_1: ...
action_2: ...timer_action:
type: timer
value:
delay: 3
async: false
duration: 20
period: 2
actions:
action_1: ...
action_2: ...title_action:
type: title
value:
title: '<green>GG!</green>'
subtitle: '您捕捉到了一条 {nick}'
fade-in: 20
stay: 30
fade-out: 10title_action:
type: random-title
value:
titles:
- '<green>GG!</green>'
- '<green>干得好!</green>'
subtitles:
- '您捕捉到了一个 {loot}'
- '哇!好的捕获!'
- '哦,{loot},我们来了!'
- '让我们看看是什么!'
fade-in: 20
stay: 30
fade-out: 10sound_action:
type: sound
value:
key: 'minecraft:block.amethyst_block.place'
source: 'player'
volume: 1
pitch: 1potion_action:
type: potion-effect
value:
type: 'blindness'
duration: 20
amplifier: 0plugin_exp_action:
type: plugin-exp
value:
plugin: mcMMO
exp: 20
target: FISHINGconditional_action:
type: conditional
value:
conditions:
...
actions:
...priority_action:
type: priority
value:
priority_1:
conditions:
...
actions:
...
priority_2:
conditions:
...
actions:
...
others:
actions:
... fake_item_action:
type: fake-item
value:
duration: 25 <- ticks
position: other <- other/player
item: water_effect
use-item-display: true # 是否使用文本展示实体(1.19.4+)
y: 0 <- y 偏移
x: 0 <- x 偏移
z: 0 <- z 偏移
yaw: 0
opposite-yaw: true
range: 0 # 如果 range = 0,只有一个玩家能看到全息图hologram_action:
type: hologram
value:
duration: 20 <- ticks
text: '{player} 捕捉到了一个 {loot}!'
position: player <- other/player
use-text-display: true # 是否使用文本展示实体(1.19.4+)
rgba: 0,0,0,0
range: 16 # 如果 range = 0,只有一个玩家能看到全息图
y: 2 <- y 偏移
x: 0 <- x 偏移
z: 0 <- z 偏移 finder_action:
type: fish-finder
value:
surrounding: water # water / lava/ void
ignore-gears: truemessage_action:
type: message-nearby
value:
message:
- '您好 {near}。此消息由 {player} 发送'
range: 32command_action:
type: command-nearby
value:
command:
- 'give {near} apple'
range: 32actionbar_action:
type: actionbar-nearby
value:
actionbar: '这是一个动作栏'
range: 32title_action:
type: title-nearby
value:
title: '<green>标题</green>'
subtitle: '副标题'
fade-in: 20
stay: 30
fade-out: 10
range: 32https://zh.minecraft.wiki/w/饥饿
food_action:
type: food
value: 2https://zh.minecraft.wiki/w/饥饿
saturation_action:
type: saturation
value: 1.5item_amount_action:
type: item-amount
value:
# main / off
hand: main
amount: -1durability_action:
type: durability
value:
# hand / offhand / feet / head / chest /legs
slot: hand
amount: -1item_action:
type: give-item
value:
item: CustomFishing:rod:star_rod
amount: 1
to-inventory: false # 是掉落该物品还是直接放入背包money_action:
type: give-money
value: 100.12money_action:
type: take-money
value: 50.54money_action:
type: level
value: -10argument_action:
type: context-arg
value:
test: custom
another: anotherdrop_random_loots_action:
type: drop-random-loots
value:
amount: 10
extra-attempts: 5 # 如果战利品不是物品,插件应该尝试多少次?
to-inventory: false