Psuedocode: Code (Text): bannedblocks = [Material.STONE, ...] on block break: hasSilkTouch = p.getItemInMainHand().hasEnchant(silktouch) isBanned = bannedblocks.contains(e.block.type) if hasSilkTouch && isBanned: cancel
We don't spoonfeed on here, so the psuedocode above should do the trick. Use google to create your code piece-by-piece if you do not fully understand it.