事件动作
播放音效
play_sound:
name: itemsadder:ambient.creepy
volume: 1
pitch: 1停止播放音效
stop_sound:
name: "itemsadder:music_disc.cdk_sunday"执行命令
execute_commands:
first_example:
command: 'tellraw {player} {"text":"wow you did something!","color":"gold"}'
as_console: true
second:
command: 'help'
as_console: false
third:
command: 'give {player} diamond'
as_console: true 其中:
command:具体执行的命令。
as_console:是否以控制台身份执行。
粒子效果
粒子效果的id可以在 Minecraft Wiki 查看。
发射状粒子效果
是否武器、枪,其中 distance 代表距离。
增加耐久值
减去耐久值
增加使用次数
减去使用次数
减去物品数量
掉落经验值
其中:
chance:触发几率。
min_amount、max_amount:分布为最小值和最大值。
食物
其中,amount 代表饱食度,saturation 代表饱和度。
给予物品
掉落物品
播放不死图腾动画
放置方块
其中:
block:放置的方块。
target:放置的对象。
decrement_amount:放置后是否减少本来的数量。
放置家具
给予自身药水
其中:
type:药水的类型。
duration:药水的时长。
amplifier:药水的等级。
移除自身药水
给予对象药水
对象指的是攻击或者解除的实体等,其中:
type:药水的类型。
duration:药水的时长。
amplifier:药水的等级。
移除对象药水
增加玩家 IA 属性
减少玩家 IA 属性
攻击实体
其中:
damage:攻击的伤害值。
攻击附近实体
其中:
entity_groups:实体类型,分布为主动(怪物)、玩家和被动(动物)。
range、distance:距离。
爆炸
其中:
power:爆炸威力。
fire:是否着火。
break_blocks:是否破坏方块。
大范围破坏
其中:
keep_ores:是否保留矿石不破坏。
drop_all_blocks:是否掉落所有方块和是否需要精准采集附魔。
size:破坏的大小。
depth:破坏的深度。
最后更新于
这有帮助吗?