我的世界高版本服主教程合集
常用工具网站常用开服网站高版本插件推荐免费服务端/福利
ItemsAdder 使用指导
ItemsAdder 使用指导
  • 欢迎
  • 首次使用
    • 插件安装
    • 资源包分发
    • 移除默认内容 (v.3.2.0+不再需要)
    • 给予玩家默认权限
    • 关闭死亡地图
    • 将语言设置为简体中文
    • 解决踢出问题
    • 客户端调整
  • 基础使用
    • 总体配置结构了解
    • 总体配置结构了解 (v.3.3.0 版本以前)
    • 物品配置结构了解
    • 资源包结构了解
    • 资源包合并
    • 材质异常
  • 贴图
    • 贴图
    • 菜单
    • 顶部显示
    • Esc 菜单
    • /ia 菜单材质
    • 表情
    • 渐变效果
  • 物品
    • 物品基础
    • 物品属性
    • 分类
    • 在其他插件使用 IA 物品
    • 物品挂钩
    • 自定义物品模型
    • 盔甲
  • 方块
    • 方块基础
    • 世界生成
    • 树木生成
    • 地物生成
    • 掉落物
  • 家具
    • 家具基础
    • 行为属性
  • 配方
    • 合成配方
    • 熔炉配方
    • 铁砧配方
  • 事件
    • 事件基础
    • 事件触发方式
    • 事件动作
  • 原版
    • 音效
    • Tooltip
  • 参考资料
由 GitBook 提供支持
在本页
  • 播放音效
  • 停止播放音效
  • 执行命令
  • 粒子效果
  • 发射状粒子效果
  • 增加耐久值
  • 减去耐久值
  • 增加使用次数
  • 减去使用次数
  • 减去物品数量
  • 掉落经验值
  • 食物
  • 给予物品
  • 掉落物品
  • 播放不死图腾动画
  • 放置方块
  • 放置家具
  • 给予自身药水
  • 移除自身药水
  • 给予对象药水
  • 移除对象药水
  • 增加玩家 IA 属性
  • 减少玩家 IA 属性
  • 攻击实体
  • 攻击附近实体
  • 爆炸
  • 大范围破坏

这有帮助吗?

  1. 事件

事件动作

播放音效

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:是否以控制台身份执行。

粒子效果

play_particle:
  name: "ENCHANTMENT_TABLE"

发射状粒子效果

shoot_particle:
  name: FLAME
  distance: 7

是否武器、枪,其中 distance 代表距离。

增加耐久值

increment_durability:
  amount: 10

减去耐久值

decrement_durability:
  amount: 10

增加使用次数

increment_usages:
  amount: 1

减去使用次数

decrement_amount:
  amount: 1

减去物品数量

decrement_amount:
  amount: 1

掉落经验值

drop_exp:
  chance: 50
  min_amount: 1
  max_amount: 3

其中:

  • chance:触发几率。

  • min_amount、max_amount:分布为最小值和最大值。

食物

feed:
  amount: 6
  saturation: 2

其中,amount 代表饱食度,saturation 代表饱和度。

给予物品

give_item:
  item: empty_cup
  amount: 1

掉落物品

drop_item:
  item: 2d_furniture
  chance: 99.9
  max_amount: 3
  min_amount: 1

播放不死图腾动画

play_totem_animation: animatedtitles:bruh

放置方块

set_block:
  block: rocks
  target: RELATIVE
  decrement_amount: true

其中:

  • block:放置的方块。

  • target:放置的对象。

  • decrement_amount:放置后是否减少本来的数量。

放置家具

place_furniture:
  furniture: furniture
  decrement_amount: true

给予自身药水

potion_effect:
  type: UNLUCK
  duration: 100
  amplifier: 0

其中:

  • type:药水的类型。

  • duration:药水的时长。

  • amplifier:药水的等级。

移除自身药水

remove_potion_effect:
  type: GLOWING

给予对象药水

target_potion_effect:
  type: GLOWING
  duration: 70
  amplifier: 15

对象指的是攻击或者解除的实体等,其中:

  • type:药水的类型。

  • duration:药水的时长。

  • amplifier:药水的等级。

移除对象药水

target_remove_potion_effect:
  type: GLOWING

增加玩家 IA 属性

increment_player_stat:
  name: "itemsadder:mana_bar"
  amount: 1

减少玩家 IA 属性

decrement_player_stat:
  name: "itemsadder:mana_bar"
  amount: 1

攻击实体

damage_entity:
  damage: 4

其中:

  • damage:攻击的伤害值。

攻击附近实体

damage_entity_in_sight:
  damage: 4
  distance: 7
damage_near_entities:
  entity_groups:
   - HOSTILE
   - PLAYERS
   - PASSIVE
  damage: 4
  range: 7

其中:

  • entity_groups:实体类型,分布为主动(怪物)、玩家和被动(动物)。

  • range、distance:距离。

爆炸

explosion:
  power: 2
  fire: true
  break_blocks: true

其中:

  • power:爆炸威力。

  • fire:是否着火。

  • break_blocks:是否破坏方块。

大范围破坏

multiple_break:
  keep_ores: true
  drop_all_blocks:
    enabled: true
    need_silk_touch: true
  size: 3
  depth: 3

其中:

  • keep_ores:是否保留矿石不破坏。

  • drop_all_blocks:是否掉落所有方块和是否需要精准采集附魔。

  • size:破坏的大小。

  • depth:破坏的深度。

上一页事件触发方式下一页音效

最后更新于2年前

这有帮助吗?

粒子效果的id可以在 查看。

Minecraft Wiki