基础
基础物品属性集合
enabled
enabledenabled: true通过该设置,你可以完全禁用一个物品。
即使你禁用该物品,也不会从世界或玩家背包中删除。
name
namename: "Test"这是物品提示框中的名字。
ItemsAdder 4.0.8 及更低版本使用 display_name 属性。
permission_suffix
permission_suffixpermission_suffix: myitem该属性用于分辨玩家是否具有在 /ia 界面中看到某个物品的权限。
示例的完整权限为 ia.user.ia.seeitem.myitem。
目前这是该权限的唯一用法。
权限lore
lorelore:
- '&7When you mine a block'
- '&7it drops exp orbs'
- '&750% of times.'每行都是一行物品描述。
enchants
enchantsenchants:
- ARROW_FIRE:1
- anger_artifact:1
- my_custom_plugin:custom_enchant:6物品的附魔。 你可以设置原版附魔以及其他插件的自定义附魔(例如 EcoEnchants, ExcellentEnchants...)。 也支持命名空间(如果你使用了命名空间来创建自定义附魔)
attribute_modifiers
attribute_modifiersattribute_modifiers:
mainhand:
attackDamage: 19
attackSpeed: 1.1
maxHealth: 1.1
movementSpeed: -1
armor: 1.1
armorToughness: 1.1
attackKnockback: 1.1
luck: 1.1
offhand:
attackDamage: 19
attackSpeed: 1.1
maxHealth: 1.1
movementSpeed: 1.1
armor: 1.1
armorToughness: 1.1
attackKnockback: 1.1
luck: 1.1这些是原版的属性修饰符,你可以在这里查看详情。
durability
durabilitydurability:
max_custom_durability: 200
custom_durability: 32
disappear_when_broken: false
unbreakable: false
usages: 5usages : 物品的使用次数。记得通过事件来降低。
custom_durability :物品被制作出来时的耐久(如未指定,与 max_custom_durability 相同)
max_custom_durability :物品的最大耐久值
item_flags
item_flagsitem_flags:
- HIDE_ATTRIBUTES
- HIDE_DESTROYS
- HIDE_ENCHANTS
- HIDE_PLACED_ON
- HIDE_POTION_EFFECTS
- HIDE_UNBREAKABLE特定的物品标记可以隐藏一些原版信息。 你可以在此找到详细信息:https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/ItemFlag.html
blocked_enchants
blocked_enchants禁止物品附魔。
blocked_enchants:
- DAMAGE_UNDEAD
- DAMAGE_ALL
- DAMAGE_ARTHROPODS
- KNOCKBACK
- DURABILITY
- SWEEPING_EDGEblocked_enchants:
- ALLevents_needed_player_stats
events_needed_player_stats仅当玩家状态(ItemsAdder 状态,通常在界面中显示)满足条件时生效的特殊属性。你可以将其设置为 >,< 与 =。
示例:示例魔杖.
glow
glow当物品掉落到地上时,你可以让其发光。 对珍稀物品很有用.
ItemsAdder 4.0.9 及以上版本可用。

items:
glowing_item:
display_name: Glowing Item
resource:
material: DIAMOND
generate: true
textures:
- item/glowing_item.png
drop:
glow:
enabled: true
color: DARK_REDshow_name
show_name你可以让掉落物显示名字。 对于珍稀物品很有用。\

glowing_item:
display_name: Glowing Item
resource:
material: DIAMOND
generate: true
textures:
- item/glowing_item.png
drop:
show_name: truetemplate 与 variant_of
模板和变体template 与 variant_of使用官方编辑器读取所有属性
文件编辑器Last updated
Was this helpful?