部分使用了不推荐的方法,并且早已在 2.4 版本标注出不推荐,并且不推荐的功能都可代替,部分不推荐的不译
这是放在 Option 项内的设置。
全局选项
这些设置可用于任何物品。
Repairable: [true/false] (2.4.1)
- 设置可在铁砧内修复
- 覆写 RepairCost 选项
- 默认为 false
RepairCost: [number] (2.4.1)
- 设置修复花费的经验
Unbreakable: [true/false]
- 设置物品不可损坏
- 这样物品使用时不会消耗耐久
玩家头颅
只可用于玩家头颅物品。
Player: [name]
- 设置头颅的材质(玩家姓名)
- 示例:
- Player: Herobrine
SkinTexture: https://sessionserver.mojang.com ... eduuidofplayerhere]
- 使用 http://mcuuid.net/ 查找要求的 UUID
可染色物品
Color: [R,G,B] OR [DyeColor]
- 物品染色(RGB 0-255)
- 当然你可以使用提前设置过的颜色(其他|颜色)
- 只可以在皮革护甲和旗帜使用
不推荐的选项
Damage: [number]
- Deprecated as of version 2.4 1)
- Sets the damage for the item when used as a melee weapon.
- Does not increase bow “ranged” damage nor does it stack to add a “damage bonus”
- Must use this option to give non-weapon ID's the ability to do damage (stick, blaze rod, etc)
- Can be whole number or a decimal (0.5)
FollowRange: [number]
- Deprecated as of version 2.4 2)
- Sets the FollowRange Attribute for the entity equipping the item.
- Only affects mobs.
Health: [number]
- Deprecated as of version 2.4 3)
- Adds player health to the item.
- Can be whole number or a decimal (0.5)
HideFlags: [true/false]
- Deprecated as of version 2.4 4)
- Hides all flags on the item
- Includes enchants and attribute-based flags.
- Defaults to false.
KnockbackResistance: [number]
- Deprecated as of version 2.4 5)
- Adds a chance to resist knockback from mobs.
- Number between 0 and 1.
- 0 = 0% 1= 100%
- Can still be knocked back with 100% resistance by knockback enchantments, explosions, etc.
MovementSpeed: [number]
- Deprecated as of version 2.4 6)
- Additional movement speed.
- 0.01 = +1 % or 0.25 = +25%
示例
ClothSlippers:
Id: 301
Data: 0
Display: '&fCloth Slippers'
Lore:
- ''
- 'So Soft!'
- ''
Enchantments:
- DURABILITY:1
Options:
Color: 200,200,200
添加了所有可能的选项:
dat_item_though:
Id: banner
Data: 4
Display: '&c&lThe Banner&r'
Lore:
- ''
- '&rIt<&sq>s the perfect stone.'
- '&cNever question that.'
- ''
Amount: 8
Options:
Color: 200,200,200
Damage: 100
Health: 123
FollowRange: 12
KnockbackResistance: 1
MovementSpeed: 0.05
HideFlags: false
Unbreakable: true
Enchantments:
- DURABILITY:1
- ARROW_FIRE:10