Posted February 18, 201510 yr I have an item and I want to detect if it has silk touch. How would I do so? Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.
February 18, 201510 yr Just use EnchantmentHelper#getEnchantmentLevel(int id, ItemStack stack). The id for silktouch will be Enchantment.silkTouch.effectId. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.