-
Notifications
You must be signed in to change notification settings - Fork 0
Modify Item NBT Tag
Potato Destroyer / liuyipeng001 edited this page Feb 16, 2018
·
3 revisions
ItemStack(Material.WOOD_SWORD).modifyNBT {
type = NBTModifier.NBTTagModifier.NBTType.AttackDamage
amount = 233
slot = NBTModifier.NBTTagModifier.Slot.MainHand
}
.operateMeta {
isUnbreakable = true
lore = lore.apply { add("super sword") }
}modifyNBT function provides DSL to create NBT Tag.
Here are some NBT Tag types you can choose, type can be assigned these values:
- AttackDamage
- AttackSpeed
- MaxHealth
- MovementSpeed
- Armor
- Luck
slotcan be assigned these values: - MainHand
- OffHand
- Feet
- Legs
- Chest
- Head