Skip to content

TypeScript code snippet – How to add enchantments to mobs plugin?

                zombie.getEquipment().setItemInHand(new ItemStack(Material.STICK, 1).addEnchantment(Enchantment.DAMAGE_ALL, 5));
See also  Python code snippet - How to update sklearn?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.