Custom sword

  • Thread starter Thread starter /u/Successful-Ranger471
  • Start date Start date

/u/Successful-Ranger471

Guest
Member
I can't figure out how to change the attack damage of a swordRight now I have

public void createDragonSword(){ ItemStack item = new ItemStack(Material.NETHERITE_SWORD); ItemMeta meta = item.getItemMeta(); meta.setDisplayName("Dragon Sword"); AttributeModifier damage = new AttributeModifier(UUID.randomUUID(), "generic.attackDamage", 13, AttributeModifier.Operation.ADD_NUMBER, EquipmentSlot.HAND); meta.addAttributeModifier(Attribute.GENERIC_ATTACK_DAMAGE, damage); List<String> lore = new ArrayList<>(); lore.add("§7Harbored by a sneaky suspect"); meta.setLore(lore); item.setItemMeta(meta); item.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 5); item.addEnchantment(Enchantment.DURABILITY, 3); DragonSword = item; }

But the "+13 attack" is blue, unlike the green "8 attack" damage on a normal sword
As well as the fact that it's using the attack speed of your hand rather than a swords?
It's for 1.20 Paper

submitted by /u/Successful-Ranger471
[link] [comments]

Continue reading...

free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons
 
Top