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  PHP code snippet - How to make laravel factory?

Leave a Reply

Your email address will not be published.

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