ItemAttributes

概述
ItemAttributes 是一款轻量但功能强大的 Minecraft 1.21 插件,允许你通过简单的命令为物品添加或修改任意属性。无论你是想创建攻击力更高的自定义武器、具有特殊属性的护甲,还是拥有独特特性的工具——ItemAttributes 都能让你轻松实现!它就像 /enchant 命令一样,但是用于属性。你可以把它当作更多的附魔来使用,并应用于自定义物品!
特性
- ? 简单命令:使用直观的命令语法添加或删除任意属性
- ? 完整 Tab 补全:为所有属性和槽位提供命令建议
- ⚙️ 所有 Minecraft 属性:支持游戏中的所有原版属性
- ? 槽位指定:将属性应用到特定槽位(主手、副手、头部等)
- ? 多语言支持:提供英文和德文版本,易于扩展
- ? 精美消息:时尚的渐变彩色消息,令人赏心悦目
示例物品

命令用法
该插件添加了两个简单的命令:
/itemattribute <attribute> <value> [slot]
- attribute: 任何 Minecraft 原版属性(例如 attack_damage, max_health)
- value: 要设置的属性数值
- slot: (可选)属性适用的装备槽位(默认为 HAND)
/unattribute <attribute>
支持的属性
支持所有 Minecraft 1.21 的原版属性,包括:
max_health - 最大生命值
knockback_resistance - 击退抗性(0-1)
movement_speed - 移动速度
attack_damage - 攻击伤害
attack_speed - 攻击速度
armor - 护甲值
armor_toughness - 护甲韧性
luck - 战利品表幸运值
- 以及更多!
支持的槽位
你可以指定属性适用的槽位:
ANY - 适用于任何槽位
HAND - 仅主手
OFF_HAND - 仅副手
FEET - 靴子槽位
LEGS - 护腿槽位
CHEST - 胸甲槽位
HEAD - 头盔槽位
示例
/itemattribute attack_damage 10 HAND
当物品在主手中时,增加 +10 攻击伤害
/itemattribute max_health 5 ANY
当物品在任何槽位装备时,增加 +5 最大生命值
/itemattribute armor 4 CHEST
当物品在胸甲槽位时,增加 +4 护甲值
/unattribute attack_damage
从物品中移除所有攻击伤害修饰符
权限
itemattributes.use - 使用 /itemattribute 和 /unattribute 命令的权限
配置
插件可通过 config.yml 文件进行高度配置:
# 插件消息的语言设置
# 可用选项:en, de
language: en
# 关于属性限制和显示选项的各种设置
settings:
show-success-messages: true
allow-negative-values: true
max-attribute-value: -1
show-attributes-in-lore: false
安装
- 下载插件 JAR 文件
- 将其放入服务器的
plugins 文件夹
- 重启服务器或使用插件管理器加载它
- 如有需要,在
plugins/ItemAttributes/config.yml 中进行配置
要求
- Spigot 或 Paper 服务器(Minecraft 1.21)
- Java 17 或更高版本
支持与错误报告
如果遇到任何问题或有改进建议,请在 GitHub Issues 页面上报告。
许可证
本插件根据 ARR 许可证发布。欢迎在你的服务器上使用!
享受使用 ItemAttributes 增强你的 Minecraft 体验!
ItemAttributes

Overview
ItemAttributes is a lightweight but powerful plugin for Minecraft 1.21 that allows you to add or modify any attribute on your items with a simple command. Whether you want to create custom weapons with increased attack damage, armor with special properties, or tools with unique characteristics - ItemAttributes makes it easy! It is like the /enchant command but with attributes. It is like more enchantements and you can use it for custom items!
Features
- ? Simple Commands: Add or remove any attribute with straightforward command syntax
- ? Full Tab Completion: Command suggestions for all attributes and slots
- ⚙️ All Minecraft Attributes: Supports every vanilla attribute in the game
- ? Slot Specification: Apply attributes to specific slots (Main Hand, Off Hand, Head, etc.)
- ? Multi-Language Support: Available in English and German, easily expandable
- ? Beautiful Messages: Stylish gradient-colored messages that are pleasing to the
Example Item

Command Usage
The plugin adds two simple commands:
/itemattribute <attribute> <value> [slot]
- attribute: Any vanilla Minecraft attribute (e.g., attack_damage, max_health)
- value: The numerical value to set for the attribute
- slot: (Optional) The equipment slot the attribute applies to (defaults to HAND)
/unattribute <attribute>
- attribute: The attribute you want to remove from the item
Supported Attributes
All vanilla Minecraft 1.21 attributes are supported, including:
max_health - Maximum health points
knockback_resistance - Resistance against knockback (0-1)
movement_speed - Movement speed
attack_damage - Attack damage
attack_speed - Attack speed
armor - Armor points
armor_toughness - Armor toughness
luck - Luck for loot tables
- and many more!
Supported Slots
You can specify which slot the attribute applies to:
ANY - Apply to any slot
HAND - Main hand only
OFF_HAND - Off hand only
FEET - Boots slot
LEGS - Leggings slot
CHEST - Chestplate slot
HEAD - Helmet slot
Examples
/itemattribute attack_damage 10 HAND
Adds +10 attack damage when the item is in the main hand
/itemattribute max_health 5 ANY
Adds +5 maximum health when the item is equipped in any slot
/itemattribute armor 4 CHEST
Adds +4 armor when the item is in the chestplate slot
/unattribute attack_damage
Removes all attack damage modifiers from the item
Permissions
itemattributes.use - Permission to use the /itemattribute and /unattribute commands
Configuration
The plugin is highly configurable through the config.yml file:
# Language setting for plugin messages
# Available options: en, de
language: en
# Various settings for attribute limits and display options
settings:
show-success-messages: true
allow-negative-values: true
max-attribute-value: -1
show-attributes-in-lore: false
Installation
- Download the plugin JAR file
- Place it in your server's
plugins folder
- Restart your server or use a plugin manager to load it
- Configure in
plugins/ItemAttributes/config.yml if needed
Requirements
- Spigot or Paper server (Minecraft 1.21)
- Java 17 or higher
Support & Bugs
If you encounter any issues or have suggestions for improvements, please report them on the GitHub Issues page.
License
This plugin is released under the ARR License. Feel free to use it on your server!
Enjoy enhancing your Minecraft experience with ItemAttributes!
评论 0
登录后参与评分
还没有评论,来抢沙发吧